PHPackages                             jdecool/twig-constant-accessor-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. jdecool/twig-constant-accessor-bundle

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

jdecool/twig-constant-accessor-bundle
=====================================

Simplify access of your class constants in Twig

1.10.0(2y ago)96.5k↑33.3%4MITPHPPHP ^8.1

Since Feb 17Pushed 1y ago2 watchersCompare

[ Source](https://github.com/jdecool/TwigConstantAccessorBundle)[ Packagist](https://packagist.org/packages/jdecool/twig-constant-accessor-bundle)[ Docs](http://github.com/jdecool/TwigConstantAccessorBundle)[ RSS](/packages/jdecool-twig-constant-accessor-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (9)Dependencies (10)Versions (20)Used By (0)

TwigConstantAccessorBundle
==========================

[](#twigconstantaccessorbundle)

[![Build Status](https://github.com/jdecool/TwigConstantAccessorBundle/actions/workflows/ci.yml/badge.svg)](https://actions-badge.atrox.dev/jdecool/TwigConstantAccessorBundle/goto?ref=main)[![Latest Stable Version](https://camo.githubusercontent.com/cdcb6061cdecc06cd816c5ee754aac9d6602d7444f53604aa1b45dd3674b2afd/68747470733a2f2f706f7365722e707567782e6f72672f6a6465636f6f6c2f747769672d636f6e7374616e742d6163636573736f722d62756e646c652f762f737461626c652e706e67)](https://packagist.org/packages/jdecool/twig-constant-accessor-bundle)

This bundle simplify access of your enum values or class constants in Twig.

Install it
----------

[](#install-it)

Install extension using [composer](https://getcomposer.org):

```
composer require jdecool/twig-constant-accessor-bundle
```

If you don't use Symfony Flex, you have to enabled the bundle in your `config/bundles.php` configuration:

```
