hostnet / financial-twig-extension-bundle
A simple Symfony Bundle that contains twig extensions for displaying financial information.
Installs: 31 787
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 5
Forks: 3
Open Issues: 0
Type:symfony-bundle
Requires
- php: ^8.1
- ronanguilloux/isocodes: ^2.1
- symfony/http-kernel: ^5.4||^6.0
Requires (Dev)
- hostnet/phpcs-tool: ^9.1.0
- phpunit/phpunit: ^9.5.6
- symfony/framework-bundle: ^5.4||^6.0
- symfony/twig-bundle: ^5.4||^6.0
- symfony/yaml: ^5.4||^6.0
- twig/twig: ^3.0
README
A simple Symfony Bundle that contains twig extensions for displaying financial information
Installation
Install the latest version via composer:
php composer.phar require hostnet/financial-twig-extension-bundle
Then add the bundle to your AppKernel bundles:
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new \Hostnet\Bundle\FinancialTwigExtensionBundle\Bundle\HostnetFinancialTwigExtensionBundle(), // ... ); }
Usage
Currently, we support formatting International Bank Account Numbers (IBAN) for displaying on a page (a space for every four characters):
{{ "NL85INGB0008523141"|formatIban }}
This will result in the following output:
NL85 INGB 0008 5231 41
Requirements
PHP 7.3.x or above.
License
This library is licensed under the MIT License, meaning you can reuse the code within proprietary software provided that all copies of the licensed software include a copy of the MIT License terms and the copyright notice.
For more information, see the LICENSE file.