PHPackages                             opheus2/laravel-makeclass - 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. opheus2/laravel-makeclass

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

opheus2/laravel-makeclass
=========================

A laravel package that makes the creating of php classes faster

v1.0.0(4y ago)61.0k1MITPHP

Since Jan 9Pushed 4y ago1 watchersCompare

[ Source](https://github.com/opheus2/laravel-makeclass)[ Packagist](https://packagist.org/packages/opheus2/laravel-makeclass)[ RSS](/packages/opheus2-laravel-makeclass/feed)WikiDiscussions main Synced 1mo ago

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

Laravel Make Class
==================

[](#laravel-make-class)

### Features

[](#features)

- Create a php class from the command for any directory in the root name-space;
- Store a custom path as an alias and use alias instead of full path.
- Create interface | class | enum | trait.
- Create final and abstract classes
- Create class with a declare strict\_type

### Installation

[](#installation)

```
composer require opheus2/laravel-makeclass
```

\###Usages

> File is created in root name-space. E.b App

```
php artisan make:class {name}
```

Default type is class.

---

> File is created in test folder in root name-space. E.b App/Test

```
php artisan make:class Test\{name}
```

---

> Create an interface type of class

```
php artisan make:class {name} -i
					or
php artisan make:class {name} --type interface
```

---

Available typesflagsclass(default no flag)interface(-i or --interface)trait(-T or --trait)enum(-e or --enum)---

> Using custom path with alias

```
php artisan make:class {name} -i -p="Domains/Services/" --alias="ape"
					or
php artisan make:class {name} -i -p=Domain\Services\ --alias=ape
					or
php artisan make:class {name} -i -p Domain\Services\ --alias ape
```

**Please note:** You always need to add a trailing slash at the end for it to work properly. I would surely fix that soon.

Then you can use alias as path

```
php artisan make:class {name} -i -p="ape"
```

This would use the same old/saved path for subsequent file names

---

> Using modifiers

```
php artisan make:class {name} -fx
```

This would create a final class with declare strict\_types at the top You can use the -x flag to always add the strict type to any class type

---

Available modifiersflagsstrict(-x or --strict)final(-f or --final)abstract(-a or --abstract)For more info you can do

```
php artisan make:class --help
```

\####Thank you

\###TODO

- Add check for trailing slash and auto fix

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

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

Unknown

Total

1

Last Release

1590d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/199954407017ca2b3302d302356617dc43f405b593c798ca11849fa3e6938bd1?d=identicon)[orpheusohms](/maintainers/orpheusohms)

---

Top Contributors

[![opheus2](https://avatars.githubusercontent.com/u/31169044?v=4)](https://github.com/opheus2 "opheus2 (5 commits)")

---

Tags

laravellaravel-packagephpphp-classphp-classes

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/opheus2-laravel-makeclass/health.svg)

```
[![Health](https://phpackages.com/badges/opheus2-laravel-makeclass/health.svg)](https://phpackages.com/packages/opheus2-laravel-makeclass)
```

###  Alternatives

[collab/module-consent-mode

Cookie Consent Mode Popup Extension for Magento 2

121.8k](/packages/collab-module-consent-mode)

PHPackages © 2026

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