binota/laravel-php-duration

A wrapper of kevinkhill/php-duration

This package's canonical repository appears to be gone and the package has been frozen as a result. Email us for help if needed.

Maintainers

👁 binota

Package info

github.com/BinotaLIU/laravel-php-duration

pkg:composer/binota/laravel-php-duration

Statistics

Installs: 1 979

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

1.0.5 2018-04-27 14:19 UTC

Requires

Requires (Dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT fdb18f44942765fc720fb013a7bea64b9a0d3984

  • BinotaLIU <binota.woop@binota.org>

timeconvertdurationseconds

This package is not auto-updated.

Last update: 2019-07-27 18:42:51 UTC


README

This package is a wrapper of kevinkhill/php-duration. It provides Facade and Service Provider for Laravel Framework

Installation

Simply use composer:

 composer require binota/laravel-php-duration

Add service provider in config/app.php:

'providers' => [
 // ....

 Binota\LaravelPhpDuration\DurationServiceProvider::class,
],

Add alia for facade:

'alias' => [
 // ....

 Binota\LaravelPhpDuration\Facades\Duration::class,
]

Usage

See kevinkhill/php-duration