PHP code example of hareom284 / laravel-h5p

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

    

hareom284 / 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' => [
    Hareom284\LaravelH5p\LaravelH5pServiceProvider::class,
];

protected $except = [
    //
    'admin/h5p/ajax',
    'admin/h5p/ajax/*'
];
bash
php artisan vendor:publish --provider="Hareom284\LaravelH5p\LaravelH5pServiceProvider"
bash
php artisan migrate --package=vendor/Hareom284/laravel-h5p