aburakovskiy / laravel-antpool-api
Antpool PHP API Client for Laravel
v0.1.2
2020-03-21 17:44 UTC
Requires
- php: >=5.6
This package is not auto-updated.
Last update: 2025-07-20 19:58:41 UTC
README
Laravel PHP Facade/Antpool for the Antpool API
Requirements
- PHP 5.6 or higher
- Laravel 5.1 or higher
Installation
Run in console below command to download package to your project:
composer require aburakovskiy/laravel-antpool-api
Configuration
In /config/app.php
add AntpoolServiceProvider:
Aburakovskiy\LaravelAntpoolApi\AntpoolServiceProvider::class,
Do not forget to add also Antpool facade there:
'Antpool' => Aburakovskiy\LaravelAntpoolApi\Facades\Antpool::class,
Publish config settings:
$ php artisan vendor:publish --provider="Aburakovskiy\LaravelAntpoolApi\AntpoolServiceProvider"
Set your Antpool API credentials in the file:
/config/antpool.php
Or in the .env file
ANTPOOL_USERNAME = USERNAME
ANTPOOL_KEY = KEY
ANTPOOL_SECRET = SECRET
Usage
use Aburakovskiy\LaravelAntpoolApi\Facades\Antpool; // Return an account info $account = Antpool::get('account');
Antpool API
Credits
Built on code from Elompenta's antpool-php-api.