- Use the crosswalk proposed here to build an indexer for Composer.
- A feature that could be implemented will be detecting multiple licenses, which can be comma-separated in a list or separated by "or" in a string (P1393)
Example composer.json :
{ "name": "symfony/polyfill-mbstring", "type": "library", "description": "Symfony polyfill for the Mbstring extension", "keywords": ["polyfill", "shim", "compatibility", "portable", "mbstring"], "homepage": "https://symfony.com", "license": "MIT", "authors": [ { "name": "Nicolas Grekas", "email": "p@tchwork.com" }, { "name": "Symfony Community", "homepage": "https://symfony.com/contributors" } ], "require": { "php": ">=7.1" }, "provide": { "ext-mbstring": "*" }, "autoload": { "psr-4": { "Symfony\\Polyfill\\Mbstring\\": "" }, "files": [ "bootstrap.php" ] }, "suggest": { "ext-mbstring": "For best performance" }, "minimum-stability": "dev", "extra": { "branch-alias": { "dev-main": "1.26-dev" }, "thanks": { "name": "symfony/polyfill", "url": "https://github.com/symfony/polyfill" } } }
In codemeta:
{ "@context": "https://doi.org/10.5063/schema/codemeta-2.0", "type": "SoftwareSourceCode", "name": "symfony/polyfill-mbstring", "keywords": [ "polyfill", "shim", "compatibility", "portable", "mbstring", ], "description": "Symfony polyfill for the Mbstring extension", "url": "https://symfony.com" "license": "https://spdx.org/licenses/MIT", "codeRepository": "git+ https://github.com/symfony/polyfill", "author": [ { "type": "Person", "name": "Nicolas Grekas", "email": "p@tchwork.com", }, { "type": "Person", "name": "Symfony Community", } ], "softwareRequirements": { "php": ">=7.1" }, }