djoudi / laravel-h5p
H5P Plugin for laravel platform
Installs: 483
Dependents: 0
Suggesters: 0
Security: 0
Stars: 22
Watchers: 11
Forks: 47
Open Issues: 12
Requires
- php: ^7.0
- guzzlehttp/guzzle: ^6.2
- h5p/h5p-core: ^1.14
- h5p/h5p-editor: ^1.13
- laravel/framework: 5.5.*
- laravelcollective/html: ^5.5
- nesbot/carbon: ^1.22
- twbs/bootstrap-sass: @stable
Requires (Dev)
- fzaninotto/faker: ^1.6
- mockery/mockery: 0.9.*
- phpunit/phpunit: ~5.7
- xethron/migrations-generator: ^2.0
This package is auto-updated.
Last update: 2025-02-26 17:55:30 UTC
README
H5P Plugin in Laravel Framework
Description
Installation
Require it in the Composer.
composer require djoudi/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, ];
For linux
cd public/vendor/h5p
ln -s ../../../storage/h5p/content
ln -s ../../../storage/h5p/editor
ln -s ../../../storage/h5p/libraries
For windows
cd public/vendor/h5p mklink /d content ..\..\..\storage\h5p\content mklink /d editor ..\..\..\storage\h5p\editor mklink /d libraries ..\..\..\storage\h5p\libraries
Demo
you can see a demo at : https://github.com/djoudi/laravel-h5p-demo