{"id":16673294,"url":"https://github.com/senseexception/intlformatbundle","last_synced_at":"2026-02-22T16:06:32.718Z","repository":{"id":62542204,"uuid":"56011112","full_name":"SenseException/IntlFormatBundle","owner":"SenseException","description":"A Symfony bundle of the IntlFormat wrapper library for PHP intl messages","archived":false,"fork":false,"pushed_at":"2025-03-08T19:50:55.000Z","size":104,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T15:34:34.248Z","etag":null,"topics":["formatter","icu","internationalization","intl","intl-format","php-intl-messages","sprintf","symfony-bundle","timezone"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SenseException.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-11T22:04:21.000Z","updated_at":"2025-03-08T19:50:59.000Z","dependencies_parsed_at":"2022-11-02T16:16:29.581Z","dependency_job_id":null,"html_url":"https://github.com/SenseException/IntlFormatBundle","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SenseException%2FIntlFormatBundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SenseException%2FIntlFormatBundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SenseException%2FIntlFormatBundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SenseException%2FIntlFormatBundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SenseException","download_url":"https://codeload.github.com/SenseException/IntlFormatBundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250249310,"owners_count":21399436,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["formatter","icu","internationalization","intl","intl-format","php-intl-messages","sprintf","symfony-bundle","timezone"],"created_at":"2024-10-12T12:25:40.747Z","updated_at":"2026-02-22T16:06:32.671Z","avatar_url":"https://github.com/SenseException.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IntlFormatBundle\n\nA Symfony bundle of the [Intl-Format wrapper library](https://github.com/SenseException/intl-format) for PHP intl messages.\nThis bundle is currently in development and might introduce BC breaks.\n\n[![Latest Stable Version](http://poser.pugx.org/senseexception/intl-format-bundle/v)](https://packagist.org/packages/senseexception/intl-format-bundle)\n[![PHP from Packagist](https://img.shields.io/packagist/php-v/senseexception/intl-format-bundle.svg)](https://packagist.org/packages/senseexception/intl-format-bundle)\n[![Tests](https://github.com/SenseException/IntlFormatBundle/actions/workflows/tests.yml/badge.svg)](https://github.com/SenseException/IntlFormatBundle/actions/workflows/tests.yml)\n[![Static Analysis](https://github.com/SenseException/IntlFormatBundle/actions/workflows/static-analysis.yml/badge.svg)](https://github.com/SenseException/IntlFormatBundle/actions/workflows/static-analysis.yml)\n[![License](http://poser.pugx.org/senseexception/intl-format-bundle/license)](https://packagist.org/packages/senseexception/intl-format-bundle)\n\n## Installation\n\nYou can install it with [Composer](https://getcomposer.org/).\n\n```\ncomposer require senseexception/intl-format-bundle\n```\n\nIf the composer installation with symfony/flex didn't already register the bundle, you need to register it into your\nbundles.php manually:\n\n``` php\nreturn [\n    Symfony\\Bundle\\FrameworkBundle\\FrameworkBundle::class =\u003e ['all' =\u003e true],\n    Budgegeria\\Bundle\\IntlFormatBundle\\BudgegeriaIntlFormatBundle::class =\u003e ['all' =\u003e true],\n    // ...\n];\n```\n\n## Configuration\n\nBy default a configuration doesn't need to be added if the needed locale is `en_US` and `USD` the currency. For any other\nlocale or currency you can add the following configuration to your project and configure the needed locale and currency\nvalues:\n\n``` yaml\nbudgegeria_intl_format:\n  locale: 'de_DE'\n  currency: 'EUR'\n```\n\n## Usage\n\nIntlFormatBundle implements the functionality of [Intl-Format](http://senseexception.github.io/intl-format) and provides\nTwig extensions for using the documented type specifiers of the library.\n\n### Filters\n\nInternationalization text formatting:\n``` twig\n{{ \"This is the %ordinal time that the number %integer appear\"|intl_format(4, 6000) }}\n{# This is the 4th time that the number 6.000 appear #}\n```\n\n### Functions\n\nInternationalization text formatting:\n``` twig\n{{ intl_format(\"This is the %ordinal time that the number %integer appear\", 4, 6000) }}\n{# This is the 4th time that the number 6.000 appear #}\n```\n\nCurrency symbol of configured locale:\n``` twig\n{{ currency_symbol() }}\n{# € #}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsenseexception%2Fintlformatbundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsenseexception%2Fintlformatbundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsenseexception%2Fintlformatbundle/lists"}