A PHP library extending Carbon with multi-language date formatting and translation support.
Date is a PHP library that extends Carbon to provide multi-language support for date formatting and manipulation. It translates methods like `format`, `diffForHumans`, and `parse` based on locale, enabling developers to display dates in over 200 languages. The library solves the problem of creating internationally accessible applications by handling date localization seamlessly.
PHP developers building applications with international audiences, especially those using the Carbon library or Laravel framework. It's ideal for projects requiring localized date displays, such as multilingual websites, SaaS platforms, or community forums.
Developers choose Date because it seamlessly integrates with Carbon, offering robust date manipulation plus extensive language support without reinventing the wheel. Its reverse translation parsing and Laravel integration make it a practical choice for adding localization with minimal overhead.
🗓 A library to help you work with dates in multiple languages, based on Carbon.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Leverages Carbon's translations to cover over 200 languages, making it one of the most comprehensive PHP libraries for date localization without manual translation work.
Fully inherits Carbon's date manipulation methods, so developers can use familiar Carbon APIs while gaining localization features with minimal learning curve.
Includes a service provider and facade for Laravel, with auto-discovery in Laravel 5.5+, simplifying setup and automatic locale handling in Laravel projects.
Unique ability to parse dates from translated strings (e.g., 'zaterdag 21 maart 2015') using methods like createFromFormat(), which is essential for processing user input in multiple languages.
Acts as a thin wrapper over Carbon, so it inherits Carbon's issues and updates; it doesn't add major new functionality beyond translation, making it less valuable if Carbon changes.
Outside Laravel, manual locale setting and integration are required, as auto-discovery and service providers don't apply, adding complexity for plain PHP projects.
Adds only a few methods like timespan() and relies on Carbon for core features, so it may not evolve independently or address gaps in Carbon's date handling.