PHPackages                             codenamephp/googlesecretsmanager - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. codenamephp/googlesecretsmanager

ActiveNeos-package

codenamephp/googlesecretsmanager
================================

Use secrets from Google Secrets Manager in NEOS CMS

1.0.0(3y ago)0599[1 PRs](https://github.com/codenamephp/neos.googleSecretsManager/pulls)PHPPHP ^8.1

Since Dec 10Pushed 2y ago1 watchersCompare

[ Source](https://github.com/codenamephp/neos.googleSecretsManager)[ Packagist](https://packagist.org/packages/codenamephp/googlesecretsmanager)[ RSS](/packages/codenamephp-googlesecretsmanager/feed)WikiDiscussions release Synced 1mo ago

READMEChangelog (1)Dependencies (5)Versions (4)Used By (0)

neos.googleSecretsManager
=========================

[](#neosgooglesecretsmanager)

[![Packagist Version](https://camo.githubusercontent.com/02db12ffaf1dcd78971ca1ac1c57ccfd3e493d0d60b20a144adb41aa59bbd747/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636f64656e616d657068702f676f6f676c65536563726574734d616e61676572)](https://camo.githubusercontent.com/02db12ffaf1dcd78971ca1ac1c57ccfd3e493d0d60b20a144adb41aa59bbd747/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636f64656e616d657068702f676f6f676c65536563726574734d616e61676572)[![Packagist PHP Version Support](https://camo.githubusercontent.com/ab585f52d9b20b018d9275dc5214d86cc81b7a99dc1c1a601cbc263b43adc9a0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f636f64656e616d657068702f676f6f676c65536563726574734d616e61676572)](https://camo.githubusercontent.com/ab585f52d9b20b018d9275dc5214d86cc81b7a99dc1c1a601cbc263b43adc9a0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f636f64656e616d657068702f676f6f676c65536563726574734d616e61676572)[![Lines of code](https://camo.githubusercontent.com/488af20361034c08635dad083ce5a3d48183679070a097fc1ab5c3b304a398a3/68747470733a2f2f696d672e736869656c64732e696f2f746f6b65692f6c696e65732f6769746875622f636f64656e616d657068702f6e656f732e676f6f676c65536563726574734d616e61676572)](https://camo.githubusercontent.com/488af20361034c08635dad083ce5a3d48183679070a097fc1ab5c3b304a398a3/68747470733a2f2f696d672e736869656c64732e696f2f746f6b65692f6c696e65732f6769746875622f636f64656e616d657068702f6e656f732e676f6f676c65536563726574734d616e61676572)[![GitHub code size in bytes](https://camo.githubusercontent.com/6a6c8719ccd6a33997e9e23bd9ef007b42303ed4c5770bb0cba1dabfaeaff090/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f636f64652d73697a652f636f64656e616d657068702f6e656f732e676f6f676c65536563726574734d616e61676572)](https://camo.githubusercontent.com/6a6c8719ccd6a33997e9e23bd9ef007b42303ed4c5770bb0cba1dabfaeaff090/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f636f64652d73697a652f636f64656e616d657068702f6e656f732e676f6f676c65536563726574734d616e61676572)[![CI](https://github.com/codenamephp/neos.googleSecretsManager/workflows/CI/badge.svg)](https://github.com/codenamephp/neos.googleSecretsManager/workflows/CI/badge.svg)[![Packagist Downloads](https://camo.githubusercontent.com/121cd8877516d54efef6a467bb43849e662d6cc2112d31f393ad1aaed664f71a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636f64656e616d657068702f676f6f676c65536563726574734d616e61676572)](https://camo.githubusercontent.com/121cd8877516d54efef6a467bb43849e662d6cc2112d31f393ad1aaed664f71a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636f64656e616d657068702f676f6f676c65536563726574734d616e61676572)[![GitHub](https://camo.githubusercontent.com/eaee3c2383725cc5c0cefde15a1346d6a43b536b3ace0b73355cee736bcc11d1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f636f64656e616d657068702f6e656f732e676f6f676c65536563726574734d616e61676572)](https://camo.githubusercontent.com/eaee3c2383725cc5c0cefde15a1346d6a43b536b3ace0b73355cee736bcc11d1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f636f64656e616d657068702f6e656f732e676f6f676c65536563726574734d616e61676572)

Installation
------------

[](#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
-----

[](#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
-------------

[](#configuration)

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

```
CodenamePHP:
  GoogleSecretsManager:
    credentials: '%FLOW_PATH_ROOT%/path-to-google-auth.json'
    project: 'my project'

    secrets:
      db_password:
        path: Neos.Flow.persistence.backendOptions.password
      db_user: Neos.Flow.persistence.backendOptions.user
```

All configuration is done under the `CodenamePHP.GoogleSecretsManager` key.

### Properties

[](#properties)

#### enabled

[](#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

[](#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

[](#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

[](#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

[](#long-form)

Type: `object`

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

- `path` - The path to the setting in the settings array. This can be a dot separated path to a nested setting. If the setting does not exist it will be created.
- `project (optional)` - The project to use for this secret. If not set the global project will be used.
- `name (optional)` - The name of the secret in the google secrets manager. If this is omitted the key of the secret is used as the name.
- `version (optional)` - The version of the secret to load. This is optional and defaults to `latest`. This can be used to load older versions of the secret.

#### Short Form

[](#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.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 98% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1255d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6865819?v=4)[Bastian Schwarz](/maintainers/bastianschwarz)[@bastianschwarz](https://github.com/bastianschwarz)

---

Top Contributors

[![bastianschwarz](https://avatars.githubusercontent.com/u/6865819?v=4)](https://github.com/bastianschwarz "bastianschwarz (48 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

google-cloud-platformgoogle-secrets-managerneosneoscms

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/codenamephp-googlesecretsmanager/health.svg)

```
[![Health](https://phpackages.com/badges/codenamephp-googlesecretsmanager/health.svg)](https://phpackages.com/packages/codenamephp-googlesecretsmanager)
```

###  Alternatives

[neos/neos

An open source Content Application Platform based on Flow. A set of core Content Management features is resting within a larger context that allows you to build a perfectly customized experience for your users.

116989.0k674](/packages/neos-neos)[neos/eel

The Embedded Expression Language (Eel) is a building block for creating Domain Specific Languages

122.0M27](/packages/neos-eel)[neos/media

The Media package

101.1M45](/packages/neos-media)[neos/flow-base-distribution

Flow Base Distribution

2159.5k](/packages/neos-flow-base-distribution)[avency/neos-vardump

Neos VarDump Package

147.1k](/packages/avency-neos-vardump)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
