Weekly "ask anything" thread

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

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • 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)

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • 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