Download the PHP package rezgui/laravel-source-encrypter without Composer

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

Laravel Source Encrypter

License Latest Stable Version CodeFactor PHP Version Require Total Downloads

This package encrypts your php code with phpBolt for Laravel and Lumen 6, 7, 8, 9, 10 , 11


Introduction

Many PHP developers need to protect their application source code before they distribute it to their customers and make it difficult for others to modify it without their permission.

Benifits of Encoding

phpBolt encoder

Guide

  1. Download phpBolt extension for 64-bit System

    • In order to use phpBolt, you need to download loader extension. Look for bolt.so inside the corresponding platform folder. (extension)

    • Or, directly using following wget command:

    • Then unzip the downloaded file using the unzip command and move into the decompressed folder.

    • This is a mandatory step. Because PHP engine needs to identify then functions bolt_encrypt and bolt_decrypt functions.
  2. Install bolt.so extension for PHP

    • There will be different phpBolt loader files for various PHP versions, you need to select the right phpBolt loader for your installed PHP version on your server.

    • Next, find the location of the extension directory for PHP version 8.2.25 (for example), it is where the phpBolt loader file will be installed. The specified directory from the output of this command:

    • Copy bolt.so from the respective platform folder into the folder where all PHP extensions are stored. In my case, /usr/lib/php/20220829 was the folder that stores all PHP extensions.
  3. Configure phpBolt Loader for PHP

    • Find the php.ini file and add extension='/usr/lib/php/20220829/bolt.so' in php.ini file. Then restart your server. Please choose correct bolt.so file. bolt.so is diffrent for each version and OS.

    • Open php.ini as following: sudo nano /etc/php.ini

    • Add blot.so extension: extension='/absolute-path/bolt.so'

    • Note:

    • Remember to replace absolute-path with the path of the extension. In my case: extension='/usr/lib/php/20220829/bolt.so'

    • Now we need to restart the Apache, Nginx, or php-fpm web server for the phpBolt loaders to come into effect.

    • Now you have successfully setup bolt loader extension.

Protect Larave Source Code

Installation Package

Step 1

Require the package with composer using the following command:

Step 2

For Laravel

The service provider will automatically get registered. Or you may manually add the service provider in your config/app.php file:

For Lumen

Add this line of code under the Register Service Providers section of your bootstrap/app.php:

Step 3 (Optional)

You can publish the config file with this following command:

Note: If you are using Lumen, you have to use this package.

Usage

Open terminal in project root and run this command:

This command encrypts files and directories in config/source-encrypter.php file. Default values are app, database, routes.

The default destination directory is encrypted. You can change it in config/source-encrypter.php file.

Also the default encryption key length is 6. You can change it in config/source-encrypter.php file. 6 is the recommended key length.

This command has these optional options:

Option Description Example
source Path(s) to encrypt app,routes,public/a.php
destination Destination directory encrypted
keylength Encryption key length 6
force Force the operation to run when destination directory already exists

Usage Examples

Command Description
php artisan encrypt-source Encrypts with default source, destination and keylength. If the destination directory exists, asks for delete it.
php artisan encrypt-source --force Encrypts with default source, destination and keylength. If the destination directory exists, deletes it.
php artisan encrypt-source --source=app Encrypts app directory to the default destination with default keylength.
php artisan encrypt-source --destination=dist Encrypts with default source and key length to dist directory.
php artisan encrypt-source --destination=dist --keylength=8 Encrypts default source to dist directory and the encryption key length is 8.

Written with ♥ by Siavash Bamshadnia, and update with ♥ by Yacine REZGUI.

Please support me by staring this repository.


All versions of laravel-source-encrypter with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2.5
illuminate/console Version >=6.0
illuminate/support Version >=6.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 rezgui/laravel-source-encrypter contains the following files

Loading the files please wait ...