PHPackages                             php-junior/laravel-html-encrypt - 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. php-junior/laravel-html-encrypt

ActiveLibrary

php-junior/laravel-html-encrypt
===============================

Simple Html Encrypt for Laravel

v1.3.2(8y ago)745.2k↓100%24[4 issues](https://github.com/PHPJunior/laravel-html-encrypt/issues)MITPHPPHP &gt;=5.6.4

Since Sep 21Pushed 8y ago5 watchersCompare

[ Source](https://github.com/PHPJunior/laravel-html-encrypt)[ Packagist](https://packagist.org/packages/php-junior/laravel-html-encrypt)[ RSS](/packages/php-junior-laravel-html-encrypt/feed)WikiDiscussions master Synced today

READMEChangelog (7)Dependencies (4)Versions (8)Used By (0)

Laravel Html Encrypt
====================

[](#laravel-html-encrypt)

[![Latest Stable Version](https://camo.githubusercontent.com/9d85f40e425fa0f09c792a31fe0ddd1c43f9d30c9b5b5824755010bfeb140292/68747470733a2f2f706f7365722e707567782e6f72672f7068702d6a756e696f722f6c61726176656c2d68746d6c2d656e63727970742f762f737461626c65)](https://packagist.org/packages/php-junior/laravel-html-encrypt)[![Total Downloads](https://camo.githubusercontent.com/1ced4a0042fb2b65d20694fa4c4e0a3230582ff8603ad1f74ae2257147d55305/68747470733a2f2f706f7365722e707567782e6f72672f7068702d6a756e696f722f6c61726176656c2d68746d6c2d656e63727970742f646f776e6c6f616473)](https://packagist.org/packages/php-junior/laravel-html-encrypt)

Installation
------------

[](#installation)

You can install the package via composer:

```
 composer require php-junior/laravel-html-encrypt
```

Laravel 5.5 uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.

If you don't use auto-discovery, add the ServiceProvider to the providers array in config/app.php

```
PhpJunior\LaravelHtmlEncrypt\LaravelHtmlEncryptServiceProvider::class,
```

And

```
php artisan vendor:publish --provider="PhpJunior\LaravelHtmlEncrypt\LaravelHtmlEncryptServiceProvider"
```

This is the contents of the published config file:

```
return [
    'encrypt' => env('HTML_ENCRYPT', true),
    'disable_right_click'       => true,
    'disable_ctrl_and_F12_key'  => true,
];
```

HTML Encryption?
----------------

[](#html-encryption)

One major reason for the success of the World Wide Web is undeniably the openness of HTML. HTML files are basically plain text documents, meaning software applications and human users can easily create, read, and update web pages. The open nature of HTML not only allows users to edit websites with nothing more than a simple text editor, it also enables search engines to spider the web and forms the basis for a wide range of web-related applications for any platform you can imagine.

However, as a web designer or website owner you may encounter situations in which you feel a need for protecting your HTML, CSS or JavaScript code from being viewed and reused .

How It Works
------------

[](#how-it-works)

HTML encryption/decryption techniques are based on JavaScript. The encrypted HTML code, which is saved inside the HTML document, is decrypted at runtime through JavaScript and written directly into the browser window using the document.write(…) function. This ensures that any JavaScript-enabled web browser can load and display the pages without additional components or plugins.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Support on Beerpay
------------------

[](#support-on-beerpay)

Hey dude! Help me out for a couple of 🍻!

[![Beerpay](https://camo.githubusercontent.com/cfa4a0d9cd9ad7ac054ecd0399e9a4ce2e3eea51987ff93b6c5147db4dd9b9ef/68747470733a2f2f626565727061792e696f2f5048504a756e696f722f6c61726176656c2d68746d6c2d656e63727970742f62616467652e7376673f7374796c653d626565722d737175617265)](https://beerpay.io/PHPJunior/laravel-html-encrypt) [![Beerpay](https://camo.githubusercontent.com/5925214ceb3f5a0c8333516b16efc4d740fb75b203e3faf59b0ee3aaef629dda/68747470733a2f2f626565727061792e696f2f5048504a756e696f722f6c61726176656c2d68746d6c2d656e63727970742f6d616b652d776973682e7376673f7374796c653d666c61742d737175617265)](https://beerpay.io/PHPJunior/laravel-html-encrypt?focus=wish)

###  Health Score

37

—

LowBetter than 84% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 90% 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

Every ~9 days

Total

7

Last Release

3050d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e2695272c87c7144c984ddf468d380477dc578b617e7da5502eb4e7eff1f6087?d=identicon)[Nyi Nyi Lwin](/maintainers/Nyi%20Nyi%20Lwin)

---

Top Contributors

[![PHPJunior](https://avatars.githubusercontent.com/u/13845077?v=4)](https://github.com/PHPJunior "PHPJunior (18 commits)")[![smokills](https://avatars.githubusercontent.com/u/7535708?v=4)](https://github.com/smokills "smokills (2 commits)")

---

Tags

laravelhtmlencrypt

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/php-junior-laravel-html-encrypt/health.svg)

```
[![Health](https://phpackages.com/badges/php-junior-laravel-html-encrypt/health.svg)](https://phpackages.com/packages/php-junior-laravel-html-encrypt)
```

###  Alternatives

[htmlmin/htmlmin

HTMLMin Is A Simple HTML Minifier For Laravel 5

1.0k1.9M9](/packages/htmlmin-htmlmin)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5245.4M14](/packages/stevebauman-purify)[cybercog/laravel-optimus

An Optimus bridge for Laravel. Id obfuscation based on Knuth's multiplicative hashing method.

192560.3k](/packages/cybercog-laravel-optimus)[delatbabel/elocryptfive

Automatically encrypt and decrypt Eloquent attributes with ease.

8492.9k](/packages/delatbabel-elocryptfive)[maize-tech/laravel-encryptable

Laravel Encryptable

13324.3k](/packages/maize-tech-laravel-encryptable)[dolphiq/laravel-aescrypt

AES encrypt and decrypt Eloquent attributes inspired by elocryptfive

171.7k](/packages/dolphiq-laravel-aescrypt)

PHPackages © 2026

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