PHPackages                             cavin-kim/laravel-naming-convention-enforcer - 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. cavin-kim/laravel-naming-convention-enforcer

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

cavin-kim/laravel-naming-convention-enforcer
============================================

A Laravel package to enforce naming conventions.

01PHP

Since Oct 18Pushed 1y ago1 watchersCompare

[ Source](https://github.com/cavin-kim/laravel-naming-convention-enforcer)[ Packagist](https://packagist.org/packages/cavin-kim/laravel-naming-convention-enforcer)[ RSS](/packages/cavin-kim-laravel-naming-convention-enforcer/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

KPhiri: Laravel Naming Convention Enforcer
==========================================

[](#kphiri-laravel-naming-convention-enforcer)

KPhiri is a Laravel package that enforces naming conventions for your Laravel application's models, controllers, and routes. It ensures your application structure follows these best practices:

- **Models are singular** (e.g., `User`, `Post`)
- **Controllers are plural** and follow the `SomeModelController` convention (e.g., `UsersController`, `PostsController`)
- **Resource routes** are automatically named according to the plural form of controllers.

With zero manual configuration required, KPhiri helps you maintain a clean and organized project structure effortlessly!

Features
--------

[](#features)

- Automatically checks and enforces **singular model names**.
- Ensures **plural controller names** (e.g., `UsersController` for the `User` model).
- Automatically registers **resource routes** with correct naming conventions.

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

[](#requirements)

- **PHP 7.4** or **8.0+**
- **Laravel 8.x**, **9.x**, or **10.x**

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

[](#installation)

To install the package, follow these steps:

1. Add the package to your project using Composer. Run the following command:

    ```
    composer require vendor/k-phiri
    ```

Usage
-----

[](#usage)

Once the package is installed, you can enforce naming conventions by running the following Artisan command:

```
php artisan naming:enforce
```

This command will check your application's structure and enforce the naming conventions.

License
-------

[](#license)

This package is licensed under the MIT License. See the LICENSE file for more details.

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity17

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/345a4c1eb5ea5099b6b38b4c319006fb0eed8ca3902ffa8cfbc819cf487de1a3?d=identicon)[cavin-kim](/maintainers/cavin-kim)

---

Top Contributors

[![cavin-kim](https://avatars.githubusercontent.com/u/107536681?v=4)](https://github.com/cavin-kim "cavin-kim (9 commits)")

### Embed Badge

![Health badge](/badges/cavin-kim-laravel-naming-convention-enforcer/health.svg)

```
[![Health](https://phpackages.com/badges/cavin-kim-laravel-naming-convention-enforcer/health.svg)](https://phpackages.com/packages/cavin-kim-laravel-naming-convention-enforcer)
```

###  Alternatives

[rongcloud/php-sdk

Rong Cloud Server SDK in PHP.

1983.6k3](/packages/rongcloud-php-sdk)[friends-of-hyva/purchase-order-number

Hyvä Themes Checkout Module - addon Purchase Order Number

1015.1k](/packages/friends-of-hyva-purchase-order-number)[overnaive/dingtalkrobot

DingTalk Robot

111.7k](/packages/overnaive-dingtalkrobot)

PHPackages © 2026

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