PHPackages                             vahadigital/pimcore-project-info-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. [Templating &amp; Views](/categories/templating)
4. /
5. vahadigital/pimcore-project-info-bundle

ActivePimcore-bundle[Templating &amp; Views](/categories/templating)

vahadigital/pimcore-project-info-bundle
=======================================

Pimcore bundle for displaying project information from environment variables

v1.0.0(8mo ago)04MITPHPPHP &gt;=8.1

Since Aug 17Pushed 8mo agoCompare

[ Source](https://github.com/vahadigital/pimcore-project-info-bundle)[ Packagist](https://packagist.org/packages/vahadigital/pimcore-project-info-bundle)[ Docs](https://github.com/vahadigital/pimcore-project-info-bundle)[ RSS](/packages/vahadigital-pimcore-project-info-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Pimcore Project Info Bundle
===========================

[](#pimcore-project-info-bundle)

A Pimcore 11+ bundle that provides project information from environment variables through Twig functions.

Features
--------

[](#features)

- 🏷️ Display project name from `PROJECT_NAME` environment variable
- 🌍 Show environment information (`APP_ENV`)
- 🔄 Automatic environment display (adds environment to name if not production)
- 🎨 Easy Twig integration with custom functions
- ⚡ Self-configuring services (no manual setup required)

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

[](#installation)

Install:

```
composer require vahadigital/pimcore-project-info-bundle
```

**Note:** The bundle automatically registers itself via Pimcore's auto-discovery. No manual bundle configuration needed!

### 2. Clear Cache

[](#2-clear-cache)

```
php bin/console cache:clear
```

Environment Variables
---------------------

[](#environment-variables)

Set these variables in your `.env` file:

```
PROJECT_NAME=My Awesome Project
APP_ENV=dev
```

Usage in Twig Templates
-----------------------

[](#usage-in-twig-templates)

### Basic Functions

[](#basic-functions)

```
{# Get project name #}
{{ project_name() }}

{# Get display name (includes environment if not prod) #}
{{ project_display_name() }}

{# Get all project info as array #}
{% set info = project_info() %}
```

### Complete Example

[](#complete-example)

```

    {{ project_display_name() }}

    {{ project_name() }}

    {% set info = project_info() %}

        Environment: {{ info.environment }}
        {% if info.is_development %}
            Development Mode
        {% endif %}

```

### Available Functions

[](#available-functions)

FunctionDescriptionExample Output`project_name()`Raw project name from env"My Project"`project_display_name()`Name with env (if not prod)"My Project (DEV)"`project_info()`Complete info arraySee below### Project Info Array Structure

[](#project-info-array-structure)

```
[
    'name' => 'My Awesome Project',
    'environment' => 'dev',
    'display_name' => 'My Awesome Project (DEV)',
    'is_production' => false,
    'is_development' => true,
]
```

Development
-----------

[](#development)

### Bundle Structure

[](#bundle-structure)

```
pimcore-project-info-bundle/
├── src/
│   ├── ProjectInfoBundle.php          # Main bundle class
│   ├── Service/
│   │   └── ProjectInfoService.php     # Core logic
│   └── Twig/
│       └── ProjectInfoExtension.php   # Twig functions
├── composer.json                      # Package definition
└── README.md                         # This file

```

### Requirements

[](#requirements)

- PHP 8.1+
- Pimcore 11.0+
- Twig 3.0+

Contributing
------------

[](#contributing)

1. Fork the repository
2. Create your feature branch (`git checkout -b feature/amazing-feature`)
3. Commit your changes (`git commit -m 'Add some amazing feature'`)
4. Push to the branch (`git push origin feature/amazing-feature`)
5. Open a Pull Request

Support
-------

[](#support)

- 🐛 **Issues:** [GitHub Issues](https://github.com/vahadigital/pimcore-project-info-bundle/issues)
- 📧 **Email:**
- 🌐 **Website:** [Vaha Digital](https://vahadigital.com)

Changelog
---------

[](#changelog)

### v1.0.0

[](#v100)

- Initial release
- Project name and environment display
- Twig functions: `project_name()`, `project_display_name()`, `project_info()`
- Automatic service configuration

License
-------

[](#license)

MIT License - see [LICENSE](LICENSE) file for details.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance58

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity44

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

269d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a1f25490a9dad1b41439c476d961f77c27d16dd86460f2fac31557155a5fa9da?d=identicon)[vahadigital](/maintainers/vahadigital)

---

Top Contributors

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

---

Tags

bundletwigpimcoreproject-info

### Embed Badge

![Health badge](/badges/vahadigital-pimcore-project-info-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/vahadigital-pimcore-project-info-bundle/health.svg)](https://phpackages.com/packages/vahadigital-pimcore-project-info-bundle)
```

###  Alternatives

[twig/extra-bundle

A Symfony bundle for extra Twig extensions

91292.0M315](/packages/twig-extra-bundle)[yellowskies/qr-code-bundle

Symfony Barcode &amp; QR Code Generator Bundle with Twig extension

36682.9k](/packages/yellowskies-qr-code-bundle)[jbouzekri/phumbor-bundle

A Symfony Bundle to use the minimal Thumbor PHP client from webfactory/phumbor

25740.0k1](/packages/jbouzekri-phumbor-bundle)[nucleos/antispam-bundle

This bundle provides some basic features to reduce spam in symfony forms.

52105.1k](/packages/nucleos-antispam-bundle)[eschmar/time-ago-bundle

Provides a simple twig filter for expressing time difference in words.

1851.4k](/packages/eschmar-time-ago-bundle)[shapecode/twig-template-event-bundle

Possibility to add code in a twig template dynamically

1010.7k](/packages/shapecode-twig-template-event-bundle)

PHPackages © 2026

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