ShaoZeMing / package-builder

:package: A composer package builder.

Home Page:http://overtrue.me/package-builder/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Package Builder

๐Ÿ“ฆ A composer package builder.

Installation

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

Usage

 $ package-builder help

Create a composer package:

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

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

PHP ๆ‰ฉๅฑ•ๅŒ…ๅผ€ๅ‘

ๆƒณ็Ÿฅ้“ๅฆ‚ไฝ•ไปŽ้›ถๅผ€ๅง‹ๆž„ๅปบ PHP ๆ‰ฉๅฑ•ๅŒ…๏ผŸ

่ฏทๅ…ณๆณจๆˆ‘็š„ๅฎžๆˆ˜่ฏพ็จ‹๏ผŒๆˆ‘ไผšๅœจๆญค่ฏพ็จ‹ไธญๅˆ†ไบซไธ€ไบ›ๆ‰ฉๅฑ•ๅผ€ๅ‘็ป้ชŒ โ€”โ€” ใ€ŠPHP ๆ‰ฉๅฑ•ๅŒ…ๅฎžๆˆ˜ๆ•™็จ‹ - ไปŽๅ…ฅ้—จๅˆฐๅ‘ๅธƒใ€‹

License

MIT

About

:package: A composer package builder.

http://overtrue.me/package-builder/

License:MIT License


Languages

Language:PHP 100.0%