fridzema/laravel-date-format-converter
Larablocks Analysis
fridzema/laravel-date-format-converter works with Laravel 10 to 13 (latest release 0.0.3, Mar 20, 2026).
Recommendation checks
PromisingPromising: maintained and up to date, meets 2 of 4 checks; not yet widely used.
- Works with Laravel 13, the current version
- Released in the last 12 months (Mar 20, 2026)
- 42 downloads a month (needs 10,000)
- 1 GitHub star (needs 100)
State
Maintained- Last stable release: Mar 20, 2026.
- 1 release in the last 12 months.
- First released: Mar 21, 2024.
- Monthly downloads: 42.
- 0 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Nov 27, 2026.
| Install | |
|---|---|
composer require fridzema/laravel-date-format-converter |
|
| Latest Version: | 0.0.3 |
| PHP: | ^8.2 |
| Laravel: | 10 – 13 |
| License: | MIT |
| Last Updated: | Mar 20, 2026 |
| Links: | GitHub · Packagist |
Converts date format from js to php and the other way around
Really simple package to convert js date format to php date format and the other way around.
use Fridzema\DateFormatConverter\DateFormatConverter;
it('converts JavaScript date formats to PHP date formats', function () {
expect(DateFormatConverter::convertJsFormatToPhp('YYYY-MM-DD'))->toEqual('Y-m-d');
});
it('converts PHP date formats to JavaScript date formats', function () {
expect(DateFormatConverter::convertPhpFormatToJs('Y-m-d'))->toEqual('YYYY-MM-DD');
});
Installation
You can install the package via composer:
composer require fridzema/laravel-date-format-converter
You can publish the config file with:
php artisan vendor:publish --tag="laravel-date-format-converter-config"
Usage
$dateFormatConverter = new Fridzema\DateFormatConverter();
echo DateFormatConverter::convertPhpFormatToJs('Y-m-d');
echo DateFormatConverter::convertJsFormatToPhp('YYYY-MM-DD');
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.
Related Packages
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 0.0.3 | ^8.2 | ^10.0|| | MIT | |
| 0.0.2 | ^8.2 | ^10.0|| | MIT | |
| 0.0.1 | ^8.2 | ^10.0|| | MIT |