PHPackages                             lastdragon-ru/lara-asp-formatter - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. lastdragon-ru/lara-asp-formatter

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

lastdragon-ru/lara-asp-formatter
================================

Provides a customizable wrapper around Intl formatters to use it inside Laravel application. And also allows defining your own formats.

10.3.0(2mo ago)08.0k1MITPHPPHP ^8.3|^8.4

Since Jan 19Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/LastDragon-ru/lara-asp-formatter)[ Packagist](https://packagist.org/packages/lastdragon-ru/lara-asp-formatter)[ Docs](https://github.com/LastDragon-ru/php-packages)[ RSS](/packages/lastdragon-ru-lara-asp-formatter/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (18)Versions (84)Used By (1)

(Laravel) Intl Formatter
========================

[](#laravel-intl-formatter)

This package provides a customizable wrapper around [Intl](https://www.php.net/manual/en/book.intl) formatters to use it inside Laravel application. And also allows defining your own formats.

Requirements
============

[](#requirements)

RequirementConstraintSupported byPHP`^8.5``HEAD``^8.4``HEAD ⋯ 8.0.0``^8.3``10.3.0 ⋯ 5.0.0``^8.2``7.2.0 ⋯ 2.0.0``^8.1``6.4.2 ⋯ 2.0.0``^8.0``4.6.0 ⋯ 2.0.0``^8.0.0``1.1.2 ⋯ 0.12.0``>=8.0.0``0.11.0 ⋯ 0.4.0``>=7.4.0``0.3.0 ⋯ 0.1.0`Laravel`^12.0.1``HEAD ⋯ 9.0.0``^11.0.8``8.1.1 ⋯ 8.0.0``^11.0.0``7.2.0 ⋯ 6.2.0``^10.34.0``7.2.0 ⋯ 6.2.0``^10.0.0``6.1.0 ⋯ 2.1.0``^9.21.0``5.6.0 ⋯ 5.0.0-beta.1``^9.0.0``5.0.0-beta.0 ⋯ 0.12.0``^8.22.1``3.0.0 ⋯ 0.2.0``^8.0``0.1.0`Installation
============

[](#installation)

```
composer require lastdragon-ru/lara-asp-formatter
```

Configuration
=============

[](#configuration)

Config can be used to customize formats. Before this, you need to publish it via the following command, and then you can edit `config/lara-asp-formatter.php`.

```
php artisan vendor:publish --provider=LastDragon_ru\\LaraASP\\Formatter\\PackageProvider --tag=config
```

Usage
=====

[](#usage)

Note

The resolved formats are cached, thus run-time changes in the configuration will not be applied. You can `clone` the formatter instance to reset the internal cache.

The [`Formatter`](src/Formatter.php "\LastDragon_ru\LaraASP\Formatter\Formatter") is very simple to use. Please also check [`Formatter`](src/Formatter.php "\LastDragon_ru\LaraASP\Formatter\Formatter") to see built-in formats 🤗

```
