2017 © Pedro Peláez
 

library simple_php_skeleton

Simple skeleton PHP project with Symfony2 components

image

isidromerayo/simple_php_skeleton

Simple skeleton PHP project with Symfony2 components

  • Monday, June 25, 2018
  • by isidromerayo
  • Repository
  • 1 Watchers
  • 12 Stars
  • 96 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 25 Versions
  • 0 % Grown

The README.md

A simple skeleton PHP project, using composer and other tools like PHPUnit (ver 3.7.x), (*1)

Lastest versión:, (*2)

v0.9.9.4 2015-01-27 19:39 UTC, (*3)

requires

php: >=5.4.3 pimple/pimple: 1.1.1 ext-curl: *, (*4)

requires (dev)

phpunit/phpunit: 3.7.x-dev mockery/mockery: dev-master phake/phake: 1.* ext-sqlite3: * phpunit/dbunit: >=1.2 phpunit/phpunit-selenium: >=1.2 facebook/webdriver: dev-master sensiolabs/security-checker: dev-master hot/phpunit-runner: dev-master, (*5)

suggests

ext/xdebug: Debugger and profiling, (*6)

Install

You need install composer (http://getcomposer.org/), (*7)

$ curl -s http://getcomposer.org/installer | php $ php composer.phar install, (*8)

If you install composer globally (http://getcomposer.org/doc/00-intro.md#globally), you should be use packagist :) (http://packagist.org/), (*9)

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

All-in-one install and check (inspired by https://gist.github.com/cordoval :), (*11)

$ curl -s https://raw.github.com/gist/3612021/272f75c0f8fe76008c6c2f4c124aa35d7182f728/simple_php_skeleton.sh | sh, (*12)

Update

$ composer(.phar) update, (*13)

Using

Create your test under "tests" directory. Create your code under "src" directory., (*14)

To run all test, (*15)

$ bin/phpunit -c tests, (*16)

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

$ ant phpunit, (*18)

Too use code coverage you need install XDebug extension (http://xdebug.org/), (*19)

$ bin/phpunit -c tests/phpunit-codecoverage.xml.dist, (*20)

$ ant -f build-composer.xml, (*21)

The report for code coverage build/logs/junit.xml, (*22)

All test

Require: WebDriver and add selenium server dependency and Java :) To add dependency into project:, (*23)

$ composer(.phar) require edysanchez/selenium-server, (*24)

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

1) Launch Selenium RC Server, (*26)

$ bin/selenium-server.jar, (*27)

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

$ bin/phpunit -c tests/phpunit-complete.xml.dist, (*29)

You should remove "Acme" namespace ;), (*30)

Autotest

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

Guard PHPUnit2

You can try to autotest with Guard PHPUnit2, (*32)

$ gem install guard-phpunit2, (*33)

To launch, simple:, (*34)

$ guard, (*35)

The configuration file is Guardfile :), (*36)

More info https://github.com/ramon/guard-phpunit2, (*37)

Travis-CI

Status build: Build Status, (*38)

Scrutinizer

Quality: Scrutinizer Quality Score, (*39)

Code Coverage: Code Coverage, (*40)

Notes

[2015-10-30], (*41)

