PHP code example of webdevhayes / laravel-ticket-tailor-wrapper

1. Go to this page and download the library: Download webdevhayes/laravel-ticket-tailor-wrapper library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

webdevhayes / laravel-ticket-tailor-wrapper example snippets


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', ''),

];

$ticketTailor = new Webdevhayes\LaravelTicketTailorWrapper( config('ticket-tailor-wrapper.api_key'), config('ticket-tailor-wrapper.base_url') );
dd($ticketTailor->auth()->getAllEvents());
bash
php artisan vendor:publish --provider="Webdevhayes\LaravelTicketTailorWrapper\LaravelTicketTailorWrapperServiceProvider" --tag="config"