π Are you tired of API response naming conflicts between Front-End & Back-End?
Hereβs the common problem:
β Back-End returns snake_case.
β Front-End wants camelCase.
β Result? Wasted time mapping keys manually.
π¨βπ» I solved this with a Laravel Package that does all the work automatically!
πππ« Laravel Snake-to-Camel Case Package
π¦ Features:
β
Two Middlewares:
1οΈβ£ Convert API Responses β camelCase.
2οΈβ£ Convert Form Requests β snake_case.
β
Super easy: Just install it (no manual provider registration).
β
Configurable: Apply to API, Web, or both.
β
Choose: Response only or Request + Response.
π Example config:
'apply_to' => 'all',
'convert_request' => true,
'convert_response' => true,
π― Result:
β
No conflicts.
β
Faster integration.
β
Cleaner code.
π

Check it out here:
https://packagist.org/packages/rizkussef/laravel-snake-to-camel-case
Top comments (0)