PHP Classes

PHP Skeleton: Generate code and files for PHP project skeletons

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 262 All time: 7,789 This week: 488Up
Version License PHP version Categories
php-skeleton 1.0.0MIT/X Consortium ...5.6PHP 5, Files and Folders, Project Man..., C...
Description 

Authors

Akihito Koriyama
Josantonius


Contributor

This package can generate code and files for PHP project skeletons.

It prompts the user for several parameters for a project in the console shell and generates files for configuration and code for the project skeleton.

The package generates configuration files PHPUnit, PHPMD, PHPCS and Travis.

Innovation Award
PHP Programming Innovation award nominee
January 2018
Number 4
This package can generate code and files for PHP project skeletons.

It prompts the user for several parameters for a project in the console shell and generates files for configuration and code for the project skeleton.

The package generates configuration files PHPUnit, PHPMD, PHPCS and Travis.

Manuel Lemos
Picture of Josantonius
  Performance   Level  
Name: Josantonius is available for providing paid consulting. Contact Josantonius .
Classes: 31 packages by
Country: Spain Spain
Age: ???
All time rank: 132526 in Spain Spain
Week rank: 197 Up6 in Spain Spain Up
Innovation award
Innovation award
Nominee: 11x

Documentation

A standard PHP project skeleton

Latest Stable Version Latest Unstable Version License Total Downloads PSR2 PSR4

Versión en español

This project was created in order to provide project skeleton to start new PHP project.

Requirements

This project is supported by PHP versions 5.6 or higher and is compatible with HHVM versions 3.0 or higher.

Create project

You'll need Composer.

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

What is the vendor name ?

(MyVendor): Josantonius

What is the package name ?

(MyPackage): AwesomeProject

What is the package prefix ?

():

What is the version ?

(1.0.0):

What is your name ?

(Josantonius):

What is your email ?

(hello@josantonius.com):

Various config files are ready for continuous integration.

* phpunit.xml.dist for phpunit * phpmd.xml for PHPMD * phpcs.xml for PHP_CodeSniffer * .php_cs for php-cs-fixer * .travis.yml for Travis CI

Composer scripts

tests

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

composer tests

fix

composer fix run php-cs-fixer and phpcbf to fix up the PHP code to follow the coding standards.

composer fix

? TODO

  • [ ] Improve documentation

Contribute

If you would like to help, please take a look at the list of issues or the To Do checklist.

Pull requests

  • Fork and clone.
  • Run the command `composer install` to install the dependencies. This will also install the dev dependencies.
  • Run the command `composer fix` to excute code standard fixers.
  • Run the tests.
  • Create a branch, commit, push and send me a pull request.

License

This project is licensed under MIT license. See the LICENSE file for more info.


  Files folder image Files (19)  
File Role Description
Files folder imagesrc (2 files, 1 directory)
Files folder imagetests (1 file)
Accessible without login Plain text file .editorconfig Data Auxiliary data
Accessible without login Plain text file .php_cs.dist Example Example script
Accessible without login Plain text file .travis.yml Data Auxiliary data
Accessible without login Plain text file CHANGELOG.md Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file CONDUCT.md Data Auxiliary data
Accessible without login Plain text file gitattributes.txt Doc. Documentation
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file phpcs.ruleset.xml Data Auxiliary data
Accessible without login Plain text file phpmd.xml Data Auxiliary data
Accessible without login Plain text file phpunit.xml.dist Data Auxiliary data
Accessible without login Plain text file README-ES.md Doc. Documentation
Accessible without login Plain text file README.md Doc. Documentation
Accessible without login Plain text file README_EN.md Doc. Documentation
Accessible without login Plain text file README_ES.md Doc. Documentation

  Files folder image Files (19)  /  src  
File Role Description
Files folder imageException (1 file)
  Plain text file Installer.php Class Class source
  Plain text file Skeleton.php Class Class source

  Files folder image Files (19)  /  src  /  Exception  
File Role Description
  Plain text file SkeletonException.php Class Class source

  Files folder image Files (19)  /  tests  
File Role Description
  Plain text file SkeletonTest.php Class Class source

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:262
This week:0
All time:7,789
This week:488Up