Our great sponsors
-
-
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
To avoid this my suggestion is to make the current time an injectable. That can be as easy as injection a DateTimeImmutable object directly or by using a clock. Frank de Jonge wrote about this - https://blog.frankdejonge.nl/being-in-control-of-time-in-php/ - and there's a proposal for a PSR for a clock interface - https://github.com/php-fig/fig-standards/blob/master/proposed/clock-meta.md.
NOTE:
The number of mentions on this list indicates mentions on common posts plus user suggested alternatives.
Hence, a higher number means a more popular project.