Tag Archive: PHP

PHPUnit Configuration Generator

PHPUnit is a great framework for Unit Testing in PHP. However, there is no quick way to create a configuration (by default, phpunit.xml) file.

The PHPUnit Configuration Generator project solves this problem by providing a web interface to all of the configuration options, along with …

Continue reading »

Permanent link to this article: http://permafrostcodingstudio.com/articles/phpunit-configuration-generator/

Script: new-php-project: PHP Project Creator

This script generates a new PHP project in the current directory.

Continue reading »

Permanent link to this article: http://permafrostcodingstudio.com/articles/script-new-php-project-creator/

Script: Preprocess PHP

PHP doesn’t come with conditional compiliation or any preprocessor tools, but using a generic preprocessor can make life much easier. Conditional compilation is just that — blocks of code can be set to only compile and run if a certain condition is met. Many compiled programming langauges …

Continue reading »

Permanent link to this article: http://permafrostcodingstudio.com/articles/script-preprocess-php/

Script: Indent Lines From Stdin

In many of my shell scripts, I call other shell scripts to accompish various tasks. Sometimes the output from these sub-script calls is useful, but I like to differentiate between the output from the sub-script and the main script. Enter indent-stdin: A basic …

Continue reading »

Permanent link to this article: http://permafrostcodingstudio.com/articles/script-indent-lines-from-stdin/

Script: Automatic PHP Manual Updater

I always have the PHP chm manual open when coding, and it’s updated frequently. Instead of having to manually download a new copy every time it’s updated, I have a script that runs every night at 3 AM to …

Continue reading »

Permanent link to this article: http://permafrostcodingstudio.com/articles/script-automatic-php-manual-updater/

Older posts «