PHP SDK for the Mifiel API.
API reference, guides, and examples:
- English: https://docs.mifiel.com/en/
- Español: https://docs.mifiel.com/es/
This README covers installation and client setup only.
composer require mifiel/api-clientOr add it to your composer.json:
{
"require": {
"mifiel/api-client": "^4.0"
}
}- Create an account (production or sandbox).
- Generate an
APP_IDandAPP_SECRETin Access Tokens. - Configure the client:
use Mifiel\ApiClient as Mifiel;
Mifiel::setTokens('APP_ID', 'APP_SECRET');
// Production is the default (https://app.mifiel.com/api/v1/).
// For sandbox:
Mifiel::url('https://app-sandbox.mifiel.com/api/v1/');# Unit
php vendor/bin/phpunit --exclude-group internet
# e2e
php vendor/bin/phpunit --group internet- Fork it (https://github.com/Mifiel/php-api-client/fork)
- Create your feature branch (
git checkout -b feature/my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin feature/my-new-feature) - Create a new Pull Request