Skip to content

webdevhayes/laravel-ticket-tailor-wrapper

Repository files navigation

Laravel wrapper for ticket tailor.

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.

About

Laravel wrapper for ticket tailor apis

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages