Download the PHP package ariyanshipu/laravel-countdown without Composer
On this page you can find all versions of the php package ariyanshipu/laravel-countdown. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ariyanshipu/laravel-countdown
More information about ariyanshipu/laravel-countdown
Files in ariyanshipu/laravel-countdown
Package laravel-countdown
Short Description Laravel Countdown is a simple and powerful Laravel package that allows you to create and manage countdown timers directly within your application. Whether you're launching a product, running a flash sale, or counting down to an event, this package makes it easy to handle time-sensitive logic in your Laravel projects
License MIT
Homepage https://github.com/ariyanshiputech/laravel-countdown
Informations about the package laravel-countdown
Laravel countdown
The ariyanshipu/laravel-countdown
and easy way to get the time difference between two dates, with an extra bonus trait for eloquent.
I needed to get the diffrence of time, and while the very good Carbon gives me helper to retreive difference in time in different time unit (hours, minutes, etc), there is no method to calculate it all at the same time. Carbon's diffForHumans
is pretty close, but there is no control over how it displays information, and what information it displays.
Install
You can install this package via composer:
Usage with Laravel Latest Version
Edit file: bootstrap/providers.php
Edit file: bootstrap/app.php
Usage
Eloquent Trait
Example to use Trait:
Tests
Change log
Please see CHANGELOG for more information on what has changed recently.
Credits
- Ariyan Shipu
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-countdown with dependencies
ext-bcmath Version >=3.8.4
nesbot/carbon Version >=3.8.4
illuminate/support Version >=8.0