GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • FormatPHP
  • Getting Started
  • Formatting Strings
  • Formatting Messages
  • Formatting Dates & Times
  • Formatting Numbers & Currency
  • Formatting Display Names
  • Extracting & Loading Strings
  • TMS Support
  • Reference
  • Intl\DateTimeFormatOptions
  • Intl\DisplayNamesOptions
  • Intl\NumberFormatOptions
  • Copyright

This view

  • Original page
  • New address

GeezerVison is showing docs.formatphp.dev — FormatPHP Manual — FormatPHP stable Manual

FormatPHP Manual

For skillshare/formatphp stable. Updated on 2023-08-23.

This work is licensed under the Creative Commons Attribution 4.0 International license.

Welcome!

Inspired by FormatJS and ECMAScript 2023 Internationalization API (ECMA-402), FormatPHP provides an API to format dates, numbers, and strings, including pluralization and translation. FormatPHP is powered by PHP’s intl extension and integrates with Unicode CLDR and ICU Message syntax standards. It requires libicu version 69.1 or higher.

Contents

  • Getting Started
    • Requirements
    • Install With Composer
    • Using FormatPHP
  • Formatting Strings
    • Formatting Messages
    • Formatting Dates & Times
    • Formatting Numbers & Currency
    • Formatting Display Names
  • Extracting & Loading Strings
    • Using the Console Command To Extract Messages
    • Using MessageLoader to Load Messages
    • Testing With Pseudo Locales
  • TMS Support
    • Custom Formatters
  • Reference
    • Intl\DateTimeFormatOptions
    • Intl\DisplayNamesOptions
    • Intl\NumberFormatOptions
  • Copyright

Indices and Tables

  • Index

  • Search Page

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.