Download the PHP package ivannofick/laravelminifyobfuscate without Composer

On this page you can find all versions of the php package ivannofick/laravelminifyobfuscate. 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?

Informations about the package laravelminifyobfuscate

laravelminifyobfuscate

License Latest Stable Version PHP Version Require Total Downloads

Obfuscate your Blade templates in Laravel by encrypting HTML, CSS, and JS into one HTML file

Laravel Minify Obfuscate ReactJs

Introduction

The "Laravel Minify Obfuscate" package allows you to enhance the security of your Laravel Blade templates by obfuscating and encrypting the HTML, CSS, and JavaScript code into a single HTML file. This makes it harder for potential attackers to access and understand your frontend code. The package achieves this by providing middleware that automatically processes the Blade templates and minifies/obfuscates the output.

This README.md file will guide you through the process of setting up and using the package in your Laravel application.

Installation

  1. Install the package via Composer by running the following command:

  2. After the package is installed, publish the package configuration file and assets using the following Artisan command:

Middleware Setup

To enable the minification and obfuscation for your Blade templates, you need to add the provided middleware to your application's kernel. Follow these steps:

  1. Open the app/Http/Kernel.php file in your Laravel project.
  2. Locate the $middleware array and add the following middleware classes:

The final $middleware array should look something like this:

  1. Save the changes to the Kernel.php file.

    Conditional Obfuscation

    The "Laravel Minify Obfuscate" package also provides a feature called "laravel_obfuscate_conditional," which allows you to enable or disable the obfuscation based on a configuration setting. This can be useful when you want to control whether obfuscation should be active in certain environments or scenarios.

  2. To use the laravel_obfuscate_conditional feature, follow these steps:
  3. Open the config/minifyobfuscate.php configuration file. Find the laravel_obfuscate_conditional setting and set it to either true or false as per your requirement:

Setting it to true will activate the obfuscation, while setting it to false will deactivate it.

  1. Save the changes to the configuration file.

Usage

With the package installed, middleware set up, and conditional obfuscation configured, your Blade templates' obfuscation will be based on the value of the LARAVEL_OBFUSCATE_SECURE_KEY setting. If it is set to true, obfuscation will be active, and if it is set to false, obfuscation will be disabled.

Please note that this conditional obfuscation setting adds flexibility, allowing you to enable or disable obfuscation as needed for different environments or scenarios.

Conclusion Congratulations! You have successfully set up "Laravel Minify Obfuscate" to protect your Blade templates in Laravel. Your frontend code is now minified and obfuscated, improving the security of your application.

If you encounter any issues or want to contribute to the package, please check out the GitHub repository.

Happy coding!


All versions of laravelminifyobfuscate with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4.5 || ^8.0
illuminate/support Version ^7.0 || ^8.0 || ^9.0 || ^10.0
illuminate/http Version ^7.0 || ^8.0 || ^9.0 || ^10.0
illuminate/view Version ^7.0 || ^8.0 || ^9.0 || ^10.0
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 ivannofick/laravelminifyobfuscate contains the following files

Loading the files please wait ....