Skip to content

koriym/Koriym.PhpSkeleton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

e33941e · Apr 4, 2018
Apr 4, 2018
Apr 4, 2018
Mar 5, 2016
Mar 21, 2017
Aug 5, 2016
Apr 4, 2018
Mar 5, 2016
Apr 4, 2018
Apr 4, 2018
Feb 2, 2015
Apr 4, 2018
Apr 4, 2018
Apr 4, 2018

Repository files navigation

A standard PHP project skeleton

(former php/skeleton)

This project was created in order to provide project skeleton to start new PHP project. Various config files are ready for continuous integration.

Getting started

Create project

composer create-project koriym/php-skeleton {project-path}

What is the vendor name ?

(MyVendor):Koriym

What is the package name ?

(MyPackage):AwesomeProject

What is your name ?

(Akihito Koriyama):

Composer scripts

test

composer test run phpcs, phpmd and phpunit. Run phpunit for unit test only.

composer test

coverage

composer coverage builds test coverage report.

composer coverage

cs-fix

composer cs-fix run php-cs-fixer and phpcbf to fix up the PHP code to follow the coding standards. (Check only command compposer cs is also available.)

composer cs-fix

build

composer build run phploc, pdepend and test above. It's handy for Jenkins. You need composer require phploc/phploc and pdepend/pdepend for this.

composer build