https://github.com/hongyukeji/package-builder
https://github.com/hongyukeji/package-builder
Last synced: about 21 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/hongyukeji/package-builder
- Owner: hongyukeji
- License: mit
- Created: 2019-05-24T04:47:25.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-14T02:35:27.000Z (about 5 years ago)
- Last Synced: 2025-02-16T11:16:04.077Z (4 months ago)
- Language: PHP
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Package Builder
:package: A composer package builder.
# Installation
```shell
$ composer global require 'hongyukeji/package-builder' --prefer-source
```# Usage
```shell
$ package-builder help
```## Create a composer package:
Make sure you have `~/.composer/vendor/bin/` in your path.```
package-builder build [target directory]
```
example:```shell
$ 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
```shell
$ package-builder update
```# Contributing
You can contribute in one of three ways:
1. File bug reports using the [issue tracker](https://github.com/hongyukeji/package-builder/issues).
2. Answer questions or fix bugs on the [issue tracker](https://github.com/hongyukeji/package-builder/issues).
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