FireLike

In search of..
Filed under PHP, Software Development, Zend Framework

Over the weekend I  have finally made the jump to 1.8. There, of course, are few changes in this new version, some of the most significant is the introduction of Zend_Application and Zend_Tool. Several blog posts helped me along the way, but I should be honest with you, it took me a good number of hours to assimilate the new “Bootstrap.php” paradigm and move my project to the the new way of doing bootstrapping. If you are starting new project, take a look at this clrean writeup. I, however, was not starting a new project and needed something that will accomodate a modular directory structure. A good start was this blog post. I hope this two links will help somebody to make the jump to the new Zend Framework version less painfull.

Comments (0) Posted by firelike on Tuesday, June 16th, 2009


Filed under USA

I have stumbled upon this post and thought it is pretty interesting.

Comments (0) Posted by firelike on Tuesday, June 16th, 2009


Filed under Bulgaria

Interesting read.

Comments (0) Posted by firelike on Thursday, June 11th, 2009


Filed under PHP, Phing, Software Development

One of the best Phing resources I have come across is the blog of Raphael Stolt. I have used Phing based scripts for backup and code generation, but that is not all you can do with it. As Raphael is showing in its blog, you can use it for unit testing, phplocing (see my post on phploc), refactoring, code sniffing, database generation and so on.  

Comments (0) Posted by firelike on Sunday, May 31st, 2009


Filed under PHP, Software Development

phploc is cool tool, by Sebastian Bergmann, to check the size of your php project. You can install it with PEAR. The short version of the installation goes like this:


// add PEAR channel
user@host ~ % pear channel-discover pear.phpunit.de

// install phploc
user@host ~ % pear install phpunit/phploc
// run
user@host ~ % phploc /path/to/your/project/code/folder

For more detailed instructions and system requirements, here is the link.

Now we are going to play a little honesty game:

  1. Run the tool against your php project library code

    [user@host] phploc ./library/Zend/
    phploc 1.0.0 by Sebastian Bergmann.

    Directories: 285
    Files: 1372

    Lines of Code (LOC): 275436
    Comment Lines of Code (CLOC): 130251
    Non-Comment Lines of Code (NCLOC): 145185

    Interfaces: 53
    Classes: 1321
    Functions/Methods: 9170

  2. Run the tool against your php project own code:

    [user@host] phploc ./my_application/my_modules/
    phploc 1.0.0 by Sebastian Bergmann.

    Directories: 30
    Files: 85

    Lines of Code (LOC): 6644
    Comment Lines of Code (CLOC): 580
    Non-Comment Lines of Code (NCLOC): 6064

    Interfaces: 0
    Classes: 94
    Functions/Methods: 284

  3. Now calculate the percentage of your code vs. your favorite framework library code

    percentage = my_code_NCLOC/my_library_NCLOC*100

    in my case the result is 4.17% !!! :):) How about in your project?

Comments (0) Posted by firelike on Tuesday, May 19th, 2009


Filed under PHP, Software Development, Zend Framework

Zend Framework Tutorials

Comments (0) Posted by firelike on Thursday, April 23rd, 2009


Filed under Software Development

Zend Framework API Documentation

Comments (0) Posted by firelike on Thursday, April 23rd, 2009


Filed under Software Development

Zend Framework Programmer’s Reference Guide

Comments (0) Posted by firelike on Thursday, April 23rd, 2009


Filed under Software Development

Aspin: ASP Scripts, Applications, Tutorials

Comments (0) Posted by firelike on Thursday, April 23rd, 2009


Filed under Software Development

ASP.NET Web: The Official Microsoft ASP.NET Site

Comments (0) Posted by firelike on Thursday, April 23rd, 2009