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 49% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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

678d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e2d26e7f2ae7faffa153b86b7adac4068b066b16c544a92e5e3429c39ce92ef1?d=identicon)[tharindu](/maintainers/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

[timwassenburg/laravel-artisan-extender

A collection of generators for Laravel

111.4k](/packages/timwassenburg-laravel-artisan-extender)[timwassenburg/laravel-repository-generator

Generate Laravel repositories

2116.9k1](/packages/timwassenburg-laravel-repository-generator)[sunaoka/laravel-facade-generator

Provide command line generation of facade layer files.

171.9k](/packages/sunaoka-laravel-facade-generator)

PHPackages © 2026

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