Download the PHP package gmo/credstash without Composer
On this page you can find all versions of the php package gmo/credstash. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download gmo/credstash
More information about gmo/credstash
Files in gmo/credstash
Informations about the package credstash
CredStash for PHP
This is a PHP port of original CredStash (written in python). Encryption and DynamoDB storage are compatible with python version so both can work side by side. There is an optional CLI tool as well, details below.
More information about what CredStash is, how it works, and how to set it up can be read in their README.
Installation
PHP Usage
Create CredStash instance
The easiest way to create CredStash is with the AWS SDK object:
Getting individual secrets:
Getting multiple secrets:
Putting secrets:
Deleting secrets:
Listing credentials and their latest versions:
CLI Usage
Note: CLI tool requires Symfony's Console Component to be installed manually, because this is an optional dependency.
The CLI tool is compatible with the python version with a couple differences due to compatibility with Symfony's Console Application's standard commands/parameters.
Version parameter:
The python version has -v
or --version
to specify the version to put
or get
.
Here it is -c
or --cred-version
, because Symfony uses this for the version of the console tool.
List command
The python version's list
command is renamed to info
here.
Symfony has a list command that lists the commands available.
Other than these two differences they are exactly the same.
More info can be found in their README or by running this tool without any arguments.
Info for each command can be viewed with standard help
command or -h
/--help
parameter.
All versions of credstash with dependencies
ext-openssl Version *
php Version ^5.5.9 || ^7.0
symfony/polyfill-php56 Version ^1.0
webmozart/path-util Version ^2.3