Download the PHP package rzl-zone/blade-minify without Composer

On this page you can find all versions of the php package rzl-zone/blade-minify. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?
rzl-zone/blade-minify
Rate from 1 - 5
Rated 4.00 based on 1 reviews

Informations about the package blade-minify

RzlZone Logo

Blade Minify

Blazing-Fast Output Minifier for Laravel Blade Views.
Blade Minify automatically minifies your rendered HTML output, stripping unnecessary whitespaces and comments to ensure smaller page sizes and optimal load times.
Built with ❀️ by @rzl-zone.

Latest Version on Packagist Total Downloads on Packagist PHPStan Level PHP Version Laravel Version Illuminate Support GitHub Repo on GitHub


πŸ“š Table of Contents


πŸ›  Requirements

Laravel Framework & illuminate/support PHP
^10.x | ^11.x | ^12.x | ^13.x ^8.1

βš™οΈ Installation

You can install the package via composer:


πŸš€ Setup

Publish config

Add middleware to web middleware group within app/Http/Kernel.php


πŸ”₯ Usage

Enable in .env

Disable in .env

Minify only in production

Minify at all mode APP Env (default)

Ignore specific route names from minifying render output


ℹ️ Programmatic Manual Operations


ℹ️ Inline Blade Directive Isolation

To prevent specific code segments or third-party blocks from being targeted by the regex compression loops, wrap your code inside the dedicated wrapper directive:


⚑️ Advanced Integration with Vite & React Fast Refresh

No special layout modifications or fragile workarounds are required.
The package natively tracks, isolates, and guards core asset bundler structuresβ€”such as React Fast Refresh preamblesβ€”ensuring strict security tokens and javascript scopes are preserved post-minification.


πŸ“¦ Custom Vite Architecture Mapping

Publishing the configuration creates the custom-vite block inside config/rzlzone-blade-minify.php. This gives you full control over customized asset folders, CSP nonces, and hot-reload file parameters:


βš™οΈ Environment Tailoring Examples (.env)

You can easily override your asset pipeline behavior dynamically without touching your production config file:


πŸ›  How to consume these in vite.config.js

To make your frontend build tool automatically adapt to the configuration above, load the environment variables securely and bind them to your Vite options:


πŸ’» Blade Implementation Usage

Standard framework asset directives compile seamlessly.
The core minifier flags these tags with internal structural attributes (rzl-zone--bm) to ensure they remain safe and functional:

⚠️ Configuration Sync Warning: If you choose to modify build_dir or manifest_name within your environment configuration, ensure that your root vite.config.js script properties (build.outDir, build.manifest) are mirrored exactly to prevent absolute path breakdown cycles during deployments.


πŸ“ Changelog

Please see CHANGELOG for more information what has changed recently.


🀝 Contributing

Please see CONTRIBUTING for details.


❀️ Become a Sponsor

Become a sponsor to Rzl App.



πŸ›‘ Security

Please report issues to [email protected].


πŸ™Œ Credits


πŸ“œ License

The MIT License (MIT). Please see License File for more information.


Reference URL
πŸ“ Laravel Docs https://laravel.com/docs
πŸ— Illuminate\Support https://github.com/laravel/framework/tree/13.x/src/Illuminate/Support
🐘 PHP Official https://www.php.net

βœ… Enjoy rzl-zone/blade-minify?
Leave a ⭐ on GitHub β€” it keeps this project thriving!


✨ From rzl-zone β€” where code meets passion.


All versions of blade-minify with dependencies

PHP Build Version
Package Version
Requires illuminate/support Version ^10.0|^11.0|^12.0|^13.0
laravel/framework Version ^10.0|^11.0|^12.0|^13.0
php Version ^8.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package rzl-zone/blade-minify contains the following files

Loading the files please wait ...