PHP code example of inshore / laravel-bookwhen

1. Go to this page and download the library: Download inshore/laravel-bookwhen 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/ */

    

inshore / laravel-bookwhen example snippets


php artisan vendor:publish

  Provider: InShore\Bookwhen\ServiceProvider .....................................................................................................

use InShore\Bookwhen\Facades\Bookwhen;

// Returns the location for the provided location ID.

$location = Bookwhen::location('ev-smij-20200530100000');

 php

// Fetch attachments accessible by the API token.

$attachments = Bookwhen::attachments());
 php

// Fetch class passes accessible by the API token.

$classPasses = Bookwhen::classPasses());

 php

// Returns the event for the provided event ID.

$event = Bookwhen::events();

 php

// Returns the event for the provided event ID.

$event = Bookwhen::event('ev-smij-20200530100000');

 php

// Returns the event for the provided event ID.

$event = Bookwhen::event(eventId: 'ev-smij-20200530100000', 
 php

// Fetch tickets for the given event.

$eventId = 'ev-smij-20200530100000';

$client->tickets($eventId);
 php

// Fetch tickets for the given event.

$eventId = 'ev-smij-20200530100000';

$client->tickets($eventId,