PHPackages                             miqo/laravel-models-camel-case - 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. miqo/laravel-models-camel-case

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

miqo/laravel-models-camel-case
==============================

Simply camelCase Laravel Model attributes and relationships

v1.0.1(3y ago)1478MITPHPPHP &gt;=7

Since Feb 8Pushed 3y ago1 watchersCompare

[ Source](https://github.com/miqo-srapionyan/laravel-models-camel-case)[ Packagist](https://packagist.org/packages/miqo/laravel-models-camel-case)[ RSS](/packages/miqo-laravel-models-camel-case/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

laravel-models-camel-case
-------------------------

[](#laravel-models-camel-case)

Simply camelCase Laravel Model attributes and relationships.

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

[](#installation)

```
composer require miqo/laravel-models-camel-case
```

Usage
-----

[](#usage)

Just use trait in your Laravel Models

```
use Miqo\LaravelModelsCamelCase\Traits\AttributesCamelCase;

class Users extends Model {
    use AttributesCamelCase;
}

```

This trait overrides Laravel Model's some of default methods. `getAttribute`, `setAttribute`, `toArray`

Now you can use camel case attributes for saving as well as gor getting.
For example you have `users` table, and `first_name`, `last_name` columns.

```
// When saving
$user = new User();
$user->firstName = 'John'; // instead of $user->first_name
$user->lastName = 'Doe'; // instead of $user->last_name
$user->save();

// When creating
$user = new User([
    'firstName' => 'John', // instead of first_name
    'lastName'  => 'Doe', // instead of last_name
]);
$user->save();

// When getting
$user = User::find(1);
// instead of $user->first_name, $user->last_name
echo $user->firstName.' '.$user->lastName; // John Doe

```

And you can still use the old way as well, as mixed it

```
// When saving
$user = new User();
$user->first_name = 'John';
$user->last_name = 'Doe';
$user->save();

// When creating
$user = new User([
    'first_name' => 'John',
    'last_name'  => 'Doe',
]);
$user->save();

// When getting
$user = User::find(1);
echo $user->first_name.' '.$user->last_name; // John Doe

// Mixed
$user = new User();
$user->firstName = 'John';
$user->last_name = 'Doe';
$user->save();

```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

2

Last Release

1241d ago

PHP version history (2 changes)v1.0.0PHP ^7

v1.0.1PHP &gt;=7

### Community

Maintainers

![](https://www.gravatar.com/avatar/cc70cb14f9c6c6ce299f8ea9e249ef033c7ad717d0821079f20673cf7bdb8480?d=identicon)[miqo-srapionyan](/maintainers/miqo-srapionyan)

---

Top Contributors

[![miqo-srapionyan](https://avatars.githubusercontent.com/u/29629463?v=4)](https://github.com/miqo-srapionyan "miqo-srapionyan (6 commits)")

---

Tags

laravellaravel-camel-caselaravel-model-attributes

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/miqo-laravel-models-camel-case/health.svg)

```
[![Health](https://phpackages.com/badges/miqo-laravel-models-camel-case/health.svg)](https://phpackages.com/packages/miqo-laravel-models-camel-case)
```

###  Alternatives

[stephenjude/filament-blog

Filament Blog Builder

20619.4k](/packages/stephenjude-filament-blog)[datomatic/nova-detached-actions

A Laravel Nova tool to allow for placing actions in the Nova toolbar detached from the checkbox selection mechanism.

11273.0k](/packages/datomatic-nova-detached-actions)

PHPackages © 2026

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