PHPackages                             tomlerendu/laravel-convert-case-middleware - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. tomlerendu/laravel-convert-case-middleware

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

tomlerendu/laravel-convert-case-middleware
==========================================

Convert request and response keys to and from camel and snake case.

1.1.4(2y ago)2870.0k↓45%15[4 PRs](https://github.com/tomlerendu/laravel-convert-case-middleware/pulls)MITPHPPHP ^8.0|^8.1|^8.2CI failing

Since Aug 1Pushed 1y ago1 watchersCompare

[ Source](https://github.com/tomlerendu/laravel-convert-case-middleware)[ Packagist](https://packagist.org/packages/tomlerendu/laravel-convert-case-middleware)[ RSS](/packages/tomlerendu-laravel-convert-case-middleware/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (2)Versions (13)Used By (0)

Laravel Convert Case Middleware
===============================

[](#laravel-convert-case-middleware)

[![Actions Status](https://github.com/tomlerendu/laravel-convert-case-middleware/workflows/Tests/badge.svg)](https://github.com/tomlerendu/laravel-convert-case-middleware/actions)

Convert requests from camel case to snake case. Convert responses from snake case to camel case.

Why?
----

[](#why)

Its convention to work with camel case in Javascript and snake case in PHP.

Requirements
------------

[](#requirements)

Laravel 5.2+

Installation
------------

[](#installation)

1. `composer require tomlerendu/laravel-convert-case-middleware`
2. Add the middleware to the appropriate group in `App\Http\Kernel.php`. For example

```
protected $middlewareGroups = [
    'api' => [
        'throttle:60,1',
        'bindings',
        \TomLerendu\LaravelConvertCaseMiddleware\ConvertRequestToSnakeCase::class,
        \TomLerendu\LaravelConvertCaseMiddleware\ConvertResponseToCamelCase::class,
    ],
];

```

###  Health Score

45

—

FairBetter than 92% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity41

Moderate usage in the ecosystem

Community16

Small or concentrated contributor base

Maturity78

Established project with proven stability

 Bus Factor1

Top contributor holds 85% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~233 days

Recently: every ~303 days

Total

8

Last Release

845d ago

PHP version history (4 changes)v1.0.0PHP ^7.1

1.1.2PHP &gt;=7.1

1.1.3PHP &gt;=8.0

1.1.4PHP ^8.0|^8.1|^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/3cb746558c9f2892758df7873c05e0cfd5bc157072b859153f15db6ecc526426?d=identicon)[tomlerendu](/maintainers/tomlerendu)

---

Top Contributors

[![tomlerendu](https://avatars.githubusercontent.com/u/3859851?v=4)](https://github.com/tomlerendu "tomlerendu (17 commits)")[![cwilby](https://avatars.githubusercontent.com/u/13686317?v=4)](https://github.com/cwilby "cwilby (1 commits)")[![mercrover](https://avatars.githubusercontent.com/u/35199776?v=4)](https://github.com/mercrover "mercrover (1 commits)")[![specialgoodstuff](https://avatars.githubusercontent.com/u/1114907?v=4)](https://github.com/specialgoodstuff "specialgoodstuff (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tomlerendu-laravel-convert-case-middleware/health.svg)

```
[![Health](https://phpackages.com/badges/tomlerendu-laravel-convert-case-middleware/health.svg)](https://phpackages.com/packages/tomlerendu-laravel-convert-case-middleware)
```

###  Alternatives

[wireui/wireui

TallStack components

1.8k1.3M16](/packages/wireui-wireui)[livewire/volt

An elegantly crafted functional API for Laravel Livewire.

4195.3M84](/packages/livewire-volt)[ramonrietdijk/livewire-tables

Dynamic tables for models with Laravel Livewire

21147.4k](/packages/ramonrietdijk-livewire-tables)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
