Still in development.
Laravel Digitickets is a Laravel package to help make API calls to Digitickets. It currently supports the majority of the Digiticket API endpoints.
You can install the package via composer:
composer require steadfastcollective/digitickets-laravel
use SteadfastCollective\Digitickets\Digitickets;
$response = (new Digitickets($ip, $username, $password, $port))
->request([
//
]);
This package is built using the repository pattern, where every resource, like an Order
or a Customer
is its own repository. Each of these repositories have their own methods. For example, the OrderRepository
has these methods:
index
show
create
update
If there are any filters or bits of data you need to pass through to the Digitickets API, just pass it through inside an array. Here's a basic example:
$orders = new OrderRepository();
return $orders->index([
'page' => 2,
]);
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email dev@steadfastcollective.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.