A composer package builder.

2.0.0 2021-05-06 11:37 UTC

This package is auto-updated.

Last update: 2022-05-06 13:51:16 UTC


Run tests

📦 A composer package builder.


$ composer global require 'jimchen/package-builder' --prefer-source


 $ package-builder help

Create a composer package:

Make sure you have ~/.composer/vendor/bin/ in your path.

package-builder build [target directory]


$ 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 your code ? [Y/n]:
# Please enter the standard of php-cs-fixer [symfony] ?
# Package vendor/product created in: ./

The follow package will be created:

├── .editorconfig
├── .gitattributes
├── .gitignore
├── .php_cs
├── README.md
├── composer.json
├── phpunit.xml.dist
├── src
│   └── .gitkeep
└── tests
    └── .gitkeep

Update Package Builder

$ package-builder update

Be careful!!!

The latest version is using friendsofphp/php-cs-fixer:3.x

If want to use friendsofphp/php-cs-fixer:2.x, please install jimchen/package-builder:1.x


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._