All Projects → SenseException → intl-format

SenseException / intl-format

Licence: MIT license
A wrapper library for PHP to format and internationalize values in messages like sprintf

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to intl-format

Eslint Plugin I18n Json
Fully extendable eslint plugin for JSON i18n translation files.
Stars: ✭ 101 (+741.67%)
Mutual labels:  internationalization, icu, intl
Eo Locale
🌏Internationalize js apps 👔Elegant lightweight library based on Internationalization API
Stars: ✭ 290 (+2316.67%)
Mutual labels:  internationalization, icu, intl
Js Lingui
🌍📖 A readable, automated, and optimized (5 kb) internationalization for JavaScript
Stars: ✭ 3,249 (+26975%)
Mutual labels:  internationalization, icu, intl
nordnet-component-kit
Nordnet Component Kit - https://nordnet.github.io/nordnet-component-kit
Stars: ✭ 12 (+0%)
Mutual labels:  formatter, intl
Arbify
ARB files localization tool. Dedicated to Flutter and its intl package.
Stars: ✭ 168 (+1300%)
Mutual labels:  internationalization, intl
Formatjs
The monorepo home to all of the FormatJS related libraries, most notably react-intl.
Stars: ✭ 12,869 (+107141.67%)
Mutual labels:  internationalization, intl
Goloc
A flexible tool for application localization using Google Sheets.
Stars: ✭ 42 (+250%)
Mutual labels:  internationalization, intl
Moment.php
Parse, validate, manipulate, and display dates in PHP w/ i18n support. Inspired by moment.js
Stars: ✭ 900 (+7400%)
Mutual labels:  formatter, internationalization
Globalize
A JavaScript library for internationalization and localization that leverages the official Unicode CLDR JSON data
Stars: ✭ 4,612 (+38333.33%)
Mutual labels:  formatter, intl
Javascript Number Formatter
Lightweight & Fast JavaScript Number Formatter
Stars: ✭ 119 (+891.67%)
Mutual labels:  formatter, internationalization
iXn
Control your localization of apps
Stars: ✭ 20 (+66.67%)
Mutual labels:  internationalization, intl
Jquery.ime
jQuery based input methods library
Stars: ✭ 145 (+1108.33%)
Mutual labels:  internationalization, intl
ISO8601
🎗 Super lightweight ISO8601 Date Formatter in Swift
Stars: ✭ 20 (+66.67%)
Mutual labels:  formatter, timezone
detect-browser-language
Detect browser language
Stars: ✭ 35 (+191.67%)
Mutual labels:  internationalization, intl
Laravel Intl
🚫 [ABANDONED] Easy to use internationalization/localization functions for Laravel 5
Stars: ✭ 185 (+1441.67%)
Mutual labels:  internationalization, intl
Aura.intl
Internationalization tools, particularly message translation.
Stars: ✭ 82 (+583.33%)
Mutual labels:  internationalization, intl
Translatedjs
Internationalization and localization for JavaScript and Node.js
Stars: ✭ 17 (+41.67%)
Mutual labels:  formatter, internationalization
vue-translated
Internationalization (i18n) and localization (l10n) library for Vue.js v2.
Stars: ✭ 19 (+58.33%)
Mutual labels:  formatter, internationalization
Fluent
Fluent — planning, spec and documentation
Stars: ✭ 818 (+6716.67%)
Mutual labels:  internationalization, intl
arbify flutter
Flutter package providing Arbify support.
Stars: ✭ 18 (+50%)
Mutual labels:  internationalization, intl

Intl-Format

A wrapper library for PHP to format and internationalize values in messages like sprintf

Latest Stable Version PHP from Packagist Tests Static Analysis Scrutinizer Code Quality Code Coverage License

Why using this library?

Internationalisation is a very important matter when a PHP project covers more than just one country. Every country has its own format for numbers, date or time. The Intl component offers functionality to handle all the formats you need, but not always in a simple way.

This library formats messages using the Intl component of PHP and offers a sprintf-like API.

Example:

echo $intlFormat->format('Today\'s number is %number', 1000.3);
// echo "Today's number is 1'000,3" in case of locale de_CH
// echo "Today's number is 1,000.3" in case of locale en_US

It is also easy extensible with your own custom formats.

Does it affect GDPR somehow?

Intl-Format itself uses the given data (e.g. timezone, locale) only for formatting purposes with the help of the PHP Intl extension.

Installation

You can install this with Composer.

composer require senseexception/intl-format

Documentation

Read more about this library in the documentation.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].