PHP Classes
elePHPant
Icontem

PHP Skeleton: Generate code and files for PHP project skeletons

Recommend this page to a friend!
  Info   View files Documentation   View files View files (19)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2017-11-07 (2 months ago) RSS 2.0 feedNot enough user ratingsTotal: 103 This week: 2All time: 8,818 This week: 298Up
Version License PHP version Categories
php-skeleton 1.0.0MIT/X Consortium ...5.6PHP 5, Files and Folders, Project Man..., C...
Description Author

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.

  Performance   Level  
Name: Josantonius is available for providing paid consulting. Contact Josantonius .
Classes: 20 packages by
Country: Spain Spain
Age: ???
All time rank: 208348 in Spain Spain
Week rank: 17 Up1 in Spain Spain Up
Innovation award
Innovation award
Nominee: 9x

Details

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  
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  /  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  /  src  /  Exception  
File Role Description
  Plain text file SkeletonException.php Class Class source

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

 Version Control Unique User Downloads Download Rankings  
 100%
Total:103
This week:2
All time:8,818
This week:298Up