cepdtech/pokemon
最新稳定版本:1.0.0
Composer 安装命令:
composer require cepdtech/pokemon
包简介
Magento 2 module to integrate with PokeAPI
README 文档
README
Magento 2 module to integrate with PokeAPI
Setup
composer require cepdtech/pokemon
ADR
Write own Pokemon API client
There are 2 3rd party libraries, but both has problems:
- https://github.com/danrovito/pokephp
- doesn't support injection of base URL
- https://github.com/lmerotta/phpokeapi
- doesn't support PHP 8
In normal situation I will propose to use the first one (in the worst scenario (url changed) composer patch could be used), but because this is skill presentation project, I decided to write my own client.
Quality
Tested on:
- PHP 8.3
- Magento Community Edition 2.4.7
Tests
vendor/bin/phpunit -c dev/tests/unit/phpunit.xml.dist vendor/cepdtech/pokemon
Code sniffer
vendor/bin/phpcs --standard=Magento2 -p -s --colors --error-severity=1 --warning-severity=0 vendor/cepdtech/pokemon/
Copy-paste detector
vendor/bin/phpcpd vendor/cepdtech/pokemon/
Mess detector
vendor/bin/phpmd vendor/cepdtech/pokemon/ text dev/tests/static/testsuite/Magento/Test/Php/_files/phpmd/ruleset.xml
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-07-27