toxicity / altered-api-php
Eases the api usage from the altered.gg website.
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/toxicity/altered-api-php
Requires
- php: >=8.2
- ext-ctype: *
- ext-iconv: *
- doctrine/dbal: ^4
- doctrine/orm: ^3
- symfony/cache: ^7.3
- symfony/console: ^7.3
- symfony/filesystem: ^7.3
- symfony/http-client: ^7.3
- symfony/rate-limiter: ^7.3
- symfony/validator: ^7.3
Requires (Dev)
- symfony/panther: ^2.2
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