Skip to content

Instantly share code, notes, and snippets.

View leperse's full-sized avatar

Aymen Fersi leperse

View GitHub Profile
@mylk
mylk / CountryExtension.php
Last active March 25, 2019 13:49
Twig extension that adds a filter that returns the country name by its 2-letter ISO code
<?php
/*
* Installation:
* =============
* # services.yml
* services:
* # ...
* acme.twig.country_extension:
* class: Acme\AcmeBundle\Twig\CountryExtension