skillshare / formatphp
Internationalize PHP apps. This library provides an API to format dates, numbers, and strings, including pluralization and handling translations.
Installs: 16 920
Dependents: 0
Suggesters: 0
Security: 0
Stars: 75
Watchers: 28
Forks: 5
Open Issues: 3
Requires
- php: ^7.4 || ^8
- ext-intl: *
- ext-json: *
- ext-mbstring: *
- myclabs/php-enum: ^1.8.4
- nikic/php-parser: ^4.13
- psr/log: ^1 || ^2
- ramsey/collection: ^1.2
- symfony/console: ^5.3 || ^6.0
- symfony/polyfill-php80: ^1.23
- symfony/process: ^5 || ^6.0
- webmozart/glob: ^4.4
Requires (Dev)
- captainhook/captainhook: ^5.10
- captainhook/plugin-composer: ^5.3
- ergebnis/composer-normalize: ^2.25
- hamcrest/hamcrest-php: ^2.0
- mdwheele/zalgo: ^0.3.1
- mockery/mockery: ^1.6.6
- myclabs/deep-copy: ^1.11
- php-parallel-lint/php-console-highlighter: ^1.0
- php-parallel-lint/php-parallel-lint: ^1.3
- phpstan/extension-installer: ^1.1
- phpstan/phpstan: ^1.10.30
- phpstan/phpstan-mockery: ^1.0
- phpstan/phpstan-phpunit: ^1.1
- phpunit/phpunit: ^9.0
- psalm/plugin-mockery: ^1.1
- psalm/plugin-phpunit: ^0.18.4
- ramsey/coding-standard: ^2.0.3
- ramsey/composer-repl: ^1.4
- ramsey/conventional-commits: ^1.3
- roave/security-advisories: dev-latest
- spatie/phpunit-snapshot-assertions: ^4.2
- vimeo/psalm: ^5.15
Suggests
- mdwheele/zalgo: Zalgo commands you install mdwheele/zalgo for Zalgo pseudo-locale support!
README
FormatPHP
A library to help internationalize PHP apps.
Made with ❤️ by Skillshare Engineering
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.