devgiants/phar-application 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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 :

  1. Create local tag with version passed as argument
  2. Push master branch to remote repo
  3. Push tags to remote repo
  4. Build PHAR using box
  5. Move generated PHAR to /tmp
  6. Checkout to gh-pages
  7. Move generated archive from /tmp to downloads/{appname}-{version}.phar
  8. Create matching manifest file
  9. Push everything to gh-page remote branch.
  10. Switch back to master

统计信息

  • 总下载量: 13
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-03-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固