PHPackages                             joy2362/service-generator - 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. joy2362/service-generator

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

joy2362/service-generator
=========================

A set of tools to make working with service easier in Laravel

3.1.15(2y ago)121891[1 issues](https://github.com/joy2362/service-generator/issues)MITPHPPHP ^8.1

Since May 24Pushed 2y ago2 watchersCompare

[ Source](https://github.com/joy2362/service-generator)[ Packagist](https://packagist.org/packages/joy2362/service-generator)[ Docs](https://github.com/joy2362/service-generator)[ RSS](/packages/joy2362-service-generator/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (8)Dependencies (11)Versions (38)Used By (0)

service-generator
=================

[](#service-generator)

A set of tools to make working with service easier in Laravel

[![Latest Version](https://camo.githubusercontent.com/3c4f323744f4d524fd8929ce9783609700defba9c240f8d3aecae59c3ceee2a5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6a6f79323336322f736572766963652d67656e657261746f722e7376673f7374796c653d666c61742d737175617265)](https://github.com/joy2362/service-generator/releases)[![MIT Licensed](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/83601248556708bf995f9af8138c20c97157e0eee81b9acd7db902c779ce511e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a6f79323336322f736572766963652d67656e657261746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/joy2362/service-generator)

Top features:
-------------

[](#top-features)

- Creates trait by using artisan command
- Creates service by using artisan command
- Creates controller service by using artisan command
- Add common functions that require to create API

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

[](#installation)

You can install this package using [Composer](https://getcomposer.org).

```
composer require joy2362/service-generator
```

Publish lang file:

```
php artisan vendor:publish --tag="service-generator-stub"
```

Publish stub file:

```
php artisan vendor:publish  --tag="service-generator-lang"
```

Usage
-----

[](#usage)

### 1. Create trait

[](#1-create-trait)

File location app/trait

```
php artisan make:trait NotifiableTrait
```

### 2. Create service

[](#2-create-service)

File location app/service

```
php artisan make:service CategoryService
```

### 3. Create controller service

[](#3-create-controller-service)

### i. create controller and service file only

[](#i-create-controller-and-service-file-only)

File location app/service &amp;&amp; app/Http/Controllers

```
php artisan make:c-s Category
```

### ii. create controller and service with API crud operation

[](#ii-create-controller-and-service-with-api-crud-operation)

File location app/service &amp;&amp; app/Http/Controllers &amp;&amp; app/Http/Requests

```
php artisan make:c-s Category --api
```

**Tip:** *if the name matches with any model then it will generate crud operation*

Changelog
---------

[](#changelog)

Please see [Releases](../../releases) for more information on what has changed recently.

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

[](#contributing)

Pull requests are more than welcome. You must follow the PSR coding standards.

Security
--------

[](#security)

If you discover any security-related issues, please email  instead of using the issue tracker.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

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 ~5 days

Recently: every ~30 days

Total

37

Last Release

908d ago

Major Versions

1.2.2 → 2.0.02023-05-24

2.3.0 → 3.0.02023-06-09

### Community

Maintainers

![](https://www.gravatar.com/avatar/2a33522c3112acfaf0b88e3074f3584f1144b0215ee41e49530ad025ed6ad3df?d=identicon)[joy2362](/maintainers/joy2362)

---

Top Contributors

[![joy2362](https://avatars.githubusercontent.com/u/49846472?v=4)](https://github.com/joy2362 "joy2362 (62 commits)")

---

Tags

laravellaravel-apilaravel-generatorlaravel-packagelaravel-servicelaravelapi-generatorApi Helperjoy2362service-generator

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/joy2362-service-generator/health.svg)

```
[![Health](https://phpackages.com/badges/joy2362-service-generator/health.svg)](https://phpackages.com/packages/joy2362-service-generator)
```

###  Alternatives

[highideas/laravel-users-online

This package will provide an online users management.

203113.2k1](/packages/highideas-laravel-users-online)[stephenjude/filament-blog

Filament Blog Builder

20317.8k](/packages/stephenjude-filament-blog)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[datomatic/nova-detached-actions

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

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

PHPackages © 2026

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