| Recommend this page to a friend! |
| Info | Documentation | Reputation | Support forum | Blog | Links |
| Ratings | Unique User Downloads | Download Rankings | ||||
| Not yet rated by the users | Total: 34 | All time: 11,063 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>
| File | Role | Description | ||
|---|---|---|---|---|
| Data | Auxiliary data | |||
| Lic. | License text | |||
| Doc. | Documentation | |||
| / | src |
| File | Role | Description |
|---|---|---|
| |
Aux. | Auxiliary script |
| |
Class | Class source |
| |
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. |
| 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.