Download the PHP package transisidev/laravel-h5p without Composer

On this page you can find all versions of the php package transisidev/laravel-h5p. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-h5p

Laravel H5P

H5P Plugin for Laravel platform - Updated for Laravel 12 & 13.

Laravel PHP

✨ Features

📋 Requirements

🚀 Installation

1. Install via Composer

2. Run Installation Command

This will:

3. Check Installation Status

⚙️ Configuration

Publish Config

Config file: config/laravel-h5p.php

Key Configuration Options

Key Default Description
language en Default language (en, ar, fr)
use_router ALL Route group to load: ALL, EDITOR, or EXPORT
h5p_frame true Show H5P frame/toolbar
h5p_export true Allow content export
h5p_embed true Allow content embed
h5p_hub_is_enabled true Enable H5P Hub integration
h5p_save_content_state false Save user content state
h5p_save_content_frequency 30 State save frequency (seconds)
h5p_editor_max_post_size 128M Max POST size for editor uploads
h5p_editor_chunk_upload_enabled false Enable chunked uploads
h5p_editor_chunk_threshold_bytes 5242880 Chunk upload threshold (5 MB)
h5p_editor_chunk_max_chunk_bytes 5242880 Max chunk size (5 MB)
h5p_editor_chunk_max_total_bytes 536870912 Max total upload size (512 MB)

Environment Variables

Add to your .env:

📖 Available Commands

Command Description
php artisan h5p:install Full installation (publish config, run migrations, setup storage)
php artisan h5p:publish --force Re-publish assets and config
php artisan h5p:cleanup --temp Clean temporary files
php artisan h5p:cleanup --unused Remove unused libraries
php artisan h5p:status Show installation status
php artisan h5p:migrate Run H5P database migrations manually
php artisan h5p:reset Reset H5P data

🔧 Usage

Publish Assets

Available Routes

Editor & Library Routes (use_router = EDITOR or ALL, requires auth)

Method Route Name Description
GET /h5p/library h5p.library.index List H5P libraries
GET /h5p/library/show/{id} h5p.library.show Show a library
POST /h5p/library/store h5p.library.store Upload a library
DELETE /h5p/library/destroy h5p.library.destroy Delete a library
GET /h5p/library/restrict h5p.library.restrict Restrict a library
POST /h5p/library/clear h5p.library.clear Clear library cache
GET/POST /h5p h5p.index List H5P content
GET /h5p/create h5p.create Create new content
POST /h5p h5p.store Store new content
GET /h5p/{id} h5p.show Show content
GET /h5p/{id}/edit h5p.edit Edit content
PUT /h5p/{id} h5p.update Update content
DELETE /h5p/{id} h5p.destroy Delete content

Ajax Routes

Method Route Name Description
GET/POST /ajax/libraries h5p.ajax.libraries Get libraries list
GET /ajax/single-libraries h5p.ajax.single-libraries Get single library
GET/POST /ajax/content-type-cache h5p.ajax.content-type-cache Content type cache
GET/POST /ajax/content-hub-metadata-cache h5p.ajax.content-hub-metadata-cache Hub metadata cache
POST /ajax/library-install h5p.ajax.library-install Install library
POST /ajax/library-upload h5p.ajax.library-upload Upload library
POST /ajax/rebuild-cache h5p.ajax.rebuild-cache Rebuild asset cache
POST /ajax/files h5p.ajax.files File upload
GET /ajax/finish h5p.ajax.finish Finish action
POST /ajax/content-user-data h5p.ajax.content-user-data Save user data
POST /ajax/files/chunk h5p.ajax.files.chunk Chunked file upload
POST /ajax/files/chunk-assemble h5p.ajax.files.chunk-assemble Assemble chunks

Export & Embed Routes (always available)

Method Route Name Description
GET /h5p/embed/{id} h5p.embed Embed H5P content
GET /h5p/export/{id} h5p.export Download/export H5P content

Programmatic Usage

Facade Usage

📦 Eloquent Models

Model Namespace Description
H5pContent Transisi\LaravelH5P\Eloquents H5P content entries
H5pLibrary Transisi\LaravelH5P\Eloquents Installed libraries
H5pResult Transisi\LaravelH5P\Eloquents Student results
H5pContentsLibrary Transisi\LaravelH5P\Eloquents Content-library pivot
H5pContentsTag Transisi\LaravelH5P\Eloquents Content tags
H5pContentsUserData Transisi\LaravelH5P\Eloquents User content state
H5pEventLog Transisi\LaravelH5P\Eloquents Event logs
H5pLibrariesHubCache Transisi\LaravelH5P\Eloquents H5P Hub cache

🔗 xAPI/LRS Integration

When LRS is enabled, student results can be sent to your LRS via queue jobs:

  1. Set LRS credentials in .env
  2. Dispatch the SendXapiStatement job after saving a result:

  3. Run queue worker:

📁 Directory Structure

🌍 Multi-language Support

Language files are available for:

Set the default language in config/laravel-h5p.php:

Or publish and customize translations:

🤝 Contributing

Contributions are welcome! Please open an issue or submit a pull request.

📄 License

MIT License — see LICENSE file.


All versions of laravel-h5p with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
laravel/framework Version ^12.0|^13.0
h5p/h5p-core Version ^1.24
h5p/h5p-editor Version ^1.24
guzzlehttp/guzzle Version ^7.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package transisidev/laravel-h5p contains the following files

Loading the files please wait ...