<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                ## 示例: [一步一步創建自己的composer包](https://www.cnblogs.com/gelu/p/9732649.html) # 構建之前 1. 申請github賬號,并建好一個repositories。 2. 用github登錄packageList. # 創建包 ## 初始化倉庫 ~~~ mkdir -p /www/plan cd /www/plan echo "# plan" >> README.md git init git add README.md git commit -m "first commit" git remote add origin git@github.com:lujiang/plan.git git push -u origin master ~~~ ## `composer init`構建composer.json ~~~ { "name": "lujiang618/plan", "description": "plan", "type": "project", "licence": "MIT", "authors": [ { "name": "lujiang", "email": "531432594@qq.com" } ], "require": { "php":">=7.0.0" }, "autoload": { "psr-4":{ "Tools\\":"src/Tools" } } } ~~~ ## 構建包 1.按照autoload中設置的,在根目錄下建一個Tools的目錄 2.在Tools目錄寫一個tools類 ~~~ <?php /** * Created by PhpStorm. * User: lujiang * Date: 2018/9/30 * Time: 15:57 */ namespace Tools; class Tools { public function __construct() { } public static function hi() { echo 'hi'; } } ~~~ 3.在根目錄寫一個測試類hi.php ~~~ <?php /** * Created by PhpStorm. * User: lujiang * Date: 2018/9/30 * Time: 16:06 */ require_once './vendor/autoload.php'; use Tools\Tools; echo Tools::hi(); ~~~ 4.執行`composer install`生成vendor目錄 5.執行測試類,輸出hi。如此一個包構建完成了 ~~~ cd /www/plan php hi.php ~~~ 6.提交代碼到github ~~~ git add . git commit -am 'first' git push git tag -a v0.0.1 -m "first version" git push origin v0.0.1 ~~~ #### 在github上發布版本,找到release,執行發布(勾上\[This is pre-release\]) #### 在packagist上submit package。并在profile里面獲取token。在github的settings的Installed GitHub Apps添加packagist的service
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看