PHPackages                             elixis-group/gcp-secret-manager-bundle - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. elixis-group/gcp-secret-manager-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

elixis-group/gcp-secret-manager-bundle
======================================

Use GCP Secrets as service container parameters in Symfony, and provided provider class to access secrets value.

3.0.0(3mo ago)0609MITPHPPHP &gt;=8.2

Since Aug 12Pushed 3mo ago3 watchersCompare

[ Source](https://github.com/ELIXIS-GROUP/gcp-secret-manager-bundle)[ Packagist](https://packagist.org/packages/elixis-group/gcp-secret-manager-bundle)[ RSS](/packages/elixis-group-gcp-secret-manager-bundle/feed)WikiDiscussions develop Synced today

READMEChangelogDependencies (18)Versions (11)Used By (0)

GCP Secret Manager Bundle for Symfony
=====================================

[](#gcp-secret-manager-bundle-for-symfony)

*Version 2.0.2* Created *2021/08/12* Last Update *2023/12/05*

Use GCP Secrets as service container parameters in Symfony, and provided provider class to access secrets value.

Prerequisites
-------------

[](#prerequisites)

Configure Secret Manager in your project Google Cloud, see following article who explain how create and configure Google Secret Manager .

*Warning in local dev environment, you need create a service account to set global var GOOGLE\_APPLICATION\_CREDENTIALS. See .*

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

[](#installation)

**Warning ! Befor install bundle, a minimal configuration is required. Google Secret Manager need a global var GOOGLE\_APPLICATION\_CREDENTIALS.**

Create file `config/packages/gcp_secret_manager.yaml` and add the following.

```
#config/packages/gcp_secret_manager.yaml

gcp_secret_manager:
    secret_manager_client_config:
        keyfilepath: '%kernel.project_dir%/google_application_credentials.json' # Google Credentials path

```

```
$ composer require gcp-secret-manager-bundle

```

Activating GCP Secret Manager Bundle.

```
#config/bundles.php

ElixisGroup\GcpSecretManagerBundle\GcpSecretManagerBundle::class => ['all' => true],

```

Configuration
-------------

[](#configuration)

By default, configuration for this bundle is loaded from config/packages/gcp\_secret\_manager.yaml file or its environment specific.

The following configuration properties are available:

```
#config/packages/gcp_secret_manager.yaml

gcp_secret_manager:
    secret_manager_client_config:
        project_id: 'projectId' # Google Cloud project id
        keyfilepath: '%kernel.project_dir%/google_application_credentials.json' # Google Credentials path
    delimiter: ':' # Delimiter to separate secret name from secret version
    ignore: false # Pass through GCP Secret Manager (if you don't use set to "true").

```

Default usage
-------------

[](#default-usage)

Set an env var to an AWS Secret Manager Secret name and Secret version separate by the separator define in config or the default one, like so:

```
#.env

SECRET_ENV_VAR=SECRET_NAME:SECRET_VERSION

```

Set a parameter to this environment variable with the gcp processor:

```
#config/services.yaml

parameters:
    secret_env_var: '%env(gcp:SECRET_ENV_VAR)%'

```

Service Container Usage
-----------------------

[](#service-container-usage)

A standalone service container is also available if you don't want use a service container parameters.

```
#Controller/AcmeController.php

use ElixisGroup\GcpSecretManagerBundle\Provider\GcpSecretManagerProvider;

class AcmeController extends AbstractController
{
    public function index(GcpSecretManagerProvider $secretProvider){
        $secretValue = $secretProvider->get('SECRET_NAME', SECRET_VERSION);
    }
}

```

Examples
--------

[](#examples)

- [Configure Doctrine Bundle in Symfony to GCP Secret Manager Bundle](https://github.com/ELIXIS-GROUP/gcp-secret-manager-bundle/blob/master/doc/sample_doctrine_connection.md)

###  Health Score

47

—

FairBetter than 93% of packages

Maintenance82

Actively maintained with recent releases

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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

Every ~338 days

Recently: every ~215 days

Total

6

Last Release

95d ago

Major Versions

1.0.0 → 2.0.12023-11-23

2.1.0 → 3.0.02026-03-31

PHP version history (3 changes)1.0.0PHP &gt;=7.1.3

2.0.1PHP &gt;=7.4

3.0.0PHP &gt;=8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/2381ef8f31e063667ae816cab4ed768e4565bb81018e494d06a1eb0db371bf10?d=identicon)[elixis-digital](/maintainers/elixis-digital)

---

Top Contributors

[![biqette](https://avatars.githubusercontent.com/u/6476885?v=4)](https://github.com/biqette "biqette (46 commits)")

---

Tags

symfonyenvgoogle cloudgcpsecrets-managerGOOGLE CLOUD PLATFOM

###  Code Quality

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/elixis-group-gcp-secret-manager-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/elixis-group-gcp-secret-manager-bundle/health.svg)](https://phpackages.com/packages/elixis-group-gcp-secret-manager-bundle)
```

###  Alternatives

[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

103519.9k53](/packages/friendsoftypo3-content-blocks)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k14](/packages/2lenet-crudit-bundle)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1189.8k](/packages/rcsofttech-audit-trail-bundle)[aeliot/todo-registrar

Register TODOs from source code in issue tracker

153.0k](/packages/aeliot-todo-registrar)

PHPackages © 2026

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