laravel-formatters

«‎Formatter» pattern for Laravel

MIT License

Downloads
44.7K
Stars
89
Committers
4
laravel-formatters - v4.1.1

Published by michael-rubel over 2 years ago

Maintenance release

  • Avoiding further problems with passing null to native string functions like mb_strtoupper

Full Changelog: https://github.com/michael-rubel/laravel-formatters/compare/4.1.0...4.1.1

laravel-formatters - v4.1.0

Published by michael-rubel over 2 years ago

laravel-formatters - v4.0.1

Published by michael-rubel over 2 years ago

What's changed

  • Removed the LEC provider registering (no longer necessary).

Full Changelog: https://github.com/michael-rubel/laravel-formatters/compare/4.0.0...4.0.1

laravel-formatters - v4.0.0

Published by michael-rubel over 2 years ago

What's changed

  • The package was refactored to make it maintainable.
  • format helper now supports variadic parameters:
format(DateTimeFormatter::class, now(), 'UTC', 'Y-m-d H:i:s');

Full Changelog: https://github.com/michael-rubel/laravel-formatters/compare/3.3.3...4.0.0

laravel-formatters - v3.3.3

Published by michael-rubel over 2 years ago

Changed

  • Cleaned up unused conditions.
laravel-formatters - v3.3.2

Published by michael-rubel over 2 years ago

laravel-formatters - v3.3.1

Published by michael-rubel over 2 years ago

Changed

  • Hotfix for variadic dependency in format helper (this feature will land in the next major release to prevent breaking changes).
laravel-formatters - v3.3.0

Published by michael-rubel over 2 years ago

Added

  • Variadic parameters in format helper.
  • Added possibility to set timezone in Date/DateTime formatters.

Changed

  • Date/DateTime formatters now contain class properties for datetime and timezone parameters.
  • TaxNumber/LocaleNumber formatters are slightly modified to handle variadic parameters from collection.
laravel-formatters - v3.2.2

Published by michael-rubel over 2 years ago

Changed

  • Applied code quality recommendations from the latest Larastan.
  • Fixed typecast issue with first collection parameter.
laravel-formatters - v3.2.0

Published by michael-rubel over 2 years ago

laravel-formatters - v3.1.0

Published by michael-rubel over 2 years ago

Added

laravel-formatters - v3.0.0

Published by michael-rubel almost 3 years ago

Added

  • Laravel 9 support.
laravel-formatters - v2.1.1

Published by michael-rubel almost 3 years ago

Fixed

  • Registering container bindings for app formatters.
laravel-formatters - v2.1.0

Published by michael-rubel almost 3 years ago

Added

Changed

  • Required version of Laravel is now 8.69.
laravel-formatters - v2.0.0

Published by michael-rubel almost 3 years ago

Added

  • PHP 8.1 support.

The version is considered major since composer.json now requires Laravel ^8.67. If someone's still on the lower version and cannot upgrade to the new one, you can stick with 1.x version until possible to upgrade.

laravel-formatters - v1.2.7

Published by michael-rubel almost 3 years ago

Changed

  • Applied code quality recommendations from Larastan ^1.0
  • Added .editorconfig to standardize spacing across IDEs (#5)

Contributors

  • @khalyomede
laravel-formatters - v1.2.6

Published by michael-rubel almost 3 years ago

Changed

  • Default case in the service provider is now kebab.
laravel-formatters - v1.2.5

Published by michael-rubel almost 3 years ago

Fixed

  • Cast in LocaleNumberFormatter.
laravel-formatters - v1.2.4

Published by michael-rubel almost 3 years ago

Changed

  • LocaleNumberFormatter is now trying to get the first element from the collection if number isn't passed.
laravel-formatters - v1.2.3

Published by michael-rubel almost 3 years ago

Changed

  • $items in format() helper is now mixed to allow passing any type.
Package Rankings
Top 5.43% on Packagist.org
Badges
Extracted from project README
Latest Version on Packagist Total Downloads Code Quality Code Coverage GitHub Tests Action Status PHPStan