How to Get the Current Date and Time in PHP

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

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

    A simple PHP API extension for DateTime. (by briannesbitt)

    There's also gmdate(), but realistically you'd use either date() or DateTime / DateTimeImmutable or maybe even a more sophisticated wrapper like Carbon (unless you have a severe aversion to objects I guess).

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

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