PHP
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
src
.gitattributes
.gitignore
.php_cs
LICENSE
README.md
composer.json

README.md

Package Builder

πŸ“¦ A composer package builder.

Installation

  1. As a Global Composer Install (Recommended)

    $ composer global require 'overtrue/package-builder' --prefer-source
  2. As a Phar

    $ curl -LSs http://overtrue.me/package-builder/installer.php | php
    # as a command.
    mv package-builder.phar /usr/local/bin/package-builder
    chmod +x /usr/local/bin/package-builder

Usage

 $ package-builder help

create a composer package:

package-builder build [target directory]

example:

$ package-builder build ./

# Please enter the name of the package (example: foo/bar): vendor/product
# Please enter the namespace of the package [Vendor\Product]:
# Do you want to test this package ?[Y/n]:
# Do you want to use php-cs-fixer format you code ? [Y/n]:
# Please enter the standard of php-cs-fixer [symfony] ?
# Package vendor/product created in: ./

The follow package will be created:

vendor-product
β”œβ”€β”€ .editorconfig
β”œβ”€β”€ .gitattributes
β”œβ”€β”€ .gitignore
β”œβ”€β”€ .php_cs
β”œβ”€β”€ README.md
β”œβ”€β”€ composer.json
β”œβ”€β”€ phpunit.xml.dist
β”œβ”€β”€ src
β”‚Β Β  └── .gitkeep
└── tests
    └── .gitkeep

Update Package Builder

$ package-builder update

Contributing

You can contribute in one of three ways:

  1. File bug reports using the issue tracker.
  2. Answer questions or fix bugs on the issue tracker.
  3. Contribute new features or update the wiki.

The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.

License

MIT