All Projects → SiavashBamshadnia → Laravel Source Encrypter

SiavashBamshadnia / Laravel Source Encrypter

Licence: mit
Laravel and Lumen Source Code Encrypter

Projects that are alternatives of or similar to Laravel Source Encrypter

Jwt Auth Guard
JWT Auth Guard for Laravel and Lumen Frameworks.
Stars: ✭ 319 (+82.29%)
Mutual labels:  laravel, laravel-package, lumen
Laravel Postal Code Validation
Worldwide postal code validation for Laravel and Lumen
Stars: ✭ 278 (+58.86%)
Mutual labels:  laravel, laravel-package, lumen
Laravel Database Encryption
A package for automatically encrypting and decrypting Eloquent attributes in Laravel 5.5+, based on configuration settings.
Stars: ✭ 238 (+36%)
Mutual labels:  laravel, encryption, encrypt
Laravel Url Shortener
Powerful URL shortening tools in Laravel
Stars: ✭ 80 (-54.29%)
Mutual labels:  laravel, laravel-package, lumen
Laravel Db Profiler
Database Profiler for Laravel Web and Console Applications.
Stars: ✭ 141 (-19.43%)
Mutual labels:  laravel, laravel-package
Laravel Scout Postgres
PostgreSQL Full Text Search Engine for Laravel Scout
Stars: ✭ 140 (-20%)
Mutual labels:  laravel, laravel-package
Forrest
A Laravel library for Salesforce
Stars: ✭ 171 (-2.29%)
Mutual labels:  laravel, lumen
Laravelresources
Speed Up package development for Laravel Apps with API's
Stars: ✭ 152 (-13.14%)
Mutual labels:  laravel, laravel-package
Laravel Deletable
👾 Gracefully restrict deletion of Laravel Eloquent models
Stars: ✭ 137 (-21.71%)
Mutual labels:  laravel, laravel-package
Laravel Themer
Multi theme support for Laravel application
Stars: ✭ 142 (-18.86%)
Mutual labels:  laravel, laravel-package
Laravel Auto Translate
Automatically translate your language files using a translator service
Stars: ✭ 153 (-12.57%)
Mutual labels:  laravel, laravel-package
Laravel Fractal
An easy to use Fractal wrapper built for Laravel and Lumen applications
Stars: ✭ 1,748 (+898.86%)
Mutual labels:  laravel, lumen
Laravel Api Explorer
API explorer for laravel applications
Stars: ✭ 138 (-21.14%)
Mutual labels:  laravel, laravel-package
Laravel Awesome
Laravel 学习图谱
Stars: ✭ 143 (-18.29%)
Mutual labels:  laravel, lumen
Laravel Easypanel
A beautiful and flexible admin panel creator based on Livewire for Laravel
Stars: ✭ 135 (-22.86%)
Mutual labels:  laravel, laravel-package
Servermonitor
💓 Laravel package to periodically monitor the health of your server and application.
Stars: ✭ 148 (-15.43%)
Mutual labels:  laravel, laravel-package
Laravel Security Checker
Added Laravel functionality to Enlightn Security Checker. Adds a command to check for, and optionally emails you, vulnerabilities when they affect you.
Stars: ✭ 163 (-6.86%)
Mutual labels:  laravel, laravel-package
Androidlibrary
Android library to reveal or obfuscate strings and assets at runtime
Stars: ✭ 162 (-7.43%)
Mutual labels:  encryption, encrypt
Telegram Bot Sdk
🤖 Telegram Bot API PHP SDK. Lets you build Telegram Bots easily! Supports Laravel out of the box.
Stars: ✭ 2,212 (+1164%)
Mutual labels:  laravel, laravel-package
Laravel Selfupdater
This package provides some basic methods to implement a self updating functionality for your Laravel application. Already bundled are some methods to provide a self-update mechanism via Github or some private repository via http.
Stars: ✭ 170 (-2.86%)
Mutual labels:  laravel, laravel-package

Laravel Source Encrypter

StyleCI Latest Stable Version License CodeFactor

This package encrypts your php code with phpBolt

For Laravel and Lumen 6, 7, 8

Installation

Step 1

At the first, You have to install phpBolt.

Step 2

Require the package with composer using the following command:

composer require --dev sbamtr/laravel-source-encrypter

Step 3

For Laravel

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

'providers' => [
    // ...
    \sbamtr\LaravelSourceEncrypter\SourceEncryptServiceProvider::class,
];

For Lumen

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

$app->register(\sbamtr\LaravelSourceEncrypter\SourceEncryptServiceProvider::class);

Step 4 (Optional)

You can publish the config file with this following command:

php artisan vendor:publish --provider="sbamtr\LaravelSourceEncrypter\SourceEncryptServiceProvider" --tag=config

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

Usage

Open terminal in project root and run this command:

php artisan encrypt-source

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.

Please support me by staring this repository.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].