PHP code example of focusconcursos / sambatech-laravel

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

    

focusconcursos / sambatech-laravel example snippets


use FocusConcursos\SambatechLaravel\Facades\Sambatech;

# ...

$pathToVideo = '/var/www/html/uploads/chaves_s01_e02.mp4';
$metadata = [
    'title' > 'Video title',
    'description' => 'Full video description'
    'shortDescription' => 'Short video description',
    'tags' => ['tag 01', 'tag 02']
];
$sambatechMediaId = Sambatech::upload($pathToVideo, $metadata);
bash
php artisan vendor:publish --provider="FocusConcursos\SambatechLaravel\SambatechServiceProvider"