SkillAgentSearch skills...

Formatphp

🌍 Internationalize PHP apps. This library provides an API to format dates, numbers, and strings, including pluralization and handling translations.

Install / Use

/learn @Skillshare/Formatphp

README

<p align="center"> <img src="./docs/skillshare-logo.svg" alt="Skillshare" width="100" /> </p> <h1 align="center">FormatPHP</h1> <p align="center"> <a href="https://github.com/skillshare/formatphp"><img src="http://img.shields.io/badge/source-skillshare/formatphp-blue.svg?style=flat-square" alt="Source Code"></a> <a href="https://packagist.org/packages/skillshare/formatphp"><img src="https://img.shields.io/packagist/v/skillshare/formatphp.svg?style=flat-square&label=release" alt="Download Package"></a> <a href="https://php.net"><img src="https://img.shields.io/packagist/php-v/skillshare/formatphp.svg?style=flat-square&colorB=%238892BF" alt="PHP Programming Language"></a> <a href="https://github.com/skillshare/formatphp/blob/main/LICENSE"><img src="https://img.shields.io/packagist/l/skillshare/formatphp.svg?style=flat-square&colorB=darkcyan" alt="Read License"></a> <a href="https://github.com/skillshare/formatphp/actions/workflows/continuous-integration.yml"><img src="https://img.shields.io/github/actions/workflow/status/skillshare/formatphp/continuous-integration.yml?branch=main&style=flat-square&logo=github" alt="Build Status"></a> <a href="https://codecov.io/gh/skillshare/formatphp"><img src="https://img.shields.io/codecov/c/gh/skillshare/formatphp?label=codecov&logo=codecov&style=flat-square" alt="Codecov Code Coverage"></a> <a href="https://shepherd.dev/github/skillshare/formatphp"><img src="https://img.shields.io/endpoint?style=flat-square&url=https%3A%2F%2Fshepherd.dev%2Fgithub%2Fskillshare%2Fformatphp%2Fcoverage" alt="Psalm Type Coverage"></a> </p> <p align="center"> <strong>A library to help internationalize PHP apps.</strong> <br /> <sub>Made with ❤️ by <a href="https://skillshare.com">Skillshare Engineering</a></sub> </p>

About

Inspired by FormatJS and ECMAScript 2023 Internationalization API (ECMA-402), this library 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.

This project adheres to a code of conduct. By participating in this project and its community, you are expected to uphold this code.

Installation

Install this package as a dependency using Composer.

composer require skillshare/formatphp

Usage

For usage details and examples, see the full documentation at docs.formatphp.dev.

Contributing

Contributions are welcome! To contribute, please familiarize yourself with CONTRIBUTING.md.

Coordinated Disclosure

Keeping user information safe and secure is a top priority, and we welcome the contribution of external security researchers. If you believe you've found a security issue in software that is maintained in this repository, please read SECURITY.md for instructions on submitting a vulnerability report.

Copyright and License

The skillshare/formatphp library is copyright © Skillshare, Inc. and licensed for use under the terms of the MIT License (MIT). Please see LICENSE for more information.

Related Skills

View on GitHub
GitHub Stars80
CategoryDevelopment
Updated3mo ago
Forks6

Languages

PHP

Security Score

97/100

Audited on Jan 3, 2026

No findings