spatie/period
Immutable date period objects for PHP with powerful comparison tools. Create periods from any DateTime (including Carbon), then calculate overlaps, gaps, intersections, differences, containment, and other complex comparisons across two or many periods.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| spatie/test-time | 0.88 | Control time in tests with Spatie TestTime—freeze or advance Carbon-based timestamps dynamically for time-sensitive assertions. Simplify testing date-dependent logic by manually adjusting time without altering real-world clocks. Works seamlessly with Carbon’s methods like addYear(), subDay(), or cus... | 208 | 208 | 9 | 245K | 0 | 5.2 | 42.4 | MIT | 2 years ago | |
| spatie/laravel-data | 0.86 | Spatie Laravel Data lets you define rich data objects once and reuse them as form requests, API transformers, and TypeScript definitions. It supports automatic validation, resource transformation, lazy properties, and constructing objects from request data. | 1,801 | 1,815 | 293 | 4M | 6 | 51.4 | 63.7 | MIT | 1 week ago | |
| omaralalwi/laravel-time-craft | 0.85 | Laravel Time Craft adds Eloquent date scopes (today, yesterday, this week, last N days) plus readable date accessors and formatting helpers to any model, with customizable date fields and timezone-aware querying. | 13 | 12 | 3 | 532 | 0 | 15.6 | 24.7 | MIT | 3 months ago | |
| apie/date-value-objects | 0.84 | Date-related value objects for PHP/Apie that model only the date/time parts you need (LocalDate, Time, HourAndMinutes, UnixTimestamp, DateWithTimezone). Helps validate expected formats without relying on full DateTimeImmutable. | 0 | 0 | 0 | 12 | 0 | 0.0 | 15.4 | MIT | — | |
| fisharebest/ext-calendar | 0.84 | A pure-PHP implementation of PHP's calendar extension, providing cal_* functions and conversions between Julian day counts and Gregorian, Julian, Jewish, and French Republican calendars. Useful as a polyfill when ext-calendar is unavailable. | 31 | — | 7 | — | 2 | 1.0 | 0.8 | GPL-3.0 | — |
|
| spatie/laravel-stats | 0.84 | Lightweight Laravel package that summarizes database changes over time. Define a stats class, call increase() or decrease() as events happen, then query totals grouped by day, week, or month, returning increments, decrements, and net differences for each period. | 451 | 454 | 35 | 17K | 0 | 16.2 | 23.7 | MIT | 6 months ago | |
| spatie/laravel-dashboard-calendar-tile | 0.84 | Display upcoming Google Calendar events on a tile for Spatie’s Laravel Dashboard. Fetch and show your calendar schedule at a glance, ideal for wall displays and team dashboards, with simple setup and integration into the dashboard layout. | 8 | 9 | 9 | 1K | 0 | 12.7 | 30.7 | MIT | 7 months ago | |
| spatie/laravel-google-calendar | 0.84 | Laravel package to manage Google Calendar events with a clean API. Create, update, delete, and fetch events, add attendees and Google Meet links, and work with Carbon date/times. Uses Google service account credentials for authenticated access. | 1,399 | 1,423 | 221 | 131K | 0 | 28.8 | 28.7 | MIT | 8 months ago | |
| camroncade/timezone | 0.84 | Laravel package for working with timezones. It provides curated timezone identifier lists, select-menu helpers, and validation support, making it easy to build timezone pickers and user settings without maintaining your own arrays. Includes offset helpers for timezone-aware forms. | 159 | — | 37 | — | 10 | 5.0 | 4.2 | MIT | 7 years ago |
|
| spatie/google-time-zone | 0.84 | Convert GPS coordinates to time zone data using Google's Time Zone service. Get DST offset, raw offset, time zone ID, and time zone name from latitude and longitude. Works in plain PHP and Laravel projects, with a publishable config for your Google Maps API key and language setting. | 110 | 112 | 16 | 34K | 0 | 23.7 | 39.9 | MIT | 4 weeks ago | |
| spatie/laravel-dashboard-time-weather-tile | 0.83 | A Laravel Dashboard tile that displays the current time and weather together in one widget. Install it via Composer and add it to your dashboard config. Documentation lives on the Spatie dashboard docs site. | 11 | 12 | 7 | 663 | 0 | 13.9 | 26.2 | MIT | 6 months ago | |
| spatie/laravel-sluggable | 0.83 | Generate unique slugs for Eloquent models on create or update via a Sluggable attribute or HasSlug trait. Includes collision suffixes, translatable slugs, and self-healing URLs with 308 redirects. | 1,560 | 1,586 | 190 | 867K | 0 | 43.5 | 44.5 | MIT | 1 week ago | |
| mpratt/relativetime | 0.83 | A lightweight PHP library for converting timestamps and DateTime objects into human-readable relative time strings like "5 minutes ago" or "in 2 days", with localization support and simple integration into Laravel or any PHP project. | 31 | — | 14 | — | 0 | 0.6 | — | MIT | — |
|
| frequence-web/calendr-bundle | 0.83 | A Symfony bundle that integrates the Calendr calendar library into your application, offering ready-made services, configuration, and Twig helpers so you can build, render, and manage calendars and events with minimal setup. | 23 | 24 | 8 | 178 | 1 | 0.8 | 13.5 | — | — | |
| spatie/pest-plugin-test-time | 0.83 | A Pest plugin for controlling time in tests. Freeze or advance Carbon’s current time with testTime()->freeze() and addMinute(), and use the toBeCarbon expectation to assert Carbon date and time values clearly. | 51 | 51 | 7 | 64K | 0 | 18.1 | 48.2 | MIT | 3 months ago | |
| cmixin/enhanced-period | 0.83 | Enhanced Period extends CarbonPeriod with a richer API for working with date and time ranges in PHP. It adds methods for checking containment and overlap, intersecting, merging, splitting, filtering, mapping, and formatting periods, making complex interval logic simpler and more expressive. | 19 | 19 | 3 | 3K | 0 | 0.2 | 29.4 | MIT | 3 years ago | |
| jimmiw/php-time-ago | 0.83 | A lightweight PHP library that turns timestamps into human-readable "time ago" strings such as "3 hours ago" or "just now". Includes translations for many languages, handles future dates, and drops easily into any PHP or Laravel project. | 257 | — | 92 | — | 0 | 4.1 | — | — | 4 years ago |
|
| spatie/fractalistic | 0.83 | Developer-friendly wrapper around League Fractal to transform API data with less boilerplate. Build resources, apply transformers, includes, and output arrays with a fluent API or one-liner syntax. Great for PHP projects; Laravel users may prefer laravel-fractal. | 383 | 385 | 32 | 429K | 0 | 17.2 | 44.3 | MIT | 8 months ago | |
| alexeyshockov/clock | 0.82 | — | 2 | 2 | 2 | 0 | 6 | 0.8 | 1.1 | — | — | |
| spatie/laravel-short-schedule | 0.82 | Schedule Artisan commands at sub-minute frequencies—every second or half-second—using a long-running ReactPHP event loop kept separate from Laravel's native scheduler, so short tasks never delay your regular schedule. | 659 | 664 | 53 | 21K | 0 | 19.9 | 22.5 | MIT | 7 months ago |
How can I help you explore Laravel packages today?