eele/laravel-tonic

Laravel Tonic API Integration


README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Tonic Integration for Laravel, using for my personal projects. Use at your own risk.

Installation

You can install the package via composer:

composer require eele/laravel-tonic

You can publish and run the migrations with:

php artisan vendor:publish --tag="laravel-tonic-migrations"
php artisan migrate

You can publish the config file with:

php artisan vendor:publish --tag="laravel-tonic-config"

This is the contents of the published config file:

return [
];

Optionally, you can publish the views using

php artisan vendor:publish --tag="laravel-tonic-views"

Usage see unit tests for examples

GetOffers

$tonic = new \Eele94\Tonic\Tonic();
$response = $tonic->send(new OffersGet());

Integration generate api sdk

Using sdkgenerator

Tonic

sdkgenerator generate:sdk ./tonic-for-publishers-api-v4.json --type=openapi --name=Tonic --output=./src/Api --namespace=Eele94\Tonic\Api

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.