当我尝试在 packagist.org 上提交我的回购时,我得到了"undefined"



repo是模板-php-project。当我在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": "alastair@plug.org.au"
        }
    ],
    "require": {},
    "include-path": ["app/include", "contrib"],
    "autoload": {
        "psr-4": {
            "XYZ\": "app/classes/XYZ"
        }
    }
}

尝试使用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.

相关内容

  • 没有找到相关文章

最新更新