2016-12-21 41 views
0

回購是template-PHP-project。當我在packagist.org上使用提交功能時,彈出窗口顯示「undefined」。當我嘗試在packagist.org上提交我的回購時,我得到「undefined」

很明顯,我的composer.json有問題,但我不知道是什麼。 (我可以運行composer update沒有錯誤。)它包含以下內容:

{ 
    "name": "unixnut/template-php-project", 
    "description": "A self-contained project that uses the Composer autoloader to load class files", 
    "license": "GPL", 
    "authors": [ 
     { 
      "name": "Alastair Irvine", 
      "email": "[email protected]" 
     } 
    ], 
    "require": {}, 
    "include-path": ["app/include", "contrib"], 
    "autoload": { 
     "psr-4": { 
      "XYZ\\": "app/classes/XYZ" 
     } 
    } 
} 

回答

1

嘗試使用composer validate命令。

我剛剛在本地驗證了您的文件,唯一的錯誤是關於許可證。修復並再次檢查。

$ composer validate 
./composer.json is valid, but with a few warnings 
See https://getcomposer.org/doc/04-schema.md for details on the schema 
License "GPL" is not a valid SPDX license identifier, see https://spdx.org/licenses/ if you use an open license. 
If the software is closed-source, you may use "proprietary" as license. 
相關問題