awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com

PHP Date and Time Libraries

Ranking updated Jul 13, 2026

For a robust library for handling PHP dates, the first results are briannesbitt/carbon (Carbon is the industry-standard PHP library for date and time manipulation, providing comprehensive support for immutable objects, timezone handling, interval calculations, and human-readable formatting that directly addresses your requirements), jenssegers/date (This library extends Carbon to provide robust date and time manipulation with a focus on multi-language localization, making it a strong choice for handling complex date formatting requirements) and github/relative-time-element (This is a client-side JavaScript web component for rendering relative timestamps in the browser, rather than a PHP library for server-side date and time manipulation). flatpickr/flatpickr is also worth a look. Compare the match explanations and check the project documentation against your requirements.

We curate open-source GitHub repositories matching “best php date and time libraries”. Results are ranked by relevance to your query — pick filters below to narrow, or refine with AI.

PHP Date and Time Libraries

Find the best repos with AI.We'll search the best matching repositories with AI.
  • briannesbitt/carbonbriannesbitt avatar

    briannesbitt/Carbon

    16,613View on GitHub↗

    Carbon is a date and time manipulation library for PHP that extends the native DateTime class. It provides a set of tools for calculating, formatting, and comparing dates and times using a simplified, human-readable syntax. The library utilizes a fluent interface and static factory methods to allow for chained method calls and intuitive object instantiation. It supports both mutable and immutable state options to manage how date objects are modified and returned. The toolset covers temporal data management, including time zone handling and localization-based formatting to convert date compon

    Carbon is the industry-standard PHP library for date and time manipulation, providing comprehensive support for immutable objects, timezone handling, interval calculations, and human-readable formatting that directly addresses your requirements.

    PHPDate and Time Libraries
    View on GitHub↗16,613
  • jenssegers/datejenssegers avatar

    jenssegers/date

    1,806View on GitHub↗

    🗓 A library to help you work with dates in multiple languages, based on Carbon.

    This library extends Carbon to provide robust date and time manipulation with a focus on multi-language localization, making it a strong choice for handling complex date formatting requirements.

    PHPLocalization
    View on GitHub↗1,806
  • github/relative-time-elementgithub avatar

    github/relative-time-element

    4,005View on GitHub↗

    This project provides a web component time element that extends the standard HTML time tag to display human-readable relative timestamps and countdowns. It functions as a relative time formatter and time duration calculator, converting timestamps into localized strings that update automatically in the browser. The tool enables dynamic timestamp displays that transition from relative phrases to absolute dates based on configurable time thresholds. It includes capabilities for date tense restriction, forcing timestamps to display exclusively as past or future dates, and supports precise duratio

    This is a client-side JavaScript web component for rendering relative timestamps in the browser, rather than a PHP library for server-side date and time manipulation.

    JavaScriptDuration CalculationsRelative Time Formatting
    View on GitHub↗4,005
  • flatpickr/flatpickrflatpickr avatar

    flatpickr/flatpickr

    16,469View on GitHub↗

    Flatpickr is a lightweight, dependency-free JavaScript library designed to provide a modular date and time selection interface for web applications. It functions as a versatile web component that integrates into existing forms, offering a consistent user experience for picking single dates, ranges, or multiple values while maintaining a clear separation between human-readable display strings and machine-readable data. The library distinguishes itself through a robust configuration-driven architecture that allows for dynamic runtime updates and extensive customization of date formatting via a

    This is a JavaScript-based date and time picker component for web frontends, whereas you are looking for a PHP library to handle backend date and time logic.

    TypeScriptHuman-Readable FormattersDate and Time Libraries
    View on GitHub↗16,469
Compare the top 10 at a glance
RepositoryStarsLanguageLicenseLast push
briannesbitt/carbon16.6KPHPMITJun 15, 2026
jenssegers/date1.8KPHPMITDec 4, 2023
github/relative-time-element
4K
JavaScript
MIT
Jun 17, 2026
flatpickr/flatpickr16.5KTypeScriptMITAug 2, 2024

Related searches

  • a library for handling dates and times
  • a python library for date and time
  • a library for handling Java date time
  • a library for handling dates in C#
  • a library for scheduling tasks in PHP
  • a rust library for date and time
  • a lightweight JavaScript library for date formatting
  • a library for validating data in PHP