Skip to content

Instantly share code, notes, and snippets.

Avatar

UseTheForceDave phpdave

View GitHub Profile
@phpdave
phpdave / Zend Framework 2 - PHPLoc
Last active Aug 29, 2015
PHPLoc of Zend Framework 2.3.3 - Oct 30 2014
View Zend Framework 2 - PHPLoc
====ZF2.3.3 PHPLoc====
\htdocs\vendor\zendframework>php phploc.phar --log-csv log.csv --progress .
phploc 2.0.6 by Sebastian Bergmann.
Directories 417
Files 2389
Size
Lines of Code (LOC) 304378
Comment Lines of Code (CLOC) 111994 (36.79%)
@phpdave
phpdave / Zend Framework 1.7 - PHPLoc-
Last active Aug 29, 2015
PHPLoc of Zend Framework 1.7
View Zend Framework 1.7 - PHPLoc-
Directories 352
Files 1712
Size
Lines of Code (LOC) 337972
Comment Lines of Code (CLOC) 152185 (45.03%)
Non-Comment Lines of Code (NCLOC) 185787 (54.97%)
Logical Lines of Code (LLOC) 61708 (18.26%)
Classes 59208 (95.95%)
View Symfony 2.5 - PHPLoc- vendor\symfony\symfony\src\Symfony\Component
\vendor\symfony\symfony\src\Symfony\Component>php phploc.phar --log-csv log.csv --progress .
phploc 2.0.6 by Sebastian Bergmann.
Directories 449
Files 2417
Size
Lines of Code (LOC) 283341
Comment Lines of Code (CLOC) 66130 (23.34%)
Non-Comment Lines of Code (NCLOC) 217211 (76.66%)
View Symfony 2.5 - PHPLoc- vendor\symfony\symfony\src\Symfony\Component
\vendor\symfony\symfony\src\Symfony\Component>php phploc.phar --log-csv log.csv --progress .
phploc 2.0.6 by Sebastian Bergmann.
Directories 449
Files 2417
Size
Lines of Code (LOC) 283341
Comment Lines of Code (CLOC) 66130 (23.34%)
Non-Comment Lines of Code (NCLOC) 217211 (76.66%)
@phpdave
phpdave / Zend Framework 1.7 - PHPLoc-
Created Oct 30, 2014
PHPLoc of Zend Framework 1.7
View Zend Framework 1.7 - PHPLoc-
Directories 352
Files 1712
Size
Lines of Code (LOC) 337972
Comment Lines of Code (CLOC) 152185 (45.03%)
Non-Comment Lines of Code (NCLOC) 185787 (54.97%)
Logical Lines of Code (LLOC) 61708 (18.26%)
Classes 59208 (95.95%)
Average Class Length 36
@phpdave
phpdave / Zend Framework 2 - PHPLoc
Created Oct 30, 2014
PHPLoc of Zend Framework 2.3.3 - Oct 30 2014
View Zend Framework 2 - PHPLoc
====ZF2.3.3 PHPLoc====
\htdocs\vendor\zendframework>php phploc.phar --log-csv log.csv --progress .
phploc 2.0.6 by Sebastian Bergmann.
Directories 417
Files 2389
Size
Lines of Code (LOC) 304378
Comment Lines of Code (CLOC) 111994 (36.79%)
@phpdave
phpdave / test.php
Last active Aug 29, 2015
Simple PHP script to pull SQL Special Register values from the IBM DB2 via the commandline QP2TERM
View test.php
<?php
// Call this script in pase using:
// Call QP2TERM
// /usr/local/zendsvr/bin/php-cli /www/zendsvr/htdocs/test.php
// This script will use the current user thats logged in and the default database.
// Note: We can't use $_SERVER['APP_ENV'] because PHP-CLI doesn't get that value.
// That value is set by Apache on web requests
$db2Connection = db2_connect( '', '' , '',array());
@phpdave
phpdave / model.php
Last active Aug 29, 2015
ZF1 Model column with a #
View model.php
<?php
class Model
{
protected $_dbh = null;
protected $_table = 'MYTABLE';
public function __construct()
{
@phpdave
phpdave / SQLCodeCompletionIdeas.sql
Last active Aug 29, 2015
Ideas for Code Completion of SQL for Netbeans IDE
View SQLCodeCompletionIdeas.sql
s SELECT * FROM ${Table}
u UPDATE ${Table} SET ${columnValue} WHERE ${WhereClause}
d DELETE FROM ${Table} WHERE ${WhereClause}
i INSERT INTO ${Table} ${columns} VALUES (${values});
g GRANT ${Permissions} ON ${DbObject} ${ObjectName} TO ${User}
@phpdave
phpdave / PHPCLICL
Last active Aug 29, 2015
CL Program that takes in a Filename and passes it to PHP-CLI in the PASE environment (IBM i)
View PHPCLICL
*************** Beginning of data ********************************************
PGM PARM(&FILENAME)
/* VARS */
DCL VAR(&FILENAME) TYPE(*CHAR) LEN(80)
DCL VAR(&PHPCLIPATH) TYPE(*CHAR) LEN(128)
/* VARS FOR TRIM */
DCL VAR(&LEN) TYPE(*DEC) LEN(2 0)
DCL VAR(&NULL) TYPE(*CHAR) LEN(128) VALUE(X'00') /*TERMINATE VAR WITH NULL */
DCL VAR(&NULL1) TYPE(*CHAR) LEN(1) VALUE(X'00')
DCL VAR(&CHR15) TYPE(*CHAR) LEN(15)