PHPackages                             saifuldev/get-date-difference - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. saifuldev/get-date-difference

ActiveLibrary[Framework](/categories/framework)

saifuldev/get-date-difference
=============================

A package to calculate date differences.

v1.0.0(1y ago)05MITPHPPHP ^8.1

Since Aug 17Pushed 1y ago1 watchersCompare

[ Source](https://github.com/saifulislam07/get-date-difference)[ Packagist](https://packagist.org/packages/saifuldev/get-date-difference)[ RSS](/packages/saifuldev-get-date-difference/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (11)Versions (2)Used By (0)

The getDateDifference function calculates the time difference between the current date and a specified date, returning the difference in a human-readable format. The output is dynamically adjusted to display the difference in seconds, minutes, hours, days, weeks, months, or years, depending on the magnitude of the difference.

1. Install the Package : composer require saifuldev/get-date-difference
2. Use the Package in Your Laravel Application Step 2.1: Import the class and use it in your Laravel code. Here’s an example of how you might call the calculateDifference method in a controller:

[![image](https://private-user-images.githubusercontent.com/46101909/358799014-8dd43f40-b86f-423a-8960-0e634caa42cd.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzUxOTY0ODgsIm5iZiI6MTc3NTE5NjE4OCwicGF0aCI6Ii80NjEwMTkwOS8zNTg3OTkwMTQtOGRkNDNmNDAtYjg2Zi00MjNhLTg5NjAtMGU2MzRjYWE0MmNkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA0MDMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwNDAzVDA2MDMwOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTNlMjc2OWE0YzUxN2FiNTEwN2I4YmY5ZTU0YjRmN2E5ZjExZTUxMTVhN2UyM2FmN2Q3YTNhNGM1YmQ4NmI4YjkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.tSU9LeR2YykFekftiiXQ7Njl0f8huzklykYB2WFSOTU)](https://private-user-images.githubusercontent.com/46101909/358799014-8dd43f40-b86f-423a-8960-0e634caa42cd.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzUxOTY0ODgsIm5iZiI6MTc3NTE5NjE4OCwicGF0aCI6Ii80NjEwMTkwOS8zNTg3OTkwMTQtOGRkNDNmNDAtYjg2Zi00MjNhLTg5NjAtMGU2MzRjYWE0MmNkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA0MDMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwNDAzVDA2MDMwOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTNlMjc2OWE0YzUxN2FiNTEwN2I4YmY5ZTU0YjRmN2E5ZjExZTUxMTVhN2UyM2FmN2Q3YTNhNGM1YmQ4NmI4YjkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.tSU9LeR2YykFekftiiXQ7Njl0f8huzklykYB2WFSOTU)

3. Register the Service Provider (if applicable) If your package includes a service provider and you want to use it, register it in the config/app.php file under the providers array.

- Saifuldev\\GetDateDifference\\GetDateDifferenceServiceProvider::class,

use App\\Http\\Controllers\\DateController;

Route::get('/date-difference', \[DateController::class, 'showDifference'\]);

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

631d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ddd45723fe31bbdf53246de666a89c63379be3b14de1f25627c975815c563d00?d=identicon)[saifulislam07](/maintainers/saifulislam07)

---

Top Contributors

[![saifulislam07](https://avatars.githubusercontent.com/u/46101909?v=4)](https://github.com/saifulislam07 "saifulislam07 (9 commits)")

---

Tags

frameworklaravel

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/saifuldev-get-date-difference/health.svg)

```
[![Health](https://phpackages.com/badges/saifuldev-get-date-difference/health.svg)](https://phpackages.com/packages/saifuldev-get-date-difference)
```

###  Alternatives

[bagisto/bagisto

Bagisto Laravel E-Commerce

26.2k161.6k7](/packages/bagisto-bagisto)[krayin/laravel-crm

Krayin CRM

22.0k32.8k1](/packages/krayin-laravel-crm)[unopim/unopim

UnoPim Laravel PIM

9.4k1.8k](/packages/unopim-unopim)[juzaweb/cms

Juzaweb CMS is a Content Management System (CMS) developed based on Laravel Framework and web platform whose sole purpose is to make your development workflow simple again. Project develop by Juzaweb

187571.2k](/packages/juzaweb-cms)[codewithdennis/larament

Larament is a time-saving starter kit to quickly launch Laravel 13.x projects. It includes FilamentPHP 5.x pre-installed and configured, along with additional tools and features to streamline your development workflow.

3691.5k](/packages/codewithdennis-larament)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
