https://github.com/core23/twigformatterbundle
📑 This bundle provides a twig formatter for the Sonata FormatterBundle.
https://github.com/core23/twigformatterbundle
bundle formatter php sonata sonata-formatter symfony symfony-bundle twig
Last synced: 8 months ago
JSON representation
📑 This bundle provides a twig formatter for the Sonata FormatterBundle.
- Host: GitHub
- URL: https://github.com/core23/twigformatterbundle
- Owner: core23
- License: mit
- Archived: true
- Created: 2019-08-18T19:30:06.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-04-23T15:21:34.000Z (about 6 years ago)
- Last Synced: 2024-09-30T15:27:58.925Z (over 1 year ago)
- Topics: bundle, formatter, php, sonata, sonata-formatter, symfony, symfony-bundle, twig
- Language: PHP
- Homepage: https://core23.de
- Size: 61.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
TwigFormatterBundle
===================
[](https://packagist.org/packages/core23/twig-formatter-bundle)
[](https://packagist.org/packages/core23/twig-formatter-bundle)
[](https://packagist.org/packages/core23/twig-formatter-bundle)
[](https://packagist.org/packages/core23/twig-formatter-bundle)
[](https://packagist.org/packages/core23/twig-formatter-bundle)
[](https://packagist.org/packages/core23/twig-formatter-bundle)
[](https://github.com/core23/TwigFormatterBundle/actions)
[](https://codecov.io/gh/core23/TwigFormatterBundle)
This bundle provides a [twig] formatter for the [Sonata FormatterBundle].
## Installation
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
```
composer require core23/twig-formatter-bundle
```
### Enable the Bundle
Then, enable the bundle by adding it to the list of registered bundles in `config/bundles.php` file of your project:
```php
// config/bundles.php
return [
// ...
Core23\TwigFormatterBundle\Core23TwigFormatterBundle::class => ['all' => true],
];
```
To use the new formatter, register the formatter in `config/packages/sonata_formatter.yaml` file of your project:
```yaml
sonata_formatter:
formatters:
twig:
service: core23_twig_formatter.formatter
```
[twig]: https://github.com/twigphp/Twig
[Sonata FormatterBundle]: https://github.com/sonata-project/SonataFormatterBundle