2017 © Pedro Peláez
 

library package-template

Core files of any PHP package for easy setup

image

greeny/package-template

Core files of any PHP package for easy setup

  • Friday, April 7, 2017
  • by greeny
  • Repository
  • 2 Watchers
  • 5 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Package template for PHP

This is a template for PHP library. It features pre-installed libraries: - nette/tester - slevomat/coding-standard - consistence/coding-standard - jakub-onderka/php-parallel-lint - phpstan/phpstan, (*1)

It also has .travis.yml file for fast setup., (*2)

Made for PHP 7.1 and tested on it, may work on earlier versions with some modifications to enabled Sniffs and PHPStan tests., (*3)

Starting new package

  1. create project, (*4)

    composer create-project greeny/package-template YourAwesomeProjectName, (*5)

  2. change composer.json to provide correct information about your package / vendor name, autoloading settings, description and author, (*6)

  3. write code to src folder
  4. test your code using composer build
  5. setup travis integration (enable travis testing for your repository, there is already .travis.yml file present)
  6. profit

Feel free to use this and/or suggest changes. I am open to anything., (*7)

The Versions