定制 fidum/padlock 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

fidum/padlock

最新稳定版本:4.0.0

Composer 安装命令:

composer create-project fidum/padlock

包简介

A Laravel Zero Command for encrypting and decrypting environment files.

README 文档

README

Latest Version on Packagist GitHub Workflow Status (with branch) Twitter Follow

Installation

You can install the package via composer:

composer global require fidum/padlock

Using Composer Package Executor (cpx)

# Install cpx
composer global require cpx/cpx

# Decrypt
cpx fidum/padlock env:decrypt --env=$ENVIRONMENT --force --key=$ADD_ENCRYPTION_KEY_HERE

# Encrypt
cpx fidum/padlock env:encrypt --env=$ENVIRONMENT --force --key=$ADD_ENCRYPTION_KEY_HERE

Usage

$ padlock

  USAGE: padlock <command> [options] [arguments]

  self-update Allows to self-update a build application

  env:decrypt Decrypt an environment file
      --key[=KEY]            The encryption key
      --cipher[=CIPHER]      The encryption cipher
      --env[=ENV]            The environment the command should run under
      --force                Overwrite the existing environment file
      --path[=PATH]          Path to write the decrypted file
      --filename[=FILENAME]  Filename of the decrypted file

  env:encrypt Encrypt an environment file
      --key[=KEY]            The encryption key
      --cipher[=CIPHER]      The encryption cipher
      --env[=ENV]            The environment the command should run under
      --prune                Delete the original environment file
      --force                Overwrite the existing encrypted environment file

Run the below commands to encrypt and decrypt environment files in the current directory.

Please see the Laravel documentation for environment encryption.

$ padlock env:encrypt --env=testing

   INFO  Environment successfully encrypted.  

  Key ................ base64:RR480kEd+Yen6cCMkXmmGUz38cJYwlP/qNctQ7MA6zo=  
  Cipher ............. AES-256-CBC  
  Encrypted file ..... .env.testing.encrypted
$ padlock env:decrypt --env=testing --key=base64:RR480kEd+Yen6cCMkXmmGUz38cJYwlP/qNctQ7MA6zo=

   INFO  Environment successfully decrypted.  

  Decrypted file ..... .env.testing 

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

  • Stars: 19
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-02-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固