devgiants/phar-application
Composer 安装命令:
composer create-project devgiants/phar-application
包简介
Boilerplate for fully maintenable PHP CLI applications packaged in PHAR
README 文档
README
## Description
Embed everything needed to create a fully maintenable PHAR application
## Installation
composer create-project devgiants/phar-application
Usage (TODO)
- Set .env and app/bin/.env
- Change src/App to your namespace
- app/src/composer.json
- All namespaces calls
- Change box.json for app name
- Use Model/ApplicationCommand for common model with DI and logging
PHAR Packager
This bash script goal is to ease tedious PHAR packaging process for a open-source app published on Github. This script is very specific to following case :
- Open-source project hosted on Github
- Use Box for create package
- Use Kherge version (abandoned) to handle version number. TODO is to switch to maintained project ASAP
- Use a manifest system to publish phar archive to gh-pages. You can have live example on applications I created such as livebox or websites-backup
Usage
Just make sur your local master branch is up-to-date, with README updated with good version number (the one you publish). Then:
./make-phar -n appname -v 1.2.3
This will do, in order :
- Create local tag with version passed as argument
- Push
masterbranch to remote repo - Push tags to remote repo
- Build PHAR using
box - Move generated PHAR to
/tmp - Checkout to
gh-pages - Move generated archive from
/tmptodownloads/{appname}-{version}.phar - Create matching manifest file
- Push everything to
gh-pageremote branch. - Switch back to
master
统计信息
- 总下载量: 13
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-03-16