Download the PHP package codenamephp/googlesecretsmanager without Composer

On this page you can find all versions of the php package codenamephp/googlesecretsmanager. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package googlesecretsmanager

neos.googleSecretsManager

Packagist Version Packagist PHP Version Support Lines of code GitHub code size in bytes CI Packagist Downloads GitHub

Installation

Easiest way is via composer. Just run composer require codenamephp/neos.googleSecretsManager in your cli which should install the latest version for you.

Usage

Just install the package. It registers itself and hooks into the loading of the settings and replaces the settings with your secrets according to your configuration.

Configuration

The configuration is done via the GoogleSecretsManager.yaml file. The following example shows an example configuration:

All configuration is done under the CodenamePHP.GoogleSecretsManager key.

Properties

enabled

Type: boolean

A boolean to switch the replacement on or off. This is useful if you want to disable the replacement in development for example.

credentials

Type: string

The credentials key is the path to the google auth json file or the decoded json itself. You can get this file from the google cloud console. This can also be omitted to make the client look for the credentials in the environment variables.

Make sure the credentials have access to the secret manager AND the payload of each secret.

project

Type: string

The project key is the name of the project you want to access. This is the name you see in the google cloud console and can be overwritten per secret in case some secrets are in a different project.

secrets

Type: array

The secrets key is an array of secrets. The key is the name of the secret in the google secrets manager and the has a long and a short form:

Long Form

Type: object

In the long form the secret is an object with the following properties:

Short Form

Type: string

In the short form the value is the path to the setting you want to replace. The path is a dot separated path to the setting.


All versions of googlesecretsmanager with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
neos/flow Version ~8.1.0 || ~8.2.0
google/cloud-secret-manager Version ^1.9
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package codenamephp/googlesecretsmanager contains the following files

Loading the files please wait ...