Revised project:, (*42)

  • Update doc
  • Remove hot-phpunit-runner (no works :()

[2015-01-27], (*43)

Remove selenium server, you should be add in composer.json dependency, (*44)

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

To launch selenium server, (*45)

bin/selenium-server.jar

[2013-11-24], (*46)

Test hot-phpunit-runner for autotest using PHP, try to remove guard-phpunit2, (*47)

https://github.com/slavahatnuke/hot-phpunit-runner, (*48)

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

[2013-11-19], (*50)

Example test doubles: Stubs and Mocks Add Selenium RC Server Listener to calculate time execution (https://gist.github.com/isidromerayo/5115136), (*51)

[2013-11-16], (*52)

Add template to Jenkins CI http://jenkins-php.org/, (*53)

[2013-11-11], (*54)

Add basic Scrutinizer (https://scrutinizer-ci.com/)., (*55)

[2013-10-10], (*56)

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

[2013-10-09], (*58)

Script post install to remove .git, (*59)

[2013-10-08], (*60)

Restructure to divide test into: unit, integration and functional, (*61)

[2013-02-20], (*62)

Add "Security Advisories Checker" https://security.sensiolabs.org/, (*63)

[2013-02-18], (*64)

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

[2012-12-19], (*66)

Change autoload to PSR-0 in src/ Reorganize phpunit.xml files and ant task, (*67)

[2012-12-07], (*68)

Add Selenium RC and test demo, (*69)

[2012-12-06], (*70)

Change vendor/bin to bin, (*71)

Change "require" to "require-dev", (*72)

Add "suggest" to install XDebug, (*73)

Update gist, (*74)

[2012-10-07], (*75)

Add a Dependency Injection Container for PHP (Pimple), (*76)

http://pimple.sensiolabs.org/, (*77)

References

PHPUnit:, (*78)

http://phpunit.de/manual/current/en/index.html

Mockery:, (*79)

https://github.com/padraic/mockery

Phake:, (*80)

https://github.com/mlively/Phake
http://phake.digitalsandwich.com/docs/html/

Selenium Extension:, (*81)

https://github.com/sebastianbergmann/phpunit-selenium/blob/master/Tests/Selenium2TestCaseTest.php

The Versions

25/06 2018

dev-master

9999999-dev https://github.com/isidromerayo/simple_php_skeleton/

Simple skeleton PHP project with Symfony2 components

  Sources   Download

MIT

The Requires

 

The Development Requires

tdd test mock stub phpunit composer helper xunit test doubles

19/11 2013

v0.9.9.2

0.9.9.2

Simple skeleton PHP project with Symfony2 components

  Sources   Download

MIT

The Requires

 

The Development Requires

tdd test mock stub phpunit composer helper xunit test doubles

19/11 2013

v0.9.9.1

0.9.9.1

Simple skeleton PHP project with Symfony2 components

  Sources   Download

MIT

The Requires

 

The Development Requires

tdd test mock stub phpunit composer helper xunit test doubles

17/11 2013

v0.9.9

0.9.9.0

Simple skeleton PHP project with Symfony2 components

  Sources   Download

MIT

The Requires

 

The Development Requires

tdd test mock stub phpunit composer helper xunit test doubles

12/11 2013

v0.9.8.1

0.9.8.1

Simple skeleton PHP project with Symfony2 components

  Sources   Download

MIT

The Requires

 

The Development Requires

tdd test mock stub phpunit composer helper xunit test doubles

11/11 2013

v0.9.8

0.9.8.0

Simple skeleton PHP project with Symfony2 components

  Sources   Download

MIT

The Requires

 

The Development Requires

tdd test mock stub phpunit composer helper xunit test doubles

10/10 2013

v0.9.7.1

0.9.7.1

Simple skeleton PHP project with Symfony2 components

  Sources   Download

MIT

The Requires

 

The Development Requires

tdd test mock stub phpunit composer helper xunit test doubles

10/10 2013

v0.9.7

0.9.7.0

Simple skeleton PHP project with Symfony2 components

  Sources   Download

MIT

The Requires

 

The Development Requires

tdd test mock stub phpunit composer helper xunit test doubles

09/10 2013

v0.9.6

0.9.6.0

Simple skeleton PHP project with Symfony2 components

  Sources   Download

MIT

The Requires

 

The Development Requires

tdd test mock stub phpunit composer helper xunit test doubles

09/10 2013

dev-mockery

dev-mockery

Simple skeleton PHP project with Symfony2 components

  Sources   Download

MIT

The Requires

 

The Development Requires

tdd test mock stub phpunit composer helper xunit test doubles

09/10 2013

v0.9.5

0.9.5.0

Simple skeleton PHP project with Symfony2 components

  Sources   Download

MIT

The Requires

 

The Development Requires

tdd test mock stub phpunit composer helper xunit test doubles

21/02 2013

v0.9.4.1

0.9.4.1

Simple skeleton PHP project with Symfony2 components

  Sources   Download

MIT

The Requires

 

The Development Requires

tdd test mock stub phpunit composer helper xunit test doubles

18/02 2013

v0.9.4

0.9.4.0

Simple skeleton PHP project with Symfony2 components

  Sources   Download

MIT

The Requires

 

The Development Requires

tdd test mock stub phpunit composer helper xunit test doubles

17/01 2013

v0.9.3

0.9.3.0

Simple skeleton PHP project with Symfony2 components

  Sources   Download

MIT

The Requires

 

The Development Requires

tdd test mock stub phpunit composer helper xunit test doubles

19/12 2012

v0.9.2

0.9.2.0

Simple skeleton PHP project with Symfony2 components

  Sources   Download

MIT

The Requires

 

The Development Requires

tdd test mock stub phpunit composer helper xunit test doubles

19/12 2012

v0.9.1

0.9.1.0

Simple skeleton PHP project with Symfony2 components

  Sources   Download

MIT

The Requires

 

The Development Requires

tdd test mock stub phpunit composer helper xunit test doubles

19/12 2012

dev-main-0.9_revision

dev-main-0.9_revision

Simple skeleton PHP project with Symfony2 components

  Sources   Download

MIT

The Requires

 

The Development Requires

tdd test mock stub phpunit composer helper xunit test doubles

07/12 2012

v0.9

0.9.0.0

Simple skeleton PHP project with Symfony2 components

  Sources   Download

MIT

The Requires

 

The Development Requires

tdd test mock stub phpunit composer helper xunit test doubles

06/12 2012

v0.8

0.8.0.0

Simple skeleton PHP project with Symfony2 components

  Sources   Download

MIT

The Requires

 

The Development Requires

tdd test mock stub phpunit composer helper xunit test doubles

09/11 2012

dev-phake

dev-phake

Simple skeleton PHP project with Symfony2 components

  Sources   Download

MIT

The Requires

 

tdd test mock stub phpunit composer helper xunit test doubles

07/11 2012

v0.7

0.7.0.0

Simple skeleton PHP project with Symfony2 components

  Sources   Download

MIT

The Requires

 

tdd test phpunit composer helper xunit

26/09 2012

v0.6

0.6.0.0

Simple skeleton PHP project with Symfony2 components

  Sources   Download

MIT

The Requires

 

tdd test phpunit composer helper xunit

18/07 2012

v0.5

0.5.0.0

Simple skeleton PHP project with Symfony2 components

  Sources   Download

MIT

The Requires

 

tdd test phpunit composer helper