PHPackages                             tharindu/service-maker - 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. [CLI &amp; Console](/categories/cli)
4. /
5. tharindu/service-maker

ActiveLibrary[CLI &amp; Console](/categories/cli)

tharindu/service-maker
======================

A Laravel package to generate service files via Artisan command.

v1.0.0(1y ago)017MITPHPPHP ^8.2

Since Jul 8Pushed 1y ago1 watchersCompare

[ Source](https://github.com/TharinduWijayarathna/ServiceMaker)[ Packagist](https://packagist.org/packages/tharindu/service-maker)[ RSS](/packages/tharindu-service-maker/feed)WikiDiscussions main Synced 1mo ago

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

Service Maker
=============

[](#service-maker)

tharindu/service-maker is a Composer package for Laravel that provides an Artisan command to generate service files. This package simplifies the process of creating service classes tailored to your Laravel application's needs.

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

[](#installation)

You can install the package via Composer:

```
composer require tharindu/service-maker
```

Usage
-----

[](#usage)

To generate a service file, use the Artisan command:

```
php artisan make:service
```

Follow the prompts to specify whether to create a folder for the service, the folder name, model name related to the service, and the service name itself. The command will create the necessary service file in your Laravel application's `app/Services` directory.

Example
-------

[](#example)

Here's an example of how the generated service file looks:

```
product = $product;
    }

    // Example methods:
    public function store($data)
    {
        return $this->product->create($data);
    }

    public function update($data, $id)
    {
        return $this->product->where('id', $id)->update($data);
    }

    public function destroy($id)
    {
        return $this->product->destroy($id);
    }

    public function show($id)
    {
        return $this->product->find($id);
    }

    public function all()
    {
        return $this->product->all();
    }
}
```

Replace `ProductService`, `Product`, and methods as per your application's requirements.

License
-------

[](#license)

This package is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

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

[](#contributing)

Contributions are welcome! Feel free to submit issues and pull requests.

Author
------

[](#author)

- Tharindu Wijayarathna
- Contact:

Acknowledgements
----------------

[](#acknowledgements)

Thank you to the Laravel community and contributors."

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

724d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/84404?v=4)[Tharindu Madushanka](/maintainers/tharindu)[@tharindu](https://github.com/tharindu)

---

Top Contributors

[![TharinduWijayarathna](https://avatars.githubusercontent.com/u/81649942?v=4)](https://github.com/TharinduWijayarathna "TharinduWijayarathna (8 commits)")

---

Tags

laravelgeneratorservice

### Embed Badge

![Health badge](/badges/tharindu-service-maker/health.svg)

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

###  Alternatives

[unopim/unopim

UnoPim Laravel PIM

10.5k2.4k](/packages/unopim-unopim)[ronasit/laravel-entity-generator

Provided console command for generating entities.

2053.1k](/packages/ronasit-laravel-entity-generator)[ecotone/laravel

Ecotone for Laravel — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Laravel Queue, via PHP attributes.

21318.6k3](/packages/ecotone-laravel)[api-platform/laravel

API Platform support for Laravel

58170.4k13](/packages/api-platform-laravel)[codewithdennis/larament

Larament is a time-saving starter kit to quickly launch Laravel 13.x projects. It includes FilamentPHP 5.x pre-installed and configured, along with additional tools and features to streamline your development workflow.

3891.8k](/packages/codewithdennis-larament)[timwassenburg/laravel-artisan-extender

A collection of generators for Laravel

121.9k](/packages/timwassenburg-laravel-artisan-extender)

PHPackages © 2026

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