承接 dniccum/secret-stash-cli 相关项目开发

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

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

dniccum/secret-stash-cli

最新稳定版本:v1.0.1

Composer 安装命令:

composer require dniccum/secret-stash-cli

包简介

A PHP-based Composer package to interact with the SecretStash environment variable service.

README 文档

README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

SecretStash

SecretStash CLI

A Laravel Composer package that provides Artisan commands for interacting with the SecretStash REST API. Manage your environment variables directly from the command line with an intuitive, interactive interface.

Requirements

  • PHP 8.2 or higher
  • Laravel 11 or higher
  • A SecretStash API Key

Installation

Install the package via Composer:

composer require dniccum/secret-stash-cli

Run the installer to publish the configuration file and generate the encryption keys used to secure your variables:

php artisan secret-stash:install

Important

This package creates a ~/.secret-stash directory on your machine (or the path specified by the SECRET_STASH_KEY_DIR environment variable). Ensure this folder is secure as it contains the keys required to decrypt your environment variables.

Configuration

Add the following environment variables to your application's .env file:

SECRET_STASH_API_TOKEN=your_token_here
SECRET_STASH_APPLICATION_ID=your_application_id_here
  • API Key: Create a token in SecretStash by navigating to your profile settings and accessing the "Tokens" tab.
  • Application ID: Create or select an application in SecretStash and copy its ID from the dashboard.

Note

Both the API key and Application ID are required. The CLI will throw an error if either is missing.

Quick Example

Pull your environment's variables from SecretStash into your local .env file:

php artisan secret-stash:variables pull

Push your local .env variables to SecretStash:

php artisan secret-stash:variables push

For the full list of available commands and options, visit the SecretStash CLI documentation.

Testing

composer test

or:

./vendor/bin/pest

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.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-03-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固