PHP code example of inhubdev / laravel-h5p
1. Go to this page and download the library: Download inhubdev/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/ */
inhubdev / laravel-h5p example snippets
'classmap': [
"vendor/h5p/h5p-core/h5p-default-storage.class.php",
"vendor/h5p/h5p-core/h5p-development.class.php",
"vendor/h5p/h5p-core/h5p-event-base.class.php",
"vendor/h5p/h5p-core/h5p-file-storage.interface.php",
"vendor/h5p/h5p-core/h5p.classes.php",
"vendor/h5p/h5p-editor/h5peditor-ajax.class.php",
"vendor/h5p/h5p-editor/h5peditor-ajax.interface.php",
"vendor/h5p/h5p-editor/h5peditor-file.class.php",
"vendor/h5p/h5p-editor/h5peditor-storage.interface.php",
"vendor/h5p/h5p-editor/h5peditor.class.php"
],
'providers' => [
InHub\LaravelH5p\LaravelH5pServiceProvider::class,
];
protected $except = [
'/ajax/library-upload',
'/ajax/finish',
'/ajax/content-user-data',
'/ajax/library-install',
'/ajax/files',
];
use Illuminate\Support\Facades\URL;
public function boot()
{
/* ... */
URL::forceScheme('https');
}
bash
php artisan vendor:publish
bash
php artisan migrate