PHPackages                             tungpham42/laravel-blade-minify-directive - 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. tungpham42/laravel-blade-minify-directive

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

tungpham42/laravel-blade-minify-directive
=========================================

@minify directive to partially compress HTML.

v0.1.3(4y ago)16MITPHPPHP ^7.2 || ^8.0

Since Dec 12Pushed 4y ago1 watchersCompare

[ Source](https://github.com/tungpham42/laravel-blade-minify-directive)[ Packagist](https://packagist.org/packages/tungpham42/laravel-blade-minify-directive)[ Docs](https://github.com/tungpham42/laravel-blade-minify-directive)[ RSS](/packages/tungpham42-laravel-blade-minify-directive/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (1)Dependencies (4)Versions (5)Used By (0)

Laravel Blade Minify Directive
==============================

[](#laravel-blade-minify-directive)

 `@minify` directive to partially compress HTML.

 [![Test Status](https://camo.githubusercontent.com/7e86f0cda960cc28503563d9cca6a1fbcb3218721cc1cf50d6c2998886963851/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f79616d6164617368792f6c61726176656c2d626c6164652d6d696e6966792d6469726563746976652f54657374733f6c6162656c3d7465737473266c6f676f3d676974687562)](https://github.com/yamadashy/laravel-blade-minify-directive/actions) [![Latest Version](https://camo.githubusercontent.com/b0e55e035a0d8b44afb1b3e86997673c89f21ff10bc4c3c5f4e4301c6b45252a/68747470733a2f2f706f7365722e707567782e6f72672f79616d6164617368792f6c61726176656c2d626c6164652d6d696e6966792d6469726563746976652f762f737461626c652e737667)](https://packagist.org/packages/yamadashy/laravel-blade-minify-directive) [![License](https://camo.githubusercontent.com/7f656c8bc0f52ac7570d5519cc6446c7ce1ca137885d227ddccb13b0cbedede1/68747470733a2f2f706f7365722e707567782e6f72672f79616d6164617368792f6c61726176656c2d626c6164652d6d696e6966792d6469726563746976652f6c6963656e73652e737667)](https://github.com/yamadashy/laravel-blade-minify-directive/blob/master/LICENSE.md)

Motivation
==========

[](#motivation)

There are various minify libraries available, all of which minify the entire page. However, minifying the whole page may break the design, making it difficult to implement in a large project.

If you want to apply it to a part of the page instead of the whole page, this library is useful.

Installation
============

[](#installation)

You can install the package via composer:

```
composer require tungpham42/laravel-blade-minify-directive

```

Usage
=====

[](#usage)

Enclose the part you want to minify with `@minify` and `@endminify`.

```

        not minified

@minify

        minified

@endminify

    not minified

```

Converted like this.

```

        not minified

minified

    not minified

```

License
=======

[](#license)

Distributed under the MIT License. See `LICENSE.txt` for more information.

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 89.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

Every ~64 days

Total

4

Last Release

1472d ago

PHP version history (2 changes)v0.1.0PHP ^7.1.3|^8.0

v0.1.1PHP ^7.2 || ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3462233?v=4)[Tung Pham](/maintainers/tungpham42)[@tungpham42](https://github.com/tungpham42)

---

Top Contributors

[![yamadashy](https://avatars.githubusercontent.com/u/5019072?v=4)](https://github.com/yamadashy "yamadashy (44 commits)")[![tungpham42](https://avatars.githubusercontent.com/u/3462233?v=4)](https://github.com/tungpham42 "tungpham42 (5 commits)")

---

Tags

laravelminifybladedirective

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/tungpham42-laravel-blade-minify-directive/health.svg)

```
[![Health](https://phpackages.com/badges/tungpham42-laravel-blade-minify-directive/health.svg)](https://phpackages.com/packages/tungpham42-laravel-blade-minify-directive)
```

###  Alternatives

[fitztrev/laravel-html-minify

Minifies the HTML output of Laravel 4 applications

427214.1k](/packages/fitztrev-laravel-html-minify)[yocmen/html-minify

Minifies the HTML output of Laravel 5 applications (Originally from https://github.com/fitztrev/laravel-html-minify)

1713.7k](/packages/yocmen-html-minify)[djl997/blade-shortcuts

Blade Shortcuts is a library of handy Laravel Blade Directives.

411.0k3](/packages/djl997-blade-shortcuts)[ken/blade-minify

Laravel Blade Minify

129.3k1](/packages/ken-blade-minify)

PHPackages © 2026

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