escolasoft / laravel-h5p
H5P Plugin for laravel platform
Installs: 1 922
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 10
Open Issues: 0
Requires
- php: ^7.2
- escolasoft/h5p-core: dev-master
- escolasoft/h5p-editor: dev-master
- guzzlehttp/guzzle: >=6
- laravel/framework: 7.*
- laravelcollective/html: >=6.0.0
Requires (Dev)
- fzaninotto/faker: ^1.8
- kitloong/laravel-migrations-generator: ^4.0
- mockery/mockery: 1.2.*
- phpunit/phpunit: ~7.0
This package is auto-updated.
Last update: 2022-05-07 10:59:38 UTC
README
This package is archived, work is moved into part of Wells Escola LMS.
Require it in the Composer.
composer require escolasoft/laravel-h5p
Publish the Views, Config and so things.
publish php artisan vendor:publish --provider="EscolaSoft\LaravelH5p\LaravelH5pServiceProvider"
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' => [ EscolaSoft\LaravelH5p\LaravelH5pServiceProvider::class, ];
Link files
cd public/assets/vendor/h5p
ln -s public/assets/vendor/h5p ../../../../storage/app/public/h5p/libraries
You probably will need to add it to your app/Http/Middleware/VerifyCsrfToken.php
due to H5P ajax requests without Laravel CSRF token:
protected $except = [ // 'admin/h5p/ajax', 'admin/h5p/ajax/*' ];
Credits
Abdelouahab Djoudi - Package creator.
Anass Boutakaoua - Laravel 7 support and base for this package.