toxicity/altered-api-php
最新稳定版本:1.1
Composer 安装命令:
composer require toxicity/altered-api-php
包简介
Eases the api usage from the altered.gg website.
README 文档
README
This library is based on the Altered.gg website. I develop it because I need it to manage my card collections.
Dependencies
- PHP >= 8.2
Code Example
<?php use Toxicity\AlteredApi\Lib\Cards; $card = Cards::byReference('ALT_ALIZE_A_AX_35_C'); echo $card['reference'];
Some methods require authentication:
<?php use Toxicity\AlteredApi\Lib\Friends; $friends = Friends::all($token); echo $friends[0]['id'];
Installation
Using composer
composer.phar require toxicity/altered-api-php
or
composer require toxicity/altered-api-php
If you don't have composer
You can download it here.
📖 API Documentation
More explanation on available functionality:
-
Cards => https://github.com/toxicity1985/altered-api-php/blob/main/docs/Cards.md
-
Events => https://github.com/toxicity1985/altered-api-php/blob/main/docs/Events.md
-
Factions => https://github.com/toxicity1985/altered-api-php/blob/main/docs/Factions.md
-
Sets => https://github.com/toxicity1985/altered-api-php/blob/main/docs/Sets.md
🧪 Testing
This project uses atoum with a comprehensive Fake Objects approach for testing.
# Run all tests composer test # With coverage composer test-coverage
📊 Test Statistics: 9 tests • 51 methods • 322 assertions • 100% success ✅
📚 Testing Documentation:
- English: docs/FAKE_OBJECTS_GUIDE_EN.md
- Français: docs/FAKE_OBJECTS_GUIDE.md
- Quick Start: docs/README.md
统计信息
- 总下载量: 8
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-02-19