Skip to content

This repository lets your API users pass in and receive camelCased or snake_cased keys while your app receives and produces snake_cased ones.

License

Notifications You must be signed in to change notification settings

matthv/laravel-dingo-transform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LARAVEL DINGO TRANSFORM

This repository extends the Dingo API package. It lets your API users pass in and receive camelCased or snake_cased keys while your app receives and produces snake_cased ones.

Installation

composer require 'matthv/laravel-dingo-transform' '~2.0'

Requirements

  • Laravel 9/10
  • api-ecosystem-for-laravel/dingo-api > 4.1

Use

Include a X-Key-Inflection header with values of camel or snake in your JSON API requests.

snake_case camelCase


This repo is inspired by the gem "olive_branch"


About

This repository lets your API users pass in and receive camelCased or snake_cased keys while your app receives and produces snake_cased ones.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages