PHP Skeleton Project buildable with Phing
A PHP Skeleton Project template buildable with Phing, (*1)
You can create a new skeleton project using composer.phar
:, (*2)
$ php composer.phar create-project vtardia/php-skel your-project-directory
or simply download php-skel.zip, extract it where you want and rename it., (*3)
In order to deploy skeleton projects you will need:, (*4)
These dependencies are not included in the composer.json
for this package because you may want to install them globally on your machine (ex. inside /usr/share/php/phing
)., (*5)
If you need them as project's requirements insert these lines in your composer.json
file:, (*6)
"require": { "phing/phing": "*" }, "scripts": { "post-install-cmd": [ "wget https://raw.github.com/fedecarg/phing-filesynctask/master/tasks/ext/FileSyncTask.php -O ./vendor/phing/phing/classes/phing/tasks/ext/FileSyncTask.php" ] },
Note: the scripts
section is necessary because the FileSyncTask
provided with Phing is not in sync., (*7)
The following sample installs a basic web app with Slim Framework, Monolog, Paris & Idiorm and Swiftmailer., (*8)
"require": { "php": ">=5.3", "ext-zip": "*", "ext-fileinfo": "*", "slim/slim": "*", "slim/extras": "*", "monolog/monolog": "*", "j4mie/paris": "*", "swiftmailer/swiftmailer": "*" },
PHP Skel is licensed under the MIT license., (*9)