承接 thedepart3d/laravel-source-encryption 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

thedepart3d/laravel-source-encryption

最新稳定版本:1.1.3.1

Composer 安装命令:

composer require thedepart3d/laravel-source-encryption

包简介

Laravel Source Code Encryptor

README 文档

README

This package encrypts your php code with phpBolt

For Laravel 9*

Installation

Step 1

You have to install phpBolt.

Step 2

Require the package with composer using the following command:

composer require thedepart3d/laravel-source-encryption

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' => [
    // ...
    \thedepart3d\LaravelSourceEncryption\EncryptServiceProvider::class,
];

Step 4 (Optional)

You can publish the config file with this following command:

php artisan vendor:publish --provider="thedepart3d\LaravelSourceEncryption\EncryptServiceProvider" --tag=encryptionConfig

Usage

Open terminal in project root and run this command:

php artisan encrypt-source

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

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

Also the default encryption key length is 16. You can change it in config/source-encryption.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-source
key Custom Encryption key
keylength Encryption key length 16
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=encrypted-source Encrypts with default source and key length to encrypted-source directory.
php artisan encrypt-source --destination=encrypted-source --keylength=8 Encrypts default source to encrypted-source directory and the encryption key length is 8.
php artisan encrypt-source --destination=encrypted-source --key="somecustomstrongstring" Encrypts default source to encrypted-source directory and the encryption key is somecustomstrongstring

Updated with ♥ by The Departed

Support can be shared by staring this repository.

统计信息

  • 总下载量: 30
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-07-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固