https://github.com/vormkracht10/laravel-minify-html-middleware
https://github.com/vormkracht10/laravel-minify-html-middleware
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/vormkracht10/laravel-minify-html-middleware
- Owner: vormkracht10
- License: mit
- Created: 2024-05-10T20:26:32.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-10T21:33:17.000Z (about 1 year ago)
- Last Synced: 2024-11-12T03:15:47.549Z (7 months ago)
- Language: PHP
- Size: 28.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
# Laravel HTML Minify Middleware
[](https://packagist.org/packages/vormkracht10/laravel-minify-html-middleware)
[](https://github.com/vormkracht10/laravel-minify-html-middleware/actions?query=workflow%3Arun-tests+branch%3Amain)
[](https://github.com/vormkracht10/laravel-minify-html-middleware/actions?query=workflow%3A"Fix+PHP+code+style+issues"+branch%3Amain)
[](https://packagist.org/packages/vormkracht10/laravel-minify-html-middleware)This package minifies HTML responses safely within Laravel using middleware.
## Installation
You can install the package via composer:
```bash
composer require vormkracht10/laravel-minify-html-middleware
```You can publish and run the migrations with:
```bash
php artisan vendor:publish --tag="laravel-minify-html-middleware-migrations"
php artisan migrate
```You can publish the config file with:
```bash
php artisan vendor:publish --tag="laravel-minify-html-middleware-config"
```This is the contents of the published config file:
```php
return [
];
```Optionally, you can publish the views using
```bash
php artisan vendor:publish --tag="laravel-minify-html-middleware-views"
```## Usage
```php
$MinifyHtml = new Vormkracht10\MinifyHtml();
echo $MinifyHtml->echoPhrase('Hello, Vormkracht10!');
```## Testing
```bash
composer test
```## Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
## Security Vulnerabilities
Please review [our security policy](../../security/policy) on how to report security vulnerabilities.
## Credits
- [Mark van Eijk](https://github.com/markvaneijk)
- [All Contributors](../../contributors)## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.