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

ActiveLibrary

philiprehberger/laravel-make-service
====================================

Artisan generator commands for services, DTOs, enums, actions, value objects, and interfaces

v1.0.3(yesterday)15MITPHPPHP ^8.2CI passing

Since Mar 9Pushed todayCompare

[ Source](https://github.com/philiprehberger/laravel-make-service)[ Packagist](https://packagist.org/packages/philiprehberger/laravel-make-service)[ Docs](https://github.com/philiprehberger/laravel-make-service)[ RSS](/packages/philiprehberger-laravel-make-service/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (10)Versions (5)Used By (0)

Laravel Make Service
====================

[](#laravel-make-service)

[![Tests](https://github.com/philiprehberger/laravel-make-service/actions/workflows/tests.yml/badge.svg)](https://github.com/philiprehberger/laravel-make-service/actions/workflows/tests.yml)[![Latest Version on Packagist](https://camo.githubusercontent.com/2b3c1efbf76595d069caecf9ad0ae672228741c220b8f1d11d64b646a53bd7c6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7068696c69707265686265726765722f6c61726176656c2d6d616b652d736572766963652e737667)](https://packagist.org/packages/philiprehberger/laravel-make-service)[![License](https://camo.githubusercontent.com/d8e8e2afec67cc8a0b1493dd4165491b02a83ec804574585890dceefd6ae2aa6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f7068696c69707265686265726765722f6c61726176656c2d6d616b652d73657276696365)](LICENSE)

Artisan generator commands for services, DTOs, enums, actions, value objects, and interfaces.

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

[](#requirements)

- PHP 8.2+
- Laravel 11 or 12

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

[](#installation)

```
composer require philiprehberger/laravel-make-service
```

The package is auto-discovered by Laravel. No manual provider registration is needed.

### Publishing Stubs

[](#publishing-stubs)

Publish the stubs to customize the generated output:

```
php artisan vendor:publish --tag=make-service-stubs
```

Stubs are published to `stubs/make-service/` in your application root. Once published, the commands use your local stubs instead of the package defaults.

Usage
-----

[](#usage)

All commands support the following shared flags:

FlagDescription`--test` / `-t`Also generate a PHPUnit test file in `tests/Unit/``--force` / `-f`Overwrite the file if it already exists### `make:service`

[](#makeservice)

Generates a service class in `app/Services/`.

```
php artisan make:service UserService
```

**Generated file:** `app/Services/UserService.php`

```
