久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      教你如何創(chuàng)建第一個(gè)composer package

      本文由composer教程欄目給大家介紹怎么創(chuàng)建第一個(gè)composer package,希望對(duì)需要的朋友有所幫助!

      就用到以下兩個(gè)網(wǎng)站:
      https://github.com/
      https://packagist.org

      (0)文章結(jié)構(gòu):

      1 構(gòu)建:

      • 創(chuàng)建github項(xiàng)目;
      • 提交到packagist;

      2 使用;

      (1)構(gòu)建

      一個(gè)composer package 就是一個(gè)github repository 加一個(gè) composer.json;

      我的hello_world項(xiàng)目截圖:

      教你如何創(chuàng)建第一個(gè)composer package

      git log 截圖.看清楚了有加 tag 的(參考:https://docs.phpcomposer.com/… 必須加 tag 才會(huì) 自動(dòng)生成stable版本.

      教你如何創(chuàng)建第一個(gè)composer package

      如何 提交到packagist呢,看https://packagist.org/首頁:

      教你如何創(chuàng)建第一個(gè)composer package

      照著注冊(cè)并操作:

      教你如何創(chuàng)建第一個(gè)composer package驗(yàn)證如果 沒問題在 包頁面 就會(huì) 看到. 注意右下角的包版本,我的項(xiàng)目有三個(gè)版本號(hào)(版本號(hào)生成規(guī)則說明:git master分支自動(dòng)生成"dev-master"版本,兩個(gè)tag各生成一個(gè)版本號(hào)"1.0.0"和"1.0.1")

      教你如何創(chuàng)建第一個(gè)composer package

      (2)使用

      接下來就可以下載包下來 使用了,以我的項(xiàng)目為例:

      composer create-project linzh/hello_world ,這樣他就默認(rèn)下載我最新的stable版本(非dev);
      如果你想下載其他版本可以自己指定,eg:composer create-project linzh/hello_world=dev-master ,這樣就會(huì)下載"dev-master"版本了

      如果 沒有加 tag 也必須自己指定版本號(hào),否則會(huì)報(bào)錯(cuò)

      教你如何創(chuàng)建第一個(gè)composer package

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)