public marks

PUBLIC MARKS from kasi77 with tags php & code

June 2008

i should be coding :: unit tests and code coverage with phpt

(via)
My initial experiences with unit testing and PHP were with PHPUnit. While it's a great tool and I have to give kudos to Sebastian for contributing so much to its development, I've come to appreciate the simplicity of PHPT tests. Recently, I wrote some for a project and realized that I wasn't aware of how to generate code coverage reports. Many thanks to the very helpful patrons in the #pear channel on EFNet for helping me to get this working.

April 2008

Delphi for PHP

by 3 others (via)
# The only development solution for drag-and-drop visual design for PHP # Build data-driven Web applications with broad database connectivity # Create AJAX-enabled Web 2.0 pages and sites # Everything you need in a PHP development environment including a powerful code editor, debugger, profiler, database tools and much more # Use the VCL for PHP component library with more than 70 visual components to speed development and extend it with your own components # New version! See what's new in Delphi for PHP 2.0

March 2008

Sniffing refactoring needs

by 2 others (via)
While still messing around with the PHP_CodeSniffer Pear package, I took a somehow jealous 1000 feet look at some prominent code inspection tools of the Java community: PMD and Checkstyle. Browsing their available rule sets/checks I soon recognized that guaranteeing the coding standard adherence is just a partial aspect of these tools. The following post will focus on one of these additional aspects, which is finding problems related to the code size of the inspected code artifacts, by showing how to port two selected rules to sniffs for utilization with the PHP_CodeSniffer tool. These ported sniffs can be used to automatically spot obvious code smells in the code base and to signal the need to apply the appropriate and odour reducing activity known as refactoring. Further more a complete set of code size sniffs, going beyond the trageted realm of the sniffs to come, could be used to speed up the feedback loop and to reduce the effort for manual code reviews.

May 2007

PHP Security Consortium: PHPSecInfo

(via)
PhpSecInfo provides an equivalent to the phpinfo() function that reports security information about the PHP environment, and offers suggestions for improvement. It is not a replacement for secure development techniques, and does not do any kind of code or app auditing, but can be a useful tool in a multilayered security approach.

April 2007

Viewing PHP Scripts (351) - Evil Walrus, semantic PHP

by 1 other
PHP code snippets and articles, all user-contributed, tagged and searchable