webdevhayes / laravel-ticket-tailor-wrapper
Laravel wrapper for ticket tailor.
1.0.0
2020-12-19 18:06 UTC
Requires
- php: ^7.4|^8.0
- illuminate/contracts: ^8.0
Requires (Dev)
- orchestra/testbench: ^6.0
- phpunit/phpunit: ^9.3
This package is auto-updated.
Last update: 2025-03-29 00:50:25 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.