PHPackages                             mindtwo/laravel-blade-spaceless - 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. mindtwo/laravel-blade-spaceless

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

mindtwo/laravel-blade-spaceless
===============================

Blade @spaceless directive that strips whitespace between HTML tags at render time.

1.5(1mo ago)235.9k↓44.4%2MITPHPPHP ^8.2CI passing

Since Oct 23Pushed 1mo ago5 watchersCompare

[ Source](https://github.com/mindtwo/laravel-blade-spaceless)[ Packagist](https://packagist.org/packages/mindtwo/laravel-blade-spaceless)[ Docs](https://github.com/mindtwo/laravel-blade-spaceless)[ RSS](/packages/mindtwo-laravel-blade-spaceless/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (7)Versions (10)Used By (0)

Spaceless Larvel Blade Directive
================================

[](#spaceless-larvel-blade-directive)

[![Latest Stable Version](https://camo.githubusercontent.com/e61f3980307e403b1888142c5e2bc4952f4f27c546370019c93f97c84bd1f2cb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d696e6474776f2f6c61726176656c2d626c6164652d73706163656c6573733f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mindtwo/laravel-blade-spaceless)[![Total Downloads](https://camo.githubusercontent.com/750fb6f00544c373bfd65c84b001ce1ab5bbf94eee54ef17070fa99f201b8f20/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d696e6474776f2f6c61726176656c2d626c6164652d73706163656c6573733f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mindtwo/laravel-blade-spaceless)[![MIT Software License](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

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

[](#installation)

You can install the package via composer:

```
composer require mindtwo/laravel-blade-spaceless
```

The package will register itself automatically.

Optionally you can publish the package configuration using:

```
php artisan vendor:publish --provider=mindtwo\\Spaceless\\SpacelessServiceProvider
```

How to use?
-----------

[](#how-to-use)

The new blade directives `@spaceless` and `@endspaceless` are now available in your blade views:

```
@spaceless
>

@endspaceless
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [mindtwo GmbH](https://github.com/mindtwo)
- [All Other Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

58

—

FairBetter than 98% of packages

Maintenance91

Actively maintained with recent releases

Popularity32

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity80

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 76.2% 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 ~346 days

Recently: every ~175 days

Total

9

Last Release

44d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4cc86fe6179314d204b14d1c81eb09a87ef84b0bcf2360dcd981171d1346c077?d=identicon)[mindtwo](/maintainers/mindtwo)

---

Top Contributors

[![jonasemde](https://avatars.githubusercontent.com/u/5083193?v=4)](https://github.com/jonasemde "jonasemde (16 commits)")[![giggsey](https://avatars.githubusercontent.com/u/305730?v=4)](https://github.com/giggsey "giggsey (5 commits)")

---

Tags

laravelhtmlbladespacelessdirectivewhitespace

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/mindtwo-laravel-blade-spaceless/health.svg)

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

###  Alternatives

[moonshine/moonshine

Laravel administration panel

1.3k253.1k81](/packages/moonshine-moonshine)[hasinhayder/tyro-dashboard

Tyro Dashboard - Beautiful admin dashboard for managing Tyro roles, privileges, users, and settings

5443.8k](/packages/hasinhayder-tyro-dashboard)[technikermathe/blade-lucide-icons

A package to easily make use of Lucide icons in your Laravel Blade views.

18421.4k11](/packages/technikermathe-blade-lucide-icons)[hasinhayder/tyro-login

Tyro Login - Beautiful, customizable authentication views for Laravel 12 &amp; 13

2464.9k6](/packages/hasinhayder-tyro-login)[ublabs/blade-simple-icons

A package to easily make use of Simple Icons in your Laravel Blade views.

1963.4k](/packages/ublabs-blade-simple-icons)[mati365/ckeditor5-livewire

CKEditor 5 integration for Laravel Livewire

447.9k](/packages/mati365-ckeditor5-livewire)

PHPackages © 2026

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