PHPackages                             phillarmonic/crescendo-var-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. phillarmonic/crescendo-var-bundle

ActiveSymfony-bundle

phillarmonic/crescendo-var-bundle
=================================

Elevate Your Code to a Symphony of Efficiency with CrescendoVarBundle: Where Every Variable Plays its Part Perfectly.

1.0.0(2y ago)42.9kMITPHPPHP &gt;=8.1

Since Mar 12Pushed 2y ago1 watchersCompare

[ Source](https://github.com/PhillarmonicSoftware/CrescendoVarBundle)[ Packagist](https://packagist.org/packages/phillarmonic/crescendo-var-bundle)[ RSS](/packages/phillarmonic-crescendo-var-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (7)Versions (2)Used By (0)

CrescendoVarBundle
==================

[](#crescendovarbundle)

Elevate Your Code to a Symphony of Efficiency with CrescendoVarBundle: Where Every Variable Plays its Part Perfectly.

**Overview**
------------

[](#overview)

The **`phillarmonic/crescendo-var-bundle`** is a Symfony Bundle designed to enhance your development workflow by simplifying environment variable manipulation. With its intuitive features, developers can effortlessly convert environment variable strings into integers or booleans, as well as transform a single environment variable into an array.

This document provides a comprehensive guide on how to integrate and utilize the CrescendoVarBundle in your projects.

This is particularly useful when you need values of a specific type, but your workflow necessitates the use of strings to set your environment variables. An example of this is an ArgoCD YAML file, which requires all values to be strings.

**Features**
------------

[](#features)

- **Automatic Type Conversion:** Easily convert string environment variables to integers (**`int`**) or booleans (**`bool`**) to ensure the correct data types are used in your application.
- **Array Transformation:** Split a single environment variable into an array, allowing for more complex configurations that can be dynamically adjusted via environment variables.
- **Edge Case Handling:** Specifically designed to manage edge cases in environment variable processing, ensuring robust and error-free application configuration.

**Installation**
----------------

[](#installation)

To install the CrescendoVarBundle, run the following command in your project directory:

```
composer require phillarmonic/crescendo-var-bundle
```

Ensure that your project's **`composer.json`** is updated and that the package is installed successfully.

**Configuration**
-----------------

[](#configuration)

After installation, configure the bundle by adding it to your application's bundle configuration. This process may vary depending on the framework or platform you are using. Typically, it involves registering the bundle in a configuration file or through an application's bundle registration system.

**Usage**
---------

[](#usage)

CrescendoVarBundle simplifies the usage of environment variables by providing special processors to handle common use cases. Below are examples of how to use these processors in your application:

### **Converting String to Integer**

[](#converting-string-to-integer)

Use the **`tryint`** processor to convert an environment variable value to an integer. This is particularly useful for ports and other numerical configurations.

```
parameters:
  database_port: '%env(tryint:DATABASE_PORT)%'
```

### **Converting String to Boolean**

[](#converting-string-to-boolean)

The **`trybool`** processor converts an environment variable value to a boolean. This is ideal for feature flags and other boolean-based configurations.

```
parameters:
  second_level_cache_enabled: '%env(trybool:SECOND_LEVEL_CACHE_ENABLED)%'
```

### **Explode Environment Variable into an Array**

[](#explode-environment-variable-into-an-array)

The **`explode`** processor splits a single environment variable into an array based on a delimiter (default is coma **`,`**). This is useful for lists of hosts, tags, or any multivalued configuration.

```
parameters:
  redis_cluster_hosts: '%env(explode:REDIS_CLUSTER_HOSTS)%'
  # Setting up your own delimiter
  redis_cluster_hosts: '%env(explode_;:REDIS_CLUSTER_HOSTS)%'
```

**Support and Contribution**
----------------------------

[](#support-and-contribution)

For issues, questions, or contributions, please visit the project's GitHub repository. Our community is eager to help and welcomes contributions from developers at all skill levels.

---

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

789d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4b2fff0e8f2d6d892519e56d5b59fc9385d01bde2d4df45b1dd3de9174e71d64?d=identicon)[phillarmonic](/maintainers/phillarmonic)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/phillarmonic-crescendo-var-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/phillarmonic-crescendo-var-bundle/health.svg)](https://phpackages.com/packages/phillarmonic-crescendo-var-bundle)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M650](/packages/sylius-sylius)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[contao/core-bundle

Contao Open Source CMS

1231.6M2.3k](/packages/contao-core-bundle)[shopware/storefront

Storefront for Shopware

684.2M148](/packages/shopware-storefront)

PHPackages © 2026

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