pharaonic/laravel-readable

Laravel - Readable Number (Integer|decimal) & DateTime & Time Length & File Size.

1.0.5 2022-02-14 09:56 UTC

This package is auto-updated.

Last update: 2024-12-06 15:06:18 UTC


README

PHP Version : >= 7.2 Laravel Version : >= 6.0 License Tests
Source Packagist Version Packagist Downloads

Readable provides a quick and easy functions & blade directives.


  • Number. (1,020,304,050,607,080)
  • NumberToString. ( seven thousand seven hundred twenty-one ) {PHP Extension intl}
  • HumanNumber. ( 77K || 77.4K || 77.37K )
  • Decimal. ( 60,708.547 )
  • DecInt. ( 70.00 => 70 || 70.07 )
  • Date. ( 24 April 2020 )
  • Time. ( 15:20 || 15:20:22 || 03:20 PM || 03:20:22 PM )
  • DateTime. ( Friday, April 24, 2020 05:20 PM )
  • DateTime Difference. ( 27 years before )
  • Time Length. ( 4 years 7 months 1 week 3 days 9 hours 50 minutes 10 seconds )
  • Short Time Length. ( 4y 7m 1w 3d 9h 50m 10s )
  • DateTime Length. ( 27 years - 1 week - 7 minutes - 7 seconds before )
  • File Size. ( 70 GB )

Documentation

You can find the detailed documentation here in Laravel Readable Documentation.

Contributing

Thank you for considering contributing to this package! Be one of Pharaonic team.

License

This package is an open-sourced software licensed under the MIT license.