piedweb / github
无API的Github元数据仓库提取器
v0.0.9
2021-01-20 14:50 UTC
Requires
- php: ~7.1|^8.0
- ropendev/curl: ^1.0
- ropendev/simple_html_dom: ^1.7
- vimeo/psalm: ^4.4
Requires (Dev)
- phpunit/phpunit: >=7.0
- squizlabs/php_codesniffer: ^3.0
README
Github元数据仓库提取器
安装
通过 Packagist
$ composer require piedweb/github
用法
use PiedWeb\Github\ExtractRepoMetaData; $github = new ExtractRepoMetaData('https://github.com/PiedWeb/CMS'); $github->getName() // @return string $github->getDescription() // @return string $github->getStars() // @return string $github->getRepo() // @return string eg. PiedWeb/CMS $github->getUrl() // @return string
测试
$ composer test
贡献
请参阅 贡献指南
致谢
许可证
MIT许可证(MIT)。请参阅 许可证文件 获取更多信息。