Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

Latest commit

 

History

History
74 lines (47 loc) · 2.3 KB

README.md

File metadata and controls

74 lines (47 loc) · 2.3 KB

Laravel Digitickets

Still in development.

Latest Version on Packagist Build Status Quality Score Total Downloads

Laravel Digitickets is a Laravel package to help make API calls to Digitickets. It currently supports the majority of the Digiticket API endpoints.

Installation

You can install the package via composer:

composer require steadfastcollective/digitickets-laravel

Usage

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,
]);

Testing

composer test

Changelog

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

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email dev@steadfastcollective.com instead of using the issue tracker.

Credits

License

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