PHPackages                             rizqimilanisti/laravelminifier - 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. rizqimilanisti/laravelminifier

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

rizqimilanisti/laravelminifier
==============================

Html Minifier adalah paket simpel untuk minify output Html, Css style, dan Javascript sebelum dirender ke browser untuk aplikasi Laravel anda.

v1.0.0(2y ago)02.6kMITPHPPHP ^8.1

Since Jul 6Pushed 2y ago2 watchersCompare

[ Source](https://github.com/rizqi-milanisti/Laravel10HtmlMinifier)[ Packagist](https://packagist.org/packages/rizqimilanisti/laravelminifier)[ RSS](/packages/rizqimilanisti-laravelminifier/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Laravel 10 Html Minifier
========================

[](#laravel-10-html-minifier)

Adalah Paket simpel untuk minify HTML, Css Style, dan Javascript sebelum dirender ke browser untuk aplikasi Laravel 10 anda.

Alat ini hanya bekerja jika output yang diberikan adalah bentuk struktur html yang valid meliputi tag html, head dan body. contohnya

- Html yang valid (akan diproses dan diminify)

```

```

- Html yang tidak valid (tidak diminify)

```

atau

```

Installasi
----------

[](#installasi)

> **Membutuhkan:**

- **[PHP 8.1+](https://php.net/releases/)**
- **[Laravel 10.0+](https://github.com/laravel/laravel)**

Tahap pertama anda bisa menginstall paket ini dengan [Composer 2x](https://getcomposer.org/download/)
-----------------------------------------------------------------------------------------------------

[](#tahap-pertama-anda-bisa-menginstall-paket-ini-dengan-composer-2x)

```
composer require rizqimilanisti/laravelminifier
```

Publish konfigurasi file
------------------------

[](#publish-konfigurasi-file)

```
php artisan vendor:publish --provider="rizqimilanisti\LaravelMinifier\MinifierServiceProvider"
```

Jangan lupa untuk mendaftarkan ke Global Middleware
---------------------------------------------------

[](#jangan-lupa-untuk-mendaftarkan-ke-global-middleware)

[\\rizqimilanisti\\LaravelMinifier\\Middleware\\MinifyHtml::class](src/Middleware/MinifyHtml.php) dan Middleware lainnya harus didaftarkan ke kernel jika diperlukan, contoh :

```
// file : app/Http/Karnel.php

protected $middleware = [
    ....
    \rizqimilanisti\LaravelMinifier\Middleware\MinifyHtml::class,         // middleware untuk minify html
    \rizqimilanisti\LaravelMinifier\Middleware\MinifyCss::class,         // middleware untuk minify css style
    \rizqimilanisti\LaravelMinifier\Middleware\MinifyJavascript::class, // middleware untuk minify kode javascript
];
```

Lisensi
-------

[](#lisensi)

[MIT](LICENSE) (MIT)

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

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

1093d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3f03bcb201e6cca6e1c3a42dab890954fa0556f108b4ad2d4fee6c4645dfc5cb?d=identicon)[rmilanisti](/maintainers/rmilanisti)

---

Top Contributors

[![MRizqi-1083](https://avatars.githubusercontent.com/u/848361?v=4)](https://github.com/MRizqi-1083 "MRizqi-1083 (1 commits)")

---

Tags

laravelminifyHTML minifylaravel html minifier

### Embed Badge

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

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M345](/packages/psalm-plugin-laravel)[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.6k29.9M146](/packages/laravel-cashier)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k15.1M131](/packages/laravel-pulse)[moonshine/moonshine

Laravel administration panel

1.3k253.1k81](/packages/moonshine-moonshine)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45444.2k1](/packages/pressbooks-pressbooks)[api-platform/laravel

API Platform support for Laravel

58171.5k14](/packages/api-platform-laravel)

PHPackages © 2026

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