PHPackages                             soyhuce/laravel-somake - 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. soyhuce/laravel-somake

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

soyhuce/laravel-somake
======================

An opinionated package to generate classes in your Laravel project

3.1.0(1y ago)213.3k[2 issues](https://github.com/Soyhuce/laravel-somake/issues)[5 PRs](https://github.com/Soyhuce/laravel-somake/pulls)MITPHPPHP ^8.3CI passing

Since Mar 9Pushed 2mo ago2 watchersCompare

[ Source](https://github.com/Soyhuce/laravel-somake)[ Packagist](https://packagist.org/packages/soyhuce/laravel-somake)[ Docs](https://github.com/soyhuce/laravel-somake)[ GitHub Sponsors](https://github.com/soyhuce)[ RSS](/packages/soyhuce-laravel-somake/feed)WikiDiscussions main Synced today

READMEChangelog (10)Dependencies (21)Versions (28)Used By (0)

An opinionated package to generate classes in your Laravel project
==================================================================

[](#an-opinionated-package-to-generate-classes-in-your-laravel-project)

[![Latest Version on Packagist](https://camo.githubusercontent.com/eed0fd79e1189261af6577de4efb6d20896f4617b290f21f9080763df45b455f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736f79687563652f6c61726176656c2d736f6d616b652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/soyhuce/laravel-somake)[![GitHub Tests Action Status](https://camo.githubusercontent.com/cd1019060ae078420035cd09b01f5fd0eb753343ae36c7e611c9a8d020b2bd51/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f736f79687563652f6c61726176656c2d736f6d616b652f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/soyhuce/laravel-somake/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/886c7d1064f35b47e5747c5f46d2b31852bc12c69e9ab99e5ce358c9e7e82432/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f736f79687563652f6c61726176656c2d736f6d616b652f7068702d63732d66697865722e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/soyhuce/laravel-somake/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![GitHub PHPStan Action Status](https://camo.githubusercontent.com/3c30e50113ec1d0628466aa51b8e3c5c75cf7fecca85c83bee089f49be82a50e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f736f79687563652f6c61726176656c2d736f6d616b652f7068707374616e2e796d6c3f6272616e63683d6d61696e266c6162656c3d5048505374616e267374796c653d666c61742d737175617265)](https://github.com/soyhuce/laravel-somake/actions?query=workflow%3A%22PHPStan%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/68c9bae2306c037a3549fbb412396c80970d69406ac86aee8d2c04b53ba685dc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736f79687563652f6c61726176656c2d736f6d616b652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/soyhuce/laravel-somake)

A set of commands to easily generate classes on the right place.

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

[](#installation)

You can install the package via composer:

```
composer require --dev soyhuce/laravel-somake
```

You can publish the config file with:

```
php artisan vendor:publish --tag="somake-config"
```

Optionally, you can publish the views using

```
php artisan vendor:publish --tag="somake-views"
```

Usage
-----

[](#usage)

The commands of this package do not offer options, or the options are designed to be used internally only.

The configuration of generated classes is done via interactive questions.

### App

[](#app)

CommandeDescriptionGeneration path`somake:command`Commande`app/App/Commands``somake:controller`Controller`app/App/[application]/Controllers/[namespace?]``somake:middleware`Middleware`app/App/[application]/Middleware/[namespace?]``somake:request`Request`app/App/[application]/Requests/[namespace?]``somake:resource`Resource`app/App/[application]/Resources/[model domain]`### Domain

[](#domain)

CommandeDescriptionGeneration path`somake:action`Action`app/Domain/[domain]/Actions``somake:builder`Eloquent Builder`app/Domain/[domain]/Builders``somake:data`Data`app/Domain/[domain]/Data``somake:enum`Enum`app/Domain/[domain]/Enums``somake:event`Event`app/Domain/[domain]/Events``somake:listener`Listener`app/Domain/[domain]/Listeners``somake:model`Model`app/Domain/[domain]/Models``somake:notification`Notification`app/Domain/[domain]/Notifications``somake:policy`Policy`app/Domain/[domain]/Policies`### Support

[](#support)

CommandeDescriptionGeneration path`somake:enum`Enum`app/Support/Enums``somake:middleware`Middleware`app/Support/Http/Middleware/[namespace?]``somake:provider`Service Provider`app/Support/Providers`### Other

[](#other)

CommandeDescriptionGeneration path`somake:factory`Model factory`database/factories/[modelDomain]``somake:migration`Migration`database/migrations/[migration]``somake:test`Test - contract`tests/Contract/[application]/[controller]``somake:test`Test - feature`tests/Feature/[application]/[controller]``somake:test`Test - unit`tests/Unit/[classDomain]`### Open created files in your IDE

[](#open-created-files-in-your-ide)

To open created files in your IDE, you can just need to define the `somake.ide_path` config with the binary path of your IDE.

You can also define the `IDE` environment variable (in your `.env` file for exemple).

```
IDE=/usr/bin/phpstorm
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Bastien Philippe](https://github.com/bastien-phi)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

44

—

FairBetter than 90% of packages

Maintenance46

Moderate activity, may be stable

Popularity27

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor1

Top contributor holds 73.6% 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 ~51 days

Recently: every ~88 days

Total

22

Last Release

496d ago

Major Versions

1.6.0 → 2.0.02023-08-04

2.4.0 → 3.0.02024-11-21

PHP version history (3 changes)1.0.0PHP ^8.1

2.2.0PHP ^8.2

3.0.1PHP ^8.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/19587451?v=4)[SoyHuCe](/maintainers/SoyHuCe)[@Soyhuce](https://github.com/Soyhuce)

---

Top Contributors

[![bastien-phi](https://avatars.githubusercontent.com/u/10199039?v=4)](https://github.com/bastien-phi "bastien-phi (109 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (18 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (12 commits)")[![EdenMl](https://avatars.githubusercontent.com/u/70885551?v=4)](https://github.com/EdenMl "EdenMl (9 commits)")

---

Tags

hacktoberfestlaravelstubslaravelsoyhucelaravel-somake

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/soyhuce-laravel-somake/health.svg)

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

###  Alternatives

[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M203](/packages/laravel-ai)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M131](/packages/roots-acorn)[laravel/boost

Laravel Boost accelerates AI-assisted development by providing the essential context and structure that AI needs to generate high-quality, Laravel-specific code.

3.5k21.5M602](/packages/laravel-boost)[illuminate/queue

The Illuminate Queue package.

21332.6M1.6k](/packages/illuminate-queue)[nativephp/mobile

NativePHP for Mobile

1.1k75.1k97](/packages/nativephp-mobile)[moonshine/moonshine

Laravel administration panel

1.3k253.1k81](/packages/moonshine-moonshine)

PHPackages © 2026

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