Skip to content

Latest commit

 

History

History
55 lines (43 loc) · 1.87 KB

readme.md

File metadata and controls

55 lines (43 loc) · 1.87 KB

A skeleton for PHP library projects.

Setup your project

Copy over all files - except this readme - to your new PHP project and modify the following parts to your needs:

Run composer install.

Put your classes in the src directory, and PHPUnit tests in the tests directory. Follow the PSR-4 conventions for autoloading and PSR-2 conventions for coding style.

Run a full test (lint check, coding standards check and unit tests) with ./vendor/bin/phing test.

In order to automatically run a full test when committing to git, install the included git hooks hook with ./vendor/bin/phing githooks.

Setup third-party services

Register your project on: