Skip to content

Commit 0748544

Browse files
committed
Now possible to create a phar package with Box. Phar package was also built and added to the project.
1 parent 1332be6 commit 0748544

File tree

4 files changed

+17
-0
lines changed

4 files changed

+17
-0
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
vendor
2+
composer.phar
3+
box.phar

README.md

+9
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ Warning: If you already have a composer.json file, it will overwrite it.
1010
$ curl -s http://getcomposer.org/installer | php
1111
$ php composer.phar install
1212

13+
## Build Phar package
14+
15+
$ curl -s http://box-project.org/installer.php | php
16+
$ php box.phar build
17+
1318
## Usage
1419

1520
To convert from yaml to json, run:
@@ -19,3 +24,7 @@ To convert from yaml to json, run:
1924
To convert from json to yaml, run:
2025

2126
$ bin/composer-yaml convert composer.json composer.yml
27+
28+
Alternatively, you can use the phar package to execute the same command using
29+
30+
$ php composer-yaml.phar [command]

box.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"directories": ["vendor"],
3+
"main": "bin/composer-yaml",
4+
"output": "composer-yaml.phar",
5+
"stub": true
6+
}

composer-yaml.phar

3.92 MB
Binary file not shown.

0 commit comments

Comments
 (0)