Weekly "ask anything" thread

This page summarizes the projects mentioned and recommended in the original post on /r/PHP

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • Brick\Math

    Arbitrary-precision arithmetic library for PHP (by brick)

  • Brick\Money

    A money and currency library for PHP (by brick)

  • 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.

  • fig-standards

    Standards either proposed or approved by the Framework Interop Group

    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.

Suggest a related project

Related posts