PHPackages                             martinbean/eloquent-singular-table-names - 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. martinbean/eloquent-singular-table-names

ActiveLibrary

martinbean/eloquent-singular-table-names
========================================

Makes Eloquent models use singular (rather than plural) table names by default.

v1.0.2(10y ago)14.7k1MITPHP

Since Aug 26Pushed 10y agoCompare

[ Source](https://github.com/martinbean/eloquent-singular-table-names)[ Packagist](https://packagist.org/packages/martinbean/eloquent-singular-table-names)[ RSS](/packages/martinbean-eloquent-singular-table-names/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (4)Used By (0)

Eloquent singular table names
=============================

[](#eloquent-singular-table-names)

Makes Eloquent models use singular (rather than plural) table names by default.

Usage
-----

[](#usage)

Simple apply the trait to your Eloquent model:

```
namespace App;

use Illuminate\Database\Eloquent\Model;
use MartinBean\Database\Eloquent\SingularTableName;

class User extends Model
{
    use SingularTableName;
}
```

The default table name will be `user` now, rather than `users`.

If you wish to use singular table names for *all* of your models, then you can create an abstract class that implements the trait, and have all of your models extend that class:

```
namespace App;

use Illuminate\Database\Eloquent\Model;
use MartinBean\Database\Eloquent\SingularTableName;

abstract class SingularModel extends Model
{
    use SingularTableName;
}
```

```
namespace App;

class User extends SingularModel
{
    // No need to implement trait
}
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

Established project with proven stability

 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

3

Last Release

3912d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cb0c631c9ca0575575f7dfb760bc0462ff52cfd60a2b8b7e4702a0f136cf2c4c?d=identicon)[martinbean](/maintainers/martinbean)

---

Top Contributors

[![martinbean](https://avatars.githubusercontent.com/u/167312?v=4)](https://github.com/martinbean "martinbean (7 commits)")

### Embed Badge

![Health badge](/badges/martinbean-eloquent-singular-table-names/health.svg)

```
[![Health](https://phpackages.com/badges/martinbean-eloquent-singular-table-names/health.svg)](https://phpackages.com/packages/martinbean-eloquent-singular-table-names)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

44643.1k1](/packages/pressbooks-pressbooks)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)[dragon-code/migrate-db

Easy data transfer from one database to another

15717.4k](/packages/dragon-code-migrate-db)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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