https://github.com/greeny/package-template
Core files of any PHP package for easy setup
https://github.com/greeny/package-template
package php template
Last synced: over 1 year ago
JSON representation
Core files of any PHP package for easy setup
- Host: GitHub
- URL: https://github.com/greeny/package-template
- Owner: greeny
- License: mit
- Created: 2017-04-04T13:29:57.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-07T14:11:17.000Z (over 9 years ago)
- Last Synced: 2025-02-28T07:02:00.159Z (over 1 year ago)
- Topics: package, php, template
- Language: PHP
- Homepage: https://packagist.org/packages/greeny/package-template
- Size: 7.81 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
It also has .travis.yml file for fast setup.
Made for PHP 7.1 and tested on it, may work on earlier versions with some modifications to enabled Sniffs and PHPStan tests.
## Starting new package
1. create project
composer create-project greeny/package-template YourAwesomeProjectName
2. change composer.json to provide correct information about your package / vendor name, autoloading settings, description and author
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.