Download the PHP package aflorea4/laravel-source-obfuscator without Composer

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

Laravel Source Code Obfuscator

A comprehensive Laravel package for source code obfuscation using PHPBolt. Protect your Laravel application's source code with advanced obfuscation techniques, perfect for CI/CD pipelines and deployment workflows.

Latest Version on Packagist Total Downloads PHP Version Laravel Version

Features

Requirements

Installation

1. Install via Composer

2. Install PHPBolt Extension

PHPBolt is a free PHP extension for code obfuscation. Install the bolt.so extension:

Note: The extension must be loaded both during obfuscation AND at runtime in production.

3. Publish Configuration

This will create config/obfuscator.php in your Laravel application.

4. Configure Encryption Key

Edit .env file and add:

Important: The encryption key will be shown after obfuscation. You must set it as PHP_BOLT_KEY constant in production.

Runtime Configuration (Production)

After obfuscating your code, you need to configure your production environment:

1. Install bolt.so Extension in Production

2. Define PHP_BOLT_KEY Constant

Add to your public/index.php or bootstrap file:

Without these steps, your obfuscated code will NOT run!

Configuration

The package configuration file (config/obfuscator.php) provides extensive options:

PHPBolt Extension Configuration

Include/Exclude Paths

Obfuscation Options

Backup Configuration

CI/CD Mode

Performance Settings

Usage

Available Commands

The package provides four Artisan commands:

1. Obfuscate Source Code

Run the main obfuscation process:

Options:

Examples:

🚀 Production-Ready Bundle Mode

The --production-ready flag creates a complete, deployable Laravel project with obfuscated files. This is perfect for deployment scenarios where you want a ready-to-deploy directory.

How It Works

  1. Copies entire Laravel project to the destination directory
  2. Excludes unnecessary files (tests, node_modules, .git, etc.)
  3. Obfuscates specified files (replaces originals with obfuscated versions)
  4. Keeps everything else intact (config files, public assets, vendor, etc.)

Usage

What Gets Included/Excluded

Excluded by default:

Always included:

Configuration: Edit config/obfuscator.phpproduction_bundle section to customize.

📖 Full Deployment Guide: See docs/PRODUCTION_DEPLOYMENT.md for complete step-by-step deployment instructions.

Example: Deploy-Ready Package

2. Check Configuration

Verify PHPBolt installation and preview files to be obfuscated:

Options:

Example:

3. View Status

Display obfuscation status and information:

Options:

Example:

4. Clear Output/Backups

Clean obfuscated output and backup directories:

Options:

Examples:

CI/CD Integration

GitHub Actions Example

GitLab CI Example

Jenkins Pipeline Example

Best Practices

1. Test Before Production

Always test obfuscated code in a staging environment:

2. Exclude Blade Templates

Blade templates should generally not be obfuscated as they need to be parsed by Laravel:

3. Be Careful with Function/Class Scrambling

Scrambling function and class names can break:

Start with these options disabled:

4. Maintain Backups

Always keep backups enabled:

5. Version Control

Add to .gitignore:

6. Monitor Performance

For large codebases, adjust performance settings:

Troubleshooting

PHPBolt Extension Not Loaded

Solution: Verify bolt.so extension is loaded:

Permission Denied

Solution: Ensure Laravel has write permissions:

Memory Limit Exceeded

Solution: Increase memory limit in configuration:

Files Not Being Obfuscated

Solution: Check your include/exclude patterns:

Security Considerations

  1. Source Code Protection - Keep your original source code secure and separate from obfuscated versions
  2. License Keys - Store PHPBolt license keys securely
  3. Backup Security - Ensure backup directories are not publicly accessible
  4. Deploy Only Obfuscated Code - Never deploy unobfuscated code to production
  5. Access Control - Limit access to obfuscation commands in production environments

Performance Tips

  1. Exclude Unnecessary Files - Only obfuscate what needs protection
  2. Use Parallel Processing - Enable parallel processing for faster obfuscation
  3. Optimize File Scanning - Use specific include paths rather than entire directories
  4. CI/CD Caching - Cache PHPBolt installation in CI/CD pipelines

Support & Contributing

Issues

If you encounter any issues, please check:

  1. PHPBolt installation and configuration
  2. File permissions
  3. Configuration file settings

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

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

Credits

Changelog

Version 1.0.0 (Initial Release)

Roadmap


Note: PHPBolt is a commercial product. You need a valid PHPBolt license to use this package. This package is not affiliated with or endorsed by PHPBolt.


All versions of laravel-source-obfuscator with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8.0
illuminate/support Version ^8.0|^9.0|^10.0|^11.0|^12.0
illuminate/console Version ^8.0|^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 aflorea4/laravel-source-obfuscator contains the following files

Loading the files please wait ...