PHP code example of joggapp / laravel-source

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

    

joggapp / laravel-source example snippets


return [
    'access_token' => env('LARAVEL_SOURCE_ACCESS_TOKEN'),

    'secret_key' => env('LARAVEL_SOURCE_SECRET_KEY'),

    'webhook_processing_queue' => 'default',
];

$response = Source::encode('unique-ref-id', 'https://example.com/video.mp4', []);

if ($response->successful()) {
    $data = $response->json();
}

$statusCode = $response->status();
$headers = $response->headers();

event->response->status()
event->response->json()
event->response->headers()
bash
php artisan vendor:publish --provider="JoggApp\Source\SourceServiceProvider"