PHP code example of djoudi / laravel-h5p

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

    

djoudi / laravel-h5p example snippets


use Illuminate\Support\Facades\App;

// Get H5P instance
$h5p = App::make('LaravelH5p');

// Get content
$content = $h5p->get_content($id);

// Get embed code
$embed = $h5p->get_embed($content, $settings);
bash
php artisan h5p:install
bash
php artisan h5p:status