Giter Club home page Giter Club logo

intl-format's Introduction

Intl-Format

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

Latest Stable Version PHP from Packagist Build Status 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.

intl-format's People

Contributors

senseexception avatar heiglandreas avatar peter279k avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.