Recommend this page to a friend! |
Download |
Info | Documentation | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not yet rated by the users | Total: 34 | All time: 11,027 This week: 455 |
Version | License | PHP version | Categories | |||
laravel-readable 1.0.0 | Custom (specified... | 5 | PHP 5, Text processing, Data types |
Description | Author | |
This package can be used to format numbers, dates, times to be human readable. |
Install the latest version using Composer:
$ composer require raggitech/laravel-readable
Readable has the following methods & directives: - ReadableNumber() - ReadableHumanNumber() - ReadableDecimal() - ReadableDate() - ReadableTime() - ReadableDateTime() - ReadableDiffDateTime() - ReadableTimeLength() - ReadableDateTimeLength() - ReadableSize()
<a name="ReadableNumber"></a>
<a name="ReadableHumanNumber"></a>
<a name="ReadableDecimal"></a>
<a name="ReadableDate"></a>
> $date = '24-04-2020' || Carbon Instance
<a name="ReadableTime"></a>
> $time = '15:20:22' || Carbon Instance
<a name="ReadableDateTime"></a>
> $datetime = '24-04-2020 17:20:32' || Carbon Instance
<a name="ReadableDiffDateTime"></a>
> $oldDateTime = '24-04-2020 17:20:32' || Carbon Instance > $newDateTime = '24-04-2020 17:20:32' || Carbon Instance || null (now)
<a name="ReadableTimeLength"></a>
<a name="ReadableDateTimeLength"></a>
> $oldDateTime = '24-04-2020 17:20:32' || Carbon Instance > $newDateTime = '24-04-2020 17:20:32' || Carbon Instance || null (now)
<a name="ReadableSize"></a>
Files (6) |
File | Role | Description | ||
---|---|---|---|---|
src (3 files) | ||||
composer.json | Data | Auxiliary data | ||
LICENSE | Lic. | License text | ||
README.md | Doc. | Documentation |
Files (6) | / | src |
File | Role | Description |
---|---|---|
Helpers.php | Aux. | Auxiliary script |
Readable.php | Class | Class source |
ReadableServiceProvider.php | Class | Class source |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.