Creates a Satis file to generate a private Composer repository.
composer install
make start
docker exec -it satis_builder_php php src/generate.php var/sample/input var/sample/output
Input file sample:
# Path where the libraries are located
path_pre: /projects/%s/php-libs/%s
#path_pre: https://github.com/%s/%s
# Optional: Path where each library contains its code
path_post: code
packages:
- yosmanyga/lib-1
- yosmanyga/lib-2Output file:
{
"name": "satis",
"description": "PHP Packages",
"homepage": "http://localhost:8080",
"repositories": [
{
"name": "yosmanyga/lib-1",
"type": "vcs",
"url": "/projects/yosmanyga/php-libs/lib-1/code"
},
{
"name": "yosmanyga/lib-2",
"type": "vcs",
"url": "/projects/yosmanyga/php-libs/lib-2/code"
}
],
"require-all": true
}You can modify the path_pre and path_post to fit your needs. The %s will be replaced by the package name parts.
You can also modify the satis template, located in src/satis.json.mustache.