當前,2.x新版本發佈的流程,主要以下。
重要的信息
PhalApi 2.x Kernal核心包(底層代碼在這裏):https://github.com/phalapi/kernal
PhalApi 2.x 項目(直接可用於開發的項目):https://github.com/phalapi/phalapi
第1步、修改更新日誌
文檔展現頁面:http://docs.phalapi.net/#/v2.0/changelog
對應編輯的代碼位置在(碼雲):https://gitee.com/dogstar/phal ... og.md
第2步、對Kernal包進行版本升級
修改核心代碼composer包,即Kernal包,Github項目地址:https://github.com/phalapi/kernal
發佈前,須要修改新版本的版本號。修改源文件:https://github.com/phalapi/ker ... s.php
而後,把框架版本號PHALAPI_VERSION進行更新。php
/** * 框架版本號 */ defined('PHALAPI_VERSION') || define('PHALAPI_VERSION', '2.4.2');
最後,在Github項目建立一個新的版本發佈:https://github.com/phalapi/kernal/releaseshtml
$ composer update
一樣,在Github項目建立一個新的版本發佈:https://github.com/phalapi/phalapi/releases ,注意,版本應該與Kernal的保持一致,避免混淆。更新內容也同樣。git
// 兩個系列版本 $lastestVersion = substr($version, 0, 1) == '1' ? '1.4.1' : ' 2.4.0';
效果相似這樣:
第6步,在社區發佈版本更新公告github