psr/clock
PSR-20 Clock interface for PHP. Defines ClockInterface::now() returning DateTimeImmutable, enabling dependency injection of time sources and easy testing. This package provides only the interface; use or create an implementation.
|
Package
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|
| 3brs/enterprise-security-bundle | — | 0 | 0 | 0 | 89 | 0 | 21.5 | 26.2 | MIT | 4 weeks ago | |
| 4lxndr/cron-bundle | — | 0 | 1 | 0 | 24 | 0 | 12.5 | 21.3 | MIT | 6 months ago | |
| amashukov/blockchain-context-bundle | — | 0 | 0 | 0 | 0 | 0 | 0.0 | — | MIT | — | |
| amashukov/eth-rpc-client-php | — | 0 | 0 | 0 | 6 | 0 | 0.0 | 11.7 | MIT | — | |
| amashukov/lnd-client-php | — | 0 | 0 | 0 | 117 | 0 | 0.0 | 28.6 | MIT | — | |
| applogger/sdk-core | — | 0 | 0 | 0 | 135 | 0 | 17.2 | 33.8 | MIT | 2 months ago | |
| atlance/jwt-core | — | 0 | 0 | 0 | 0 | 0 | 0.0 | — | MIT | — | |
| b2pweb/bdf-prime | — | 3 | 3 | 0 | 527 | 0 | 0.3 | 29.7 | MIT | — | |
| beste/clock | beste/clock is a lightweight PHP clock implementation for time-dependent code. It provides a simple, test-friendly way to obtain the current time, swap in fixed or mock clocks, and improve determinism across your application and automated tests. | 75 | 75 | 1 | 1M | 0 | 23.0 | 64.9 | MIT | 4 weeks ago | |
| beste/in-memory-cache | PSR-6 in-memory cache for PHP, ideal as a default cache or for tests. Lightweight CacheItemPool implementation with support for expiration and optional PSR-20 clock injection (e.g., frozen clocks) to control time in tests. | 26 | 26 | 0 | 1M | 0 | 22.4 | 64.9 | MIT | 1 month ago | |
| bizkit/symfony-circuit-breaker-bundle | — | 1 | 1 | 0 | 0 | 0 | 0.0 | — | MIT | — | |
| borsche/elasticsearch-audit-bundle | — | 0 | 0 | 0 | 3 | 0 | 22.1 | 9.8 | MIT | 3 weeks ago | |
| boson-php/globals-provider | Laravel package that exposes PHP superglobals and environment values through a service provider, offering a consistent way to access and share request/runtime globals across your app, with simple configuration and container bindings for easier testing. | 0 | 0 | 0 | 4 | 0 | 0.0 | 9.7 | MIT | — | |
| cakephp/chronos | Chronos provides immutable date/time objects for PHP, helping prevent accidental mutations and side effects. Includes ChronosDate for calendar dates fixed at 00:00:00, plus convenient APIs inspired by Carbon but no longer extending DateTime. | 1,362 | 1,369 | 70 | 824K | 2 | 31.7 | 42.9 | MIT | 5 months ago | |
| coolms/core-bundle | — | 0 | — | 0 | — | 0 | 0.1 | — | MIT | — | |
| coolms/core-doctrine | — | 0 | — | 0 | — | 0 | 0.1 | — | MIT | — | |
| coolms/core-module | — | 0 | — | 0 | — | 0 | 0.1 | — | MIT | — | |
| crell/planedo-bundle | — | 1 | 1 | 2 | 0 | 0 | 0.1 | — | AGPL-3.0 | — | |
| danilovl/entity-traits-bundle | — | 0 | 0 | 0 | 0 | 0 | 14.4 | — | MIT | 4 months ago | |
| drenso/symfony-oidc-bundle | — | 97 | 97 | 40 | 41K | 5 | 23.9 | 43.5 | Apache-2.0 | 3 months ago | |
| drenso/symfony-shared | — | 1 | 1 | 0 | 354 | 0 | 0.0 | 31.1 | — | — | |
| ecotone/ecotone | Ecotone is an attribute-driven PHP architecture layer for commands, queries, events, async messaging, and integration patterns. Start simple with #[CommandHandler], then scale to sagas, outbox, event sourcing, and distributed messaging without rewrites. | 570 | 571 | 24 | 15K | 0 | 3.6 | 17.6 | NOASSERTION | — | |
| eventsauce/clock | Simple clock abstraction for PHP. Use SystemClock in production and TestClock in tests to control time deterministically. Get now() as DateTimeImmutable, access timeZone(), move time forward, tick to system time, or fixate to a specific moment. | 3 | 3 | 2 | 44K | 0 | 0.1 | 55.3 | — | — | |
| eventsauce/eventsauce | EventSauce is an opinionated, no-nonsense PHP library for introducing event sourcing. Choose storage and queueing mechanisms to fit your needs, with supporting test tooling built for an event-sourcing workflow. Docs: eventsauce.io/docs | 870 | 867 | 84 | 43K | 5 | 9.3 | 27.6 | MIT | — | |
| facile-it/php-jose-verifier | Validate and verify JWTs (JOSE) with builder-based verifiers geared for OAuth2/OpenID Connect. Create verifiers from issuer metadata (issuer, jwks_uri) and client metadata (client_id/secret), with optional JWK sets for decryption; ext-gmp recommended for speed. | 5 | 5 | 6 | 34K | 0 | 19.3 | 59.1 | — | 3 months ago | |
| flow-php/etl | Flow PHP ETL is a strongly typed, generator-powered ETL framework for efficient extract-transform-load pipelines in PHP. Process large datasets with a minimal memory footprint and plug into many adapters, extractors, and loaders for diverse sources. | 378 | 379 | 21 | 29K | 0 | 2.5 | 26.2 | MIT | — | |
| flow-php/telemetry | Flow Telemetry is a PHP library for metrics and tracing, built to integrate smoothly with Flow PHP ETL pipelines. Use it to instrument jobs, collect runtime metrics, and add traces for observability. Includes docs, installation, and upgrade guides. | 3 | 3 | 1 | 30K | 0 | 0.0 | 53.6 | MIT | — | |
| gedmo/doctrine-extensions | — | 4,140 | 4,166 | 1,252 | 2M | 35 | 76.1 | 64.2 | MIT | 1 month ago | |
| kevinrob/guzzle-cache-middleware | RFC 7234–compliant HTTP cache middleware for Guzzle 6+ using a HandlerStack. Improve API call performance with transparent caching. Supports PSR-7 and multiple storages: Laravel cache, Flysystem, PSR-6/16, and WordPress object cache. | 436 | 440 | 80 | 441K | 20 | 39.3 | 56.1 | MIT | 1 month ago | |
| kreait/firebase-php | Unofficial Firebase Admin SDK for PHP. Manage authentication, users, custom tokens, and verify ID tokens; send Cloud Messaging notifications; work with Realtime Database, Cloud Storage, and Remote Config. Built on Google APIs with Laravel-friendly support. | 2,435 | 2,454 | 454 | 2M | 15 | 59.0 | 51.9 | MIT | 1 month ago | |
| laminas/laminas-cache | Laminas Cache provides flexible caching for PHP apps with storage adapters (memory, filesystem, Redis, etc.), plugins, and cache patterns. Includes PSR-6/PSR-16 support, configuration options, and utilities for improving performance and reducing expensive operations. | 107 | 108 | 63 | 174K | 9 | 25.2 | 53.4 | BSD-3-Clause | 6 months ago | |
| laminas/laminas-cache-storage-adapter-filesystem | Filesystem storage adapter for laminas-cache. Provides a cache backend that persists items on disk with configurable options and integration with Laminas Cache storage interfaces, suitable for local or shared filesystem caching. | 7 | 7 | 16 | 90K | 4 | 17.5 | 62.5 | BSD-3-Clause | 6 months ago | |
| laminas/laminas-cache-storage-adapter-memory | In-memory cache storage adapter for Laminas Cache. Provides a simple, fast, non-persistent cache for the current PHP process, useful for testing, prototyping, or per-request caching without external services. | 4 | 4 | 12 | 80K | 1 | 14.6 | 60.4 | BSD-3-Clause | 6 months ago | |
| laminas/laminas-cache-storage-adapter-test | Test adapter for laminas-cache storage, providing utilities for testing cache implementations. Useful in CI and unit tests to verify behavior of cache adapters and storage plugins within Laminas applications. | 1 | 1 | 10 | 760 | 2 | 18.4 | 39.9 | BSD-3-Clause | 6 months ago | |
| lcobucci/clock | Clock abstraction for PHP to decouple your code from DateTimeImmutable instantiation. Depend on the Clock interface and use SystemClock for real time (with timezone support) or FrozenClock for deterministic, test-friendly time in unit tests. | 799 | 801 | 32 | 6M | 1 | 24.2 | 59.2 | MIT | 5 months ago | |
| lcobucci/jwt | A lightweight, flexible JWT library for PHP. Create, sign, parse, and validate JSON Web Tokens with support for multiple algorithms, key types, constraints, and claims. Includes a fluent builder, token parser, and robust validation APIs. | 7,483 | 7,564 | 595 | 9M | 8 | 54.6 | 45.7 | BSD-3-Clause | 11 months ago | |
| league/oauth2-server | Standards-compliant OAuth 2.0 authorization server for PHP. Protect APIs with bearer access tokens, issue and refresh tokens, and support common grants (auth code, client credentials, device, implicit, password, refresh) with PSR-7 interoperability and RFC support. | 6,662 | 6,736 | 1,137 | 5M | 56 | 84.1 | 73.6 | MIT | 2 months ago | |
| mcp/sdk | — | 1,591 | 1,570 | 166 | 739K | 56 | 53.0 | 69.2 | NOASSERTION | 3 weeks ago | |
| nesbot/carbon | Carbon is a PHP DateTime extension for easy date/time parsing, formatting, arithmetic, timezones, and human-friendly differences. Common in Laravel, it adds a fluent API, helpers like now()/today(), and readable methods for complex date logic. | 195 | 608 | 30 | 16M | 0 | 28.1 | 64.7 | MIT | 1 month ago | |
| patchlevel/event-sourcing | — | 215 | 215 | 15 | 31K | 11 | 31.3 | 40.9 | MIT | 2 months ago | |
| sanmai/duoclock | 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 | 681K | 0 | 11.2 | 60.1 | Apache-2.0 | 8 months ago | |
| shapecode/cron-bundle | Laravel-friendly cron scheduler bundle that lets you define, manage, and run scheduled jobs from your app. Provides an easy API for registering tasks, configuring frequency and conditions, and executing commands reliably with clear organization and control. | 58 | 60 | 30 | 9K | 12 | 4.8 | 34.6 | MIT | — | |
| simplesamlphp/saml2 | — | 306 | 305 | 138 | 267K | 11 | 35.8 | 50.7 | LGPL-2.1 | 2 months ago | |
| simplesamlphp/saml2-legacy | — | 0 | 0 | 0 | 98K | 0 | 0.0 | 55.3 | LGPL-2.1 | — | |
| simplesamlphp/xml-common | — | 4 | 4 | 9 | 162K | 1 | 19.9 | 63.8 | LGPL-2.1 | 2 months ago | |
| simplethings/entity-audit-bundle | Doctrine 2 auditing/versioning bundle inspired by Hibernate Envers. Tracks entity changes and associations over time, stores revisions, and lets you inspect historical states for debugging, compliance, and change history in Symfony/Doctrine apps. | 643 | 649 | 257 | 7K | 4 | 32.5 | 17.6 | MIT | 5 months ago | |
| sonata-project/entity-audit-bundle | Doctrine 2 entity versioning for Symfony, inspired by Hibernate Envers. Tracks changes to audited entities and associations, storing revision history you can browse and compare for full audit trails. | 643 | 642 | 257 | 28K | 4 | 32.6 | 26.2 | MIT | 5 months ago | |
| spomky-labs/otphp | — | 1,488 | 1,502 | 159 | 2M | 0 | 38.5 | 49.4 | MIT | 3 months ago | |
| symfony/clock | Symfony Clock decouples your code from the system clock. Inject ClockInterface to get DateTimeImmutable via now(), control timezones, and pause execution with sleep(). Ideal for testable, time-sensitive services without relying on global time. | 433 | 437 | 3 | 13M | 0 | 28.1 | 62.9 | MIT | 3 months ago | |
| symfony/symfony | Symfony is a robust PHP framework and component library for building web apps and APIs. It offers a mature ecosystem, reusable components, strong tooling, and long-term support, powering everything from small sites to large enterprise platforms. | 31,135 | 31,439 | 9,856 | 268K | 175 | 93.3 | 45.7 | MIT | 4 weeks ago | |
| tempest/clock | — | 0 | 0 | 0 | 51 | 0 | 0.0 | 23.7 | MIT | — | |
| typhoon/opcache | — | 13 | 13 | 0 | 48 | 0 | 0.7 | 8.9 | MIT | 2 years ago | |
| typo3/cms-core | TYPO3 CMS Core provides the essential framework, APIs, and services for the TYPO3 content management system. It powers backend and frontend rendering, extensions, security, caching, routing, and site configuration for building and maintaining TYPO3-based websites. | 33 | 37 | 19 | 375K | 0 | 0.7 | 55.3 | GPL-2.0 | — | |
| web-auth/webauthn-lib | PHP WebAuthn library for adding passkeys/FIDO2 authentication to apps and APIs. Implements registration and login flows, credential validation, and related WebAuthn data structures, suitable for Laravel or custom frameworks. | 125 | 131 | 25 | 4M | 0 | 1.4 | 55.3 | MIT | — | |
| web-token/jwt-framework | — | 955 | 958 | 121 | 633K | 2 | 34.4 | 45.1 | MIT | 3 months ago | |
| web-token/jwt-library | Read-only sub-repository of the JWT Framework: a PHP JSON Web Token library. For docs and contributions, see the main jwt-framework repo and the official documentation at https://web-token.spomky-labs.com/. MIT licensed. | 20 | 20 | 9 | 2M | 1 | 0.4 | 55.3 | MIT | — | |
| yiisoft/test-support | Testing utilities for Yii applications: helpers and fixtures to simplify unit and integration tests, isolate dependencies, and improve readability. Provides common test tools you can reuse across packages and projects. | 15 | 15 | 11 | 19K | 3 | 12.2 | 46.3 | BSD-3-Clause | 7 months ago |
How can I help you explore Laravel packages today?