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(10mo ago)04MITPHPPHP &gt;=8.1

Since Aug 17Pushed 10mo 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 today

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

29

—

LowBetter than 57% of packages

Maintenance54

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity45

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

321d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/149363193?v=4)[VaHa Digital](/maintainers/vahadigital)[@vahadigital](https://github.com/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

913100.5M464](/packages/twig-extra-bundle)[symfony/ux-twig-component

Twig components for Symfony

22018.6M356](/packages/symfony-ux-twig-component)[symfony/ux-live-component

Live components for Symfony

1647.0M128](/packages/symfony-ux-live-component)[yellowskies/qr-code-bundle

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

37711.6k](/packages/yellowskies-qr-code-bundle)[symfony/ux-toolkit

A tool to easily create a design system in your Symfony app with customizable, well-crafted Twig components

16126.1k1](/packages/symfony-ux-toolkit)[mati365/ckeditor5-symfony

CKEditor 5 integration for Symfony

262.6k](/packages/mati365-ckeditor5-symfony)

PHPackages © 2026

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