PHPackages                             despark/html-template-curator - 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. [Templating &amp; Views](/categories/templating)
4. /
5. despark/html-template-curator

ActivePlugin[Templating &amp; Views](/categories/templating)

despark/html-template-curator
=============================

Laravel 5.1 package, which enables you to manage complicated HTML templates, preserving the design integrity.

v3.0(10y ago)11351[1 PRs](https://github.com/despark/html-template-curator/pulls)MITJavaScriptPHP &gt;=5.5.9

Since Aug 7Pushed 10y ago2 watchersCompare

[ Source](https://github.com/despark/html-template-curator)[ Packagist](https://packagist.org/packages/despark/html-template-curator)[ RSS](/packages/despark-html-template-curator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (7)Versions (13)Used By (0)

Laravel HTML Template Curator
=============================

[](#laravel-html-template-curator)

Laravel 5 package, which enables you to manage complicated HTML templates, preserving the design integrity. (if you want to use this plugin with Laravel 4 please require the *v1.0.2* )

The purpose of this package is to help you implement rich text editing for complicated HTML views, but remove the risk of breaking the beautiful designs, which your talanted designers produced. The idea is that when coding your HTML templates you add the `eg-editable` class to all the elements, which you want to enable for editing through the HTML Template Curator and the curator automatically injects inline editors for them only when initialised.

Genting Started
---------------

[](#genting-started)

1. Add the following dependency to your composer.json's require section:

    ```
    "despark/html-template-curator": "2.*"

    ```

    In order to use the plugin you need to set composer's `minimum-stability` to **beta**, because we are using *cviebrock/image-validator* in beta release, since stable is still not provided for Laravel 5.
2. Run composer update
3. Add the HTML template curator's service provider in \* config/app.php\*

    ```
    'Despark\HtmlTemplateCurator\HtmlTemplateCuratorServiceProvider::class',
    ```
4. Run `php artisan vendor:publish --provider="Despark\HtmlTemplateCurator\HtmlTemplateCuratorServiceProvider" --tag="views"` to publish views
5. Run `php artisan vendor:publish --provider="Despark\HtmlTemplateCurator\HtmlTemplateCuratorServiceProvider" --tag="config"` to publish the configuration files
6. Run `php artisan vendor:publish --provider="Despark\HtmlTemplateCurator\HtmlTemplateCuratorServiceProvider" --tag="public"` to publish the assets
7. Put your amazing HTML templates (which include the required `eg-editable` on all the editable sections) in a new folder called *templates* in your public directory. (In the */public/packages/despark/html-template-curator/templates/* folder you will find some examples of HTML templates)
8. In the views where you want to enable the Template Curator functionality you need to have atleast the following two elements.

    A `` field which will load the available templates, so that the user can select the layout, which to edit. **E.g.**

    ```
    {{ Form::select('template', [], null, ['class' => 'form-control js-artice-template']) }}
    ```

    A `` element in which the raw and up to date HTML of the template will be loaded. (keep in mind that this element will be automatically hidden by the script) **E.g.**

    ```
    {{ Form::textarea('content', null, ['id' => 'content']) }}
    ```
9. In the view which will hold the editor after the definition of the elements above add the following code:

    ```
    @include('packages.despark.html-template-curator.partials.modal_editor_definition') {{-- Includes the modal popup --}}
    @include('packages.despark.html-template-curator.partials.script') {{-- The needed JavaScript files for the HTML Template Curator --}}

    	$(function () {
    		$('.js-artice-template').templateEditor('#content');
    		/* In addition you can define the currently selected template with its value in select box as second parameter - usefull when editing already saved page. And custom selector for the container, which will contain the visual presentation of the template as a 3rd parameter
    		E.g. $('.js-artice-template').templateEditor('#content', 'book', '#my_selector');*/
    	});

    ```

You can uncoment `{{--  --}}` if you don't already have jQuery required somewhre in your code. 10. Add the available templates in the following config: \* config/html-template-curator.php\* under the `templates` key of the config array. As key for each element of the array put the name of the folder in which the template is stored and as a value put the display name you want to appear in the select field. 11. Make sure you have set the proper app URL in the \* config/app.php\* file 12. After you are done navigate the page you just created and start editing your templates.

In the package views you will find a folder called **examples**, which contains sample implementations of the editor.

*P.S.: Keep in mind that this is still work in progress, so there might some small issues for resolving, but I count on you and your great pull-requests to make it a great plugin*

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity65

Established project with proven stability

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

Every ~25 days

Recently: every ~55 days

Total

12

Last Release

3656d ago

Major Versions

v1.0.2 → v2.02015-09-29

v2.x-dev → v3.02016-05-14

PHP version history (2 changes)v1.0.1PHP &gt;=5.4.0

v2.0PHP &gt;=5.5.9

### Community

Maintainers

![](https://www.gravatar.com/avatar/05e6ee0da483b33992682ff07ef1aa60c7f75f6c916975442f398f5e0b239792?d=identicon)[sdipchikov](/maintainers/sdipchikov)

---

Tags

laraveltexteditorwysiwygdesparkrich

### Embed Badge

![Health badge](/badges/despark-html-template-curator/health.svg)

```
[![Health](https://phpackages.com/badges/despark-html-template-curator/health.svg)](https://phpackages.com/packages/despark-html-template-curator)
```

###  Alternatives

[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[froala/wysiwyg-editor-php-sdk

PHP SDK for Froala WYSIWYG Editor

431.5M](/packages/froala-wysiwyg-editor-php-sdk)[techguy/laravel-ckeditor

JavaScript WYSIWYG web text editor (for laravel).

1113.5k](/packages/techguy-laravel-ckeditor)[mati365/ckeditor5-livewire

CKEditor 5 integration for Laravel Livewire

413.9k](/packages/mati365-ckeditor5-livewire)[jodit/yii2-jodit

Jodit - awesome WYSIWYG Editor like widget for Yii2

1621.5k](/packages/jodit-yii2-jodit)[ktquez/laravel-tinymce

TinyMCE editor for Laravel and Lumen Framework

2525.4k](/packages/ktquez-laravel-tinymce)

PHPackages © 2026

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