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

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

yamadashy/laravel-blade-minify-directive
========================================

@minify directive to partially compress HTML.

v1.0.0(5mo ago)61.2k—0%2MITPHPPHP ^8.2CI passing

Since Dec 12Pushed 5mo ago2 watchersCompare

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

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

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

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

 `@minify` directive to partially compress HTML.

 [![Downloads](https://camo.githubusercontent.com/157e39cb24d3b4940c83811453c72b414edeb905933c7a5cc96fcf6bcd176879/68747470733a2f2f736869656c64732e696f2f7061636b61676973742f64742f79616d6164617368792f6c61726176656c2d626c6164652d6d696e6966792d646972656374697665)](https://packagist.org/packages/yamadashy/laravel-blade-minify-directive) [![Test Status](https://camo.githubusercontent.com/dcdebb6ad0451f244d2da06a1b943b8cf3622a09cb5826ccafb89513bae41c32/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f79616d6164617368792f6c61726176656c2d626c6164652d6d696e6966792d6469726563746976652f74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473266c6f676f3d676974687562)](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 yamadashy/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

47

—

FairBetter than 94% of packages

Maintenance72

Regular maintenance activity

Popularity24

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 98.5% 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 ~362 days

Total

5

Last Release

163d ago

Major Versions

v0.1.3 → v1.0.02025-12-01

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

v0.1.1PHP ^7.2 || ^8.0

v1.0.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/aacc008bb6778a751e864cd6ab7e7a55374d90d60ffea6e58b2148d8db807a1c?d=identicon)[yamadashy](/maintainers/yamadashy)

---

Top Contributors

[![yamadashy](https://avatars.githubusercontent.com/u/5019072?v=4)](https://github.com/yamadashy "yamadashy (67 commits)")[![it-can](https://avatars.githubusercontent.com/u/644288?v=4)](https://github.com/it-can "it-can (1 commits)")

---

Tags

bladeblade-directivesdirectiveslaravellaravel-packagephplaravelminifybladedirective

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[spatie/laravel-blade-javascript

A Blade directive to export variables to JavaScript

638855.8k9](/packages/spatie-laravel-blade-javascript)[fitztrev/laravel-html-minify

Minifies the HTML output of Laravel 4 applications

414211.4k](/packages/fitztrev-laravel-html-minify)[angus-mcritchie/blade-boost-directive

Lightning-Fast Blade Components with `@boost` Directive

3910.0k](/packages/angus-mcritchie-blade-boost-directive)[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)[ken/blade-minify

Laravel Blade Minify

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

PHPackages © 2026

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