trotexnet/laravel-h5p

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

H5P Plugin for laravel platform

1.1.4 2018-04-19 22:45 UTC

This package is not auto-updated.

Last update: 2021-09-18 13:30:05 UTC


README

StyleCI

H5P Plugin in Laravel Framework

Description

This repro is to integrate h5p into laravel. It's a Fork from Djoudi. It's runnable and contains a few extensions. Feel free to contribute!

Installation

Require it in the Composer.

composer require trotexnet/laravel-h5p

Publish the Views, Config and so things.

php artisan vendor:publish

Migrate the Database

php artisan migrate

Add to Composer-Classmap:

'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' => [
    Djoudi\LaravelH5p\LaravelH5pServiceProvider::class,
];
cd public/assets/vendor/h5p
ln -s ../../../../storage/h5p/libraries
ln -s ../../../../storage/h5p/editor