PHPackages                             sergeybruhin/laravel-service - 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. sergeybruhin/laravel-service

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

sergeybruhin/laravel-service
============================

Laravel service layer stubs and utils

v1.0.0(1mo ago)0129MITPHPPHP ^8.2

Since Nov 3Pushed 3w ago1 watchersCompare

[ Source](https://github.com/sergeybruhin/laravel-service)[ Packagist](https://packagist.org/packages/sergeybruhin/laravel-service)[ Docs](https://github.com/sergeybruhin/laravel-service)[ RSS](/packages/sergeybruhin-laravel-service/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (3)Dependencies (8)Versions (4)Used By (0)

Laravel Service Package
=======================

[](#laravel-service-package)

[![Latest Version on Packagist](https://camo.githubusercontent.com/53ad02accee9b4d8e4bc9e1e985ad5ced7f6188132fc96641d88361019e912f6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73657267657962727568696e2f6c61726176656c2d736572766963652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sergeybruhin/laravel-service)[![Total Downloads](https://camo.githubusercontent.com/63094fc095b24e12fd48b7d6eb940a6038a5095f8501dc5fba2e015028c9c455/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73657267657962727568696e2f6c61726176656c2d736572766963652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sergeybruhin/laravel-service)

`sergeybruhin/laravel-service` provides service-module generators for Laravel applications.

It creates a dedicated service structure with providers, contracts, facades, actions, handlers, events, broadcast events, listeners, jobs, commands, data objects, DTOs, and exceptions.

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

[](#requirements)

- PHP 8.2+
- Laravel 11+

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

[](#installation)

```
composer require sergeybruhin/laravel-service
```

Create a Service
----------------

[](#create-a-service)

```
php artisan service:create Delivery
```

This creates the service shell:

```
app/Services/Delivery/
  Actions/
  Commands/
  Data/
  Dto/
  Events/
  Exceptions/
  Facade/
    DeliveryService.php
  Handlers/
  Interfaces/
    DeliveryServiceContract.php
  Jobs/
  Listeners/
  Providers/
    EventServiceProvider.php
    ServiceProvider.php
  DeliveryService.php

```

You may also use the backward-compatible aliases:

```
php artisan make:service Delivery
php artisan create:service Delivery
```

Full Service Scaffold
---------------------

[](#full-service-scaffold)

```
php artisan service:create Delivery --full
```

The `--full` option also creates default extendable service artifacts:

```
Actions/DefaultAction.php
Handlers/DefaultHandler.php
Events/DefaultEvent.php
Events/DefaultBroadcastEvent.php
Listeners/DefaultListener.php
Jobs/DefaultJob.php
Commands/DefaultCommand.php
Exceptions/DeliveryException.php
Data/DefaultData.php
Dto/DefaultDto.php

```

Generate Service Artifacts
--------------------------

[](#generate-service-artifacts)

```
php artisan service:action Delivery CreateShipmentAction
php artisan service:handler Delivery SyncShipmentsHandler
php artisan service:job Delivery SyncShipmentsJob
php artisan service:event Delivery ShipmentCreatedEvent
php artisan service:event Delivery ShipmentUpdatedEvent --broadcast
php artisan service:broadcast-event Delivery ShipmentStatusChangedEvent
php artisan service:listener Delivery SendShipmentNotificationListener
php artisan service:command Delivery SyncShipmentsCommand
```

All generators support:

```
--force
--path=app/Services
--namespace=App\\Services
```

Package Support Classes
-----------------------

[](#package-support-classes)

Generated events, broadcast events, listeners, and exceptions extend package-level support classes:

```
SergeyBruhin\LaravelService\Support\Events\DefaultEvent
SergeyBruhin\LaravelService\Support\Events\BroadcastEvent
SergeyBruhin\LaravelService\Support\Listeners\DefaultListener
SergeyBruhin\LaravelService\Support\Exceptions\ServiceException

```

These defaults keep service modules consistent without copying shared abstract classes into every application.

Checklist
---------

[](#checklist)

- Add ability to create Actions for specific service
- Add ability to create Handlers for specific service
- Add ability to create Jobs for specific service
- Add ability to create Events for specific service
- Add ability to create Broadcast Events for specific service
- Add ability to create Listeners for specific service
- Add ability to create Commands for specific service
- Add full service scaffold option
- Add package-level support classes
- Add tests

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

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

Security
--------

[](#security)

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

Credits
-------

[](#credits)

- [Sergey Bruhin](https://github.com/sergeybruhin)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance94

Actively maintained with recent releases

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Every ~489 days

Total

3

Last Release

33d ago

Major Versions

0.0.2 → v1.0.02026-07-09

PHP version history (2 changes)0.0.1PHP ^7.4|^8.0

v1.0.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/08a6c60ed6a4cdd9dc4104bac89bd503265c085b15e530eb8616cc78b01db33c?d=identicon)[SergeyBruhin](/maintainers/SergeyBruhin)

---

Top Contributors

[![sergeybruhin](https://avatars.githubusercontent.com/u/8505172?v=4)](https://github.com/sergeybruhin "sergeybruhin (9 commits)")

---

Tags

laravellaravel servicesergeybruhin

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sergeybruhin-laravel-service/health.svg)

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

###  Alternatives

[laravel/ai

The official AI SDK for Laravel.

1.1k4.6M295](/packages/laravel-ai)[illuminate/queue

The Illuminate Queue package.

20433.0M1.8k](/packages/illuminate-queue)[laravel/sail

Docker files for running a basic Laravel application.

1.9k212.4M1.4k](/packages/laravel-sail)[moonshine/moonshine

Laravel administration panel

1.3k268.2k88](/packages/moonshine-moonshine)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

79227.1M211](/packages/laravel-mcp)[illuminate/session

The Illuminate Session package.

9939.9M881](/packages/illuminate-session)

PHPackages © 2026

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