webdevhayes/laravel-ticket-tailor-wrapper

Laravel wrapper for ticket tailor.

1.0.0 2020-12-19 18:06 UTC

This package is auto-updated.

Last update: 2022-06-29 02:08:35 UTC


README

This is a laravel wrapper for Ticket Tailor. This wrapper allows you to access your Ticket Tailor data through their Apis.

Installation

You can install the package via composer:

composer require webdevhayes/laravel-ticket-tailor-wrapper

You can publish the config file with:

php artisan vendor:publish --provider="Webdevhayes\LaravelTicketTailorWrapper\LaravelTicketTailorWrapperServiceProvider" --tag="config"

This is the contents of the published config file:

return [

    /*
    |--------------------------------------------------------------------------
    | Ticket Tailor Api Base Url
    |--------------------------------------------------------------------------
    |
    | This value is the base url for the api calls.
    |
    */

    "base_url" => env('TT_BASE_URL', 'https://api.tickettailor.com/v1'),

    /*
    |--------------------------------------------------------------------------
    | Ticket Tailor Api Key
    |--------------------------------------------------------------------------
    |
    | This value is the api key for ticket tailor. This value is used when the
    | api is called.
    |
    */

    "api_key" => env('TT_API_KEY', ''),

];

Usage

$ticketTailor = new Webdevhayes\LaravelTicketTailorWrapper( config('ticket-tailor-wrapper.api_key'), config('ticket-tailor-wrapper.base_url') );
dd($ticketTailor->auth()->getAllEvents());

TODO/POSSIBLE FEATURES

  • Add tests

Changelog

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

Credits

License

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