>[info]“一個時代結束了,另一個時代開始了。”
Framework Interoperability Group(框架可互用性小組),簡稱 FIG,成立于 2009 年。FIG 最初由幾位知名 PHP 框架開發者發起,在吸納了許多優秀的大腦和強健的體魄后,提出了 PSR-0 到 PSR-4 五套 PHP 非官方規范:
~~~
* PSR-0 (Autoloading Standard) 自動加載標準
* PSR-1 (Basic Coding Standard) 基礎編碼標準
* PSR-2 (Coding Style Guide) 編碼風格向導
* PSR-3 (Logger Interface) 日志接口
* PSR-4 (Improved Autoloading) 自動加載優化標準
~~~
### 創建composer.json
在網站根目錄下創建新文件夾 `my-framework` (My First Framework based on Composer),然后在此文件夾內創建 `composer.json` 文件
~~~
{
"require":{
}
}
~~~
### 初始化composer
打開命令行cmd,進入剛剛新建的目錄 `my_framework`,執行命令
~~~
composer update
~~~
執行成功后生成了擴展包` vendor`
<center>

</center>
此時目錄為:
<center>

</center>
到此,composer初始化完成!