Do you use a DateTime wrapper?

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

    πŸ“… PHP Date & Time library that solves common problems in object oriented, immutable way. (by aeon-php)

  • https://github.com/aeon-php/calendar comes with object representation of TimeUnit, more advanced iterators over TimePeriods, time ranges and overlaps detection, leap seconds support, Unix/UTC/TAI/GPS timestamps plus few handy extensions like holidays, business hours, retries, precise sleep, stopwatch, rate limiter. It’s a wrapper on an excellent native DateTime that does not extend it.

  • php_toml

    PHP C-Extension to parse a TOML formatted string, and return its equivalent array structure

  • Damn, I didn't know that someone bothered to make a wrapper. I did make a simple wrapper to deal with Time values (24 nours as float fraction) I wrote this C-extension to read TOML files, which is only coded for PHP 8.0 and above, and TOML specifies both 12/24 hour values, easily implemented as a DayTime class, and also full calendar date values, for which DateTime is entirely adequate. At https://github.com/betrixed/php_toml

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

    WorkOS logo
  • Carbon

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

  • See: https://github.com/briannesbitt/Carbon/issues/1693

  • date-time

    Date and time library for PHP

  • I like https://github.com/brick/date-time

  • php-date

  • We published and use on a regular basis https://github.com/assoconnect/php-date to handle date only (ie without time) properly at my company when time or timezone don't matter.

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