承接 zappzerapp/laravel-db-vault 相关项目开发

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

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

zappzerapp/laravel-db-vault

Composer 安装命令:

composer require zappzerapp/laravel-db-vault

包简介

A Laravel package that stores variables with context to the database.

README 文档

README

Header

Laravel DB Vault

A simple Laravel package that allows you to store and retrieve environment variables in a database. It supports optional encryption for additional security.

Installation

composer install zappzerapp/laravel-db-vault

Usage

Retrieve values

Use the vault(string $context, string $key, mixed $default = null) helper to retrieve values from the database:

$imageSize = vault('user', 'image_size', '1280x720');

Save values

Use the vault_set(string $context, string $key, mixed $value, bool $encrypted = false) helper to store values in the database:

To save an unencrypted value:

vault_set('user', 'image_size', '1337x420');

To save an encrypted value:

vault_set('aws', 'api_key', 'secret_api_key', true);

Encryption

The stored values can be protected with the encryption option. If the parameter $encrypt parameter is set to true, the value is encrypted before being saved. The vault() helper decrypts the value automatically when it is retrieved.

Licence

This project is licensed under the MIT licence. See the LICENSE file for details.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-10-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固