kdyby/datetime-provider
Kdyby/DatetimeProvider is a Nette Framework extension that registers a DateTime provider service for obtaining the current date and time. Inject it instead of creating DateTime instances directly, making time-dependent code testable, mockable, and configurable via NEON configuration.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| kdyby/datetime-provider-bundle | 0.86 | A Symfony bundle that integrates kdyby/datetime-provider, giving you DI-managed date/time services so you can inject and control the current time instead of calling new DateTime directly. This makes time-dependent code testable and lets you freeze or mock "now" in your Symfony applications... | 6 | 6 | 1 | 0 | 0 | 0.4 | — | NOASSERTION | 6 years ago | |
| alexeyshockov/clock | 0.84 | — | 2 | 2 | 2 | 0 | 6 | 0.8 | 1.1 | — | — | |
| mateusjunges/laravel-time-helpers | 0.84 | Laravel Time Helpers adds handy date and time utilities to Laravel apps: Carbon macros, timezone conversion, and human-friendly formatting. Replace repetitive, error-prone date logic with clean, readable helpers that keep your code simple. | 38 | — | 2 | — | 0 | 0.3 | — | MIT | 4 years ago | |
| glhd/laravel-timezone-mapper | 0.84 | Laravel Timezone Mapper helps map IANA timezone identifiers to the values your app needs, with a clean Laravel integration and simple API. It makes timezone lookups and display easier in forms, APIs, and user settings. | 47 | 47 | 1 | 38K | 0 | 8.4 | 42.8 | MIT | 7 months ago | |
| healthengine/laravel-chronos | 0.83 | Chronos, from HealthEngine, gives Laravel apps control over the clock: freeze, travel to, or shift time in your application and test suite so date-dependent logic stays deterministic. Ideal for testing scheduled jobs, expiries, and time-sensitive features. | 3 | 3 | 1 | 0 | 0 | 0.0 | — | MIT | 2 years ago | |
| herrera-io/date-interval | 0.83 | Extends PHP’s DateInterval with handy conversions: turn intervals into ISO interval specs and seconds, and recreate intervals from seconds. Useful for normalizing and serializing durations (e.g., P2H <-> 7200). | 15 | 15 | 7 | 189 | 0 | 0.2 | 10.8 | MIT | — | |
| omaralalwi/laravel-time-craft | 0.83 | 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 | |
| innmind/time-continuum | 0.82 | InnMind Time Continuum is a PHP library for modeling time as a continuum of instants and intervals. It offers immutable temporal objects, precise duration arithmetic, comparisons, and conversions for scheduling and time-based domain logic. | 28 | 28 | 1 | 2K | 0 | 2.2 | 18.4 | MIT | 9 months ago | |
| psx/datetime | 0.82 | PSX DateTime is a PHP library for working with dates and times, offering utilities for parsing, formatting, timezone conversion, and date arithmetic. It integrates with the PSX framework and provides a lightweight, object-oriented API for common temporal tasks in PHP applications. | 2 | 2 | 0 | 5K | 0 | 0.0 | 44.3 | Apache-2.0 | — | |
| php-standard-library/date-time | 0.82 | Immutable, timezone-aware date and time types for PHP, with Duration, Period, and Interval support for precise, reliable temporal calculations. | 1 | 1 | 0 | 83K | 0 | 21.4 | 64.8 | MIT | 1 week ago | |
| lcobucci/clock | 0.82 | lcobucci/clock is a lightweight clock abstraction for PHP that decouples code from DateTimeImmutable. Use SystemClock for real time or FrozenClock for tests, making time-dependent logic easy to control and verify. | 799 | 801 | 33 | 7M | 1 | 30.4 | 64.2 | MIT | 5 days ago | |
| sanmai/duoclock | 0.82 | PSR-20 clock abstraction with dual time access (DateTimeImmutable, time(), microtime()) plus mockable sleep/usleep/nanosleep for testing. Includes deterministic TimeSpy and tick helpers to measure elapsed time. Minimal dependency (psr/clock) and easy to mock. | 3 | 3 | 1 | 1M | 0 | 5.2 | 57.1 | Apache-2.0 | 10 months ago | |
| fresh/datetime | 0.82 | Fresh DateTime adds convenient, expressive date and time handling to Laravel and PHP applications. It simplifies parsing, formatting, comparing, and manipulating dates, with timezone-aware helpers and a clean, chainable API for everyday scheduling and timestamp tasks. | 18 | 19 | 3 | 35K | 0 | 5.3 | 46.9 | MIT | 9 months ago | |
| laracraft-tech/laravel-date-scopes | 0.81 | Laravel Date Scopes adds a wide range of ready-made date scopes to your Eloquent models via a simple trait. Query records with ofToday(), ofLastWeek(), monthToDate(), ofLastYear(), and many more—fully chainable with any builder method like sum or avg. | 513 | 514 | 31 | 15K | 0 | 16.6 | 21.8 | MIT | 7 months ago | |
| yohang/calendr | 0.81 | Calendr is an object-oriented PHP calendar library for creating, managing, and rendering calendars and events. It supports recurring events, multiple calendars, and flexible output via renderers, making it easy to integrate scheduling into PHP applications. | 467 | 475 | 66 | 3K | 10 | 8.8 | 16.1 | MIT | 11 months ago | |
| awd-studio/vo-date-time | 0.81 | Immutable PHP 8.3+ date-time value object. Create from strings, compare (equal/greater/less/between), and return new instances for changes like nextDay(), copy(), or modified() with DateTimePeriod offsets (days, minutes, weeks). | 0 | 0 | 0 | 0 | 0 | 0.9 | — | — | 1 year ago | |
| assoconnect/php-date | 0.81 | A lightweight PHP AbsoluteDate object for handling dates without time or timezone concerns. Built on DateTime, it represents a simple calendar day—perfect for birthdays and other timezone-agnostic dates—with easy formatting and timezone-aware creation. | 7 | 7 | 1 | 427 | 0 | 26.1 | 27.9 | MIT | 1 month ago | |
| smirik/php-datetime-ago | 0.81 | A small PHP library that turns timestamps and DateTime objects into human-friendly "time ago" strings like "5 minutes ago" or "2 days ago." Lightweight, no framework required, with configurable formats and simple, localization-friendly output for feeds, comments, and ac... | 22 | 22 | 5 | 1K | 1 | 0.6 | 23.4 | MIT | — | |
| symfony/clock | 0.81 | Decouples your PHP applications from the system clock by injecting a ClockInterface, so you can get the current time, force a timezone, or pause execution with sleep, and swap in a mock clock for testing. | 436 | 436 | 3 | 21M | 0 | 31.6 | 64.6 | MIT | 3 weeks ago | |
| lunetics/timezone-bundle | 0.80 | Symfony bundle that detects a visitor's timezone from their IP address and exposes it through a simple service, with configurable fallbacks for timezone-aware applications. | 26 | 26 | 11 | 2 | 1 | 16.7 | 0.5 | MIT | 2 months ago |
How can I help you explore Laravel packages today?