selective / artifact
Artifact builder
Installs: 3 266
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: ^7.1
- ext-json: *
- ext-zip: *
- symfony/console: ^2.8|^3.0|^4.0|^5.0
Requires (Dev)
- overtrue/phplint: ^1.1
- php-mock/php-mock: ^2.1
- phpstan/phpstan-shim: ^0.11
- phpunit/phpunit: ^7
- squizlabs/php_codesniffer: ^3.4
README
An artifact builder for PHP.
Requirements
- PHP 7.1+
Installation
composer require selective/artifact --dev
Optional: Add this script to your composer.json
file:
{ "scripts": { "build": "artifact build --name=my_app" } }
Usage
To generate the artifact (zip file) for deployment, run:
vendor/bin/artifact build --name=my_app
You may also use composer:
composer build
The generated artifact will be stored in the build/
directory.
Commands
Command | Description |
---|---|
build | Build the artifact. |
Parameters
Parameter | Values | Default | Description |
---|---|---|---|
--name | string | my_app | The zip file prefix. |
Testing
composer test
Similar tools
License
The MIT License (MIT). Please see License File for more information.