Download the PHP package honeycrisp/laravel-obfuscator without Composer

On this page you can find all versions of the php package honeycrisp/laravel-obfuscator. 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 laravel-obfuscator

Honeycrisp Laravel Obfuscator Package

A comprehensive Laravel package for PHP code obfuscation with backup and restore functionality. This package provides unique command structure with enhanced features and better integration for Laravel projects.

Features

Installation

Via Composer

Manual Installation

  1. Clone this repository to your Laravel project
  2. Add the service provider to config/app.php:

  3. Publish the configuration file:

Usage

Artisan Commands

The package provides several Artisan commands to obfuscate PHP files within your Laravel project.

🚀 Simple Application Deployment Commands (RECOMMENDED)

For complete Laravel application deployment with just one command:

What These Commands Do:

🔒 Advanced Secure Deployment Commands

For custom deployment scenarios (requires specifying source and exclusions):

Why Secure Deployment?

🔑 License Management Commands

Simple, Laravel-style license management:

Features:

Basic Obfuscation Commands (Development Use)

For development and testing (creates _obfuscated versions alongside originals):

Obfuscate Specific Directory

To obfuscate PHP files in a specific directory:

Obfuscate Specific File

To obfuscate a specific PHP file:

Backup and Restore

Backup: You can create backups of obfuscated files with the --backup option:

Restore: To restore a backed-up file:

Example:

Deobfuscate Examples:

Deobfuscate

To deobfuscate a PHP file or analyze its obfuscation level:

Options:

Examples:

Deobfuscate All Files

To deobfuscate all PHP files in your Laravel project:

Options:

Examples:

Deobfuscate Directory

To deobfuscate all PHP files in a specific directory:

Options:

Examples:

Programmatic Usage

You can also use the obfuscator service directly in your code:

Facade Usage

You can also use the facade alias:

Configuration

The package configuration file config/laravel-obfuscator.php allows you to customize:

Environment Variables

You can also configure the package using environment variables:

File Structure

Backup System

The package automatically creates backups in storage/app/obfuscator_backups/ when using the --backup option. Backup files are named with the pattern:

Example: backup_1703123456_UserController.php

Obfuscation Method

The package uses a base64 encoding + string reversal technique that:

  1. Encodes the PHP code using base64
  2. Reverses the encoded string
  3. Generates a wrapper that deobfuscates and executes the code at runtime

This provides a good balance between obfuscation effectiveness and performance.

Security Considerations

Troubleshooting

Common Issues

  1. Permission Errors: Ensure write permissions for backup and output directories
  2. Memory Issues: For large projects, increase PHP memory limit
  3. Backup Not Found: Check the backup directory path in configuration

Debug Mode

Enable detailed logging by setting the log level to debug:

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests
  5. Submit a pull request

License

This package is open-sourced software licensed under the MIT license.

Support

For support and questions:

📚 Documentation

Changelog

Version 1.0.0

🔒 Secure Deployment Mode

The Problem with Basic Obfuscation

Basic obfuscation creates _obfuscated files alongside originals, which means:

The Solution: Secure Deployment Mode

Secure deployment mode provides true security by:

Secure Deployment Commands

Obfuscation Secure Deployment

Deobfuscation Secure Deployment

What Happens in Secure Deployment Mode

  1. 🔒 Original files are backed up to secure backup locations:
    • Obfuscation: storage/app/secure_deployment_backups/
    • Deobfuscation: storage/app/secure_deobfuscation_backups/
  2. 🔒 Original files are replaced with processed versions (obfuscated or deobfuscated)
  3. 🔒 Secure backup location is NOT accessible to clients
  4. 🔒 Only processed code remains in the project
  5. 📦 Optional deployment package (ZIP) can be created

Security Benefits

When to Use Secure Deployment

🚀 Quick Start


All versions of laravel-obfuscator with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1|^8.2|^8.3|^8.4
laravel/framework Version ^9.0|^10.0|^11.0|^12.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 honeycrisp/laravel-obfuscator contains the following files

Loading the files please wait ...