Simple skeleton PHP project with Symfony2 components

Installs: 83

Dependents: 0

Stars: 10

Watchers: 1

Open Issues: 1

Language: PHP

v0.9.9.4 2015-01-27 19:39 UTC


A simple skeleton PHP project, using composer and other tools like PHPUnit.


Now add PHPUnit install using composer.



Remove selenium server, you should be add in composer.json dependency

"edysanchez/selenium-server": "dev-master",

To launch selenium server



Test hot-phpunit-runner for autotest using PHP, try to remove guard-phpunit2

hot/phpunit-runner dev-master requires php >=5.4.0, but skeleton_php_project requires >=5.3.3


Example test doubles: Stubs and Mocks Add Selenium RC Server Listener to calculate time execution (


Add template to Jenkins CI


Add basic Scrutinizer (


Add Phake (Test Doubles) to composer.json and autotest with Guard PHPUnit2 (gem).


Script post install to remove .git


Restructure to divide test into: unit, integration and functional


Add "Security Advisories Checker"


Remove functional test because we need minimal enviroment to kata(yunos). Selenium RC will be another project (skeleton_PHP_testing)


Change autoload to PSR-0 in src/ Reorganize phpunit.xml files and ant task


Add Selenium RC and test demo


Change vendor/bin to bin

Change "require" to "require-dev"

Add "suggest" to install XDebug

Update gist


Add a Dependency Injection Container for PHP (Pimple)


You need install composer (

$ curl -s | php $ php composer.phar install --dev

If you install composer globally (, you should be use packagist :) (

$ composer(.phar) create-project isidromerayo/simple_php_skeleton my_project_name

All-in-one install and check (inspired by :)

$ curl -s | sh


$ composer(.phar) update


Create your test under "tests" directory. Create your code under "src" directory.

To run all test

$ bin/phpunit -c tests

If you want to use ant (and only phpunit task)

$ ant phpunit

Too use code coverage you need install XDebug extension (

$ bin/phpunit -c tests/phpunit-codecoverage.xml.dist

$ ant -f build-composer.xml

All test

Require: WebDriver and add selenium server dependency ("edysanchez/selenium-server": "dev-master",)

By default minimal enviroment (unit + integration), to launch "complete" with Selenium the steps:

1) Launch Selenium RC Server

$ bin/selenium-server.jar

2) Launch test with custom configuration phpunit file (another terminal window)

$ bin/phpunit -c tests/phpunit-complete.xml.dist

You should remove "Acme" namespace ;)


Note: Test on Ubuntu 12.04/14.04 (Gnome Shell and XFCE)


$ bin/hot-phpunit-runner --config=tests/phpunit.xml.dist --watch --notify

More info

Guard PHPUnit2

You can try to autotest with Guard PHPUnit2

$ gem install guard-phpunit2

To launch, simple:

$ guard

The configuration file is Guardfile :)

More info


Status build: Build Status


Quality: Scrutinizer Quality Score

Code Coverage: Code Coverage





Selenium Extension: