Creates a PHP composer library with useful defaults (github repo, phpunit, travis, namespace, php-cs-fixer, README)
PHP
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
config
src/Camspiers/PhpLibCreate
.gitignore
.php_cs
.travis.yml
LICENSE
README.md
composer.json
composer.lock

README.md

PHP Library Creator

Enables you to quickly create a PHP library with the following defaults:

  • Composer config
  • Github repo
  • Namespace
  • Phpunit config
  • Travis config
  • PHP CS Fixer config
  • README file

Installation

Download the php-lib-create.phar executable.

Global installation

$ wget http://camspiers.github.io/php-lib-create/php-lib-create.phar
$ ln -s $PWD/php-lib-create.phar /usr/local/bin/php-lib-create

Updating

To stay up to date run

$ php php-lib-create.phar self-update

Usage

$ php php-lib-create.phar create

or

$ php php-lib-create.phar create -d ~/somedir