PHPackages                             larah5p/larah5p - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. larah5p/larah5p

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

larah5p/larah5p
===============

Advanced H5P integration for Laravel 10+ - filament fork

v1.0.0(1y ago)0421MITPHPPHP &gt;=8.2CI failing

Since Feb 18Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/MusabAlzoubi/larah5p)[ Packagist](https://packagist.org/packages/larah5p/larah5p)[ GitHub Sponsors](https://github.com/musabAlzoubi)[ RSS](/packages/larah5p-larah5p/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (7)Versions (2)Used By (0)

LaraH5P - Advanced H5P Integration for Laravel
==============================================

[](#larah5p---advanced-h5p-integration-for-laravel)

LaraH5P is a Laravel package that provides seamless integration with **H5P**, allowing you to **create, manage, and interact with interactive content** directly within your Laravel application.

---

📌 Features
----------

[](#-features)

- Full integration with **H5P Core** and **H5P Editor**.
- Content management (create, edit, delete).
- Library management with AJAX support.
- Export and embed H5P content.
- Permission-based access control.
- Fully customizable.

---

📥 Installation
--------------

[](#-installation)

### 1. Install the package

[](#1-install-the-package)

Run the following command in your Laravel project:

```
composer require larah5p/larah5p
```

### 2. Publish the package assets, config, migrations, and views

[](#2-publish-the-package-assets-config-migrations-and-views)

```
php artisan vendor:publish --provider="LaraH5P\Providers\LaraH5PServiceProvider" --force
```

This will publish:

- **Config file:** `config/larah5p.php`
- **Migrations:** `database/migrations`
- **Views:** `resources/views/vendor/larah5p`
- **Language files:** `resources/lang/vendor/larah5p`
- **Assets:** `public/vendor/larah5p`

### 3. Run migrations

[](#3-run-migrations)

```
php artisan migrate
```

### 4. Generate an application key

[](#4-generate-an-application-key)

If you haven't generated an application key yet, run:

```
php artisan key:generate
```

### 5. Clear and cache configurations

[](#5-clear-and-cache-configurations)

```
php artisan config:clear
php artisan cache:clear
php artisan route:clear
php artisan optimize:clear
```

---

🔧 Configuration
---------------

[](#-configuration)

LaraH5P provides a configuration file that allows you to **customize the package settings**.

You can find it at:

```
config/larah5p.php
```

### Key Settings:

[](#key-settings)

- Default layout
- Storage paths
- Debugging options
- User permissions

---

🌍 Routes
--------

[](#-routes)

LaraH5P registers various routes for managing H5P content and libraries. To list them, run:

```
php artisan route:list
```

### Main Routes:

[](#main-routes)

RouteControllerDescription`/h5p``H5pController`Manage H5P content`/library``LibraryController`Manage H5P libraries`/ajax``AjaxController`Handle AJAX requests`/h5p/embed/{id}``EmbedController`Embed H5P content`/h5p/export/{id}``DownloadController`Export H5P content---

🎨 Optional Packages
-------------------

[](#-optional-packages)

LaraH5P supports additional Laravel packages for **extended functionality**.

### 1. **Spatie Laravel Permissions**

[](#1-spatie-laravel-permissions)

If you need **role-based permissions**, install Spatie's **Laravel Permission** package:

```
composer require spatie/laravel-permission
```

Then, publish and run migrations:

```
php artisan vendor:publish --provider="Spatie\Permission\PermissionServiceProvider"
php artisan migrate
```

### 2. **Filament Admin Panel**

[](#2-filament-admin-panel)

If you want to use **Filament** for managing H5P content from an admin panel, install:

```
composer require filament/filament
```

Then, publish Filament assets:

```
php artisan vendor:publish --tag=filament-config
```

---

🛠 Customization
---------------

[](#-customization)

You can override package views by modifying the files in:

```
resources/views/vendor/larah5p
```

If you want to extend functionality, create your own controllers:

```
php artisan make:controller MyCustomH5PController
```

---

🚀 Contributing
--------------

[](#-contributing)

Contributions are **welcome**! If you find any issues or have suggestions, feel free to **open a pull request** or create an **issue**.

---

📄 License
---------

[](#-license)

This package is **open-source** and licensed under the **MIT License**.

---

📧 Contact
---------

[](#-contact)

For questions or support, contact:

📧 **Email:**

---

🎯 Now you're ready to use LaraH5P in your Laravel project! 🚀
------------------------------------------------------------

[](#-now-youre-ready-to-use-larah5p-in-your-laravel-project-)

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance56

Moderate activity, may be stable

Popularity10

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 53.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

446d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/34625a019a386381fcf30b0fcb1a0ea77a2f712b7e49667d5d34e20205c509b0?d=identicon)[MusabAlzoubi](/maintainers/MusabAlzoubi)

---

Top Contributors

[![madferro](https://avatars.githubusercontent.com/u/992848?v=4)](https://github.com/madferro "madferro (7 commits)")[![MusabAlzoubi](https://avatars.githubusercontent.com/u/126392782?v=4)](https://github.com/MusabAlzoubi "MusabAlzoubi (6 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/larah5p-larah5p/health.svg)

```
[![Health](https://phpackages.com/badges/larah5p-larah5p/health.svg)](https://phpackages.com/packages/larah5p-larah5p)
```

###  Alternatives

[grumpydictator/firefly-iii

Firefly III: a personal finances manager.

22.8k69.3k](/packages/grumpydictator-firefly-iii)[gehrisandro/tailwind-merge-laravel

TailwindMerge for Laravel merges multiple Tailwind CSS classes by automatically resolving conflicts between them

341682.2k18](/packages/gehrisandro-tailwind-merge-laravel)[backpack/basset

Dead-simple way to load CSS or JS assets only once per page, when using Laravel 10+.

202832.4k6](/packages/backpack-basset)[firefly-iii/data-importer

Firefly III Data Import Tool.

7545.8k](/packages/firefly-iii-data-importer)[blair2004/nexopos

The Free Modern Point Of Sale System build with Laravel, TailwindCSS and Vue.js.

1.2k2.3k](/packages/blair2004-nexopos)[nickurt/laravel-akismet

Akismet for Laravel 11.x/12.x/13.x

97139.6k2](/packages/nickurt-laravel-akismet)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
