PHPackages                             hayk-mxitaryan/auto-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. [Framework](/categories/framework)
4. /
5. hayk-mxitaryan/auto-service

ActiveLibrary[Framework](/categories/framework)

hayk-mxitaryan/auto-service
===========================

A simple package to simplify laravel programming for those who use service classes to take the logic out of the controller

01PHP

Since Jan 21Pushed 3y ago1 watchersCompare

[ Source](https://github.com/hayk-mxitaryan/auto-service)[ Packagist](https://packagist.org/packages/hayk-mxitaryan/auto-service)[ RSS](/packages/hayk-mxitaryan-auto-service/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Auto Service Package
--------------------

[](#auto-service-package)

Installation:
-------------

[](#installation)

> composer require hayk-mxitaryan/auto-service

How to use package:
-------------------

[](#how-to-use-package)

### If you want to create service class and base controller with controller just add --s to your command

[](#if-you-want-to-create-service-class-and-base-controller-with-controller-just-add---s-to-your-command)

> php artisan make:controller ExampleController --s

#### And package will create service class in App\\Services folder and Base Controller in your controller folder

[](#and-package-will-create-service-class-in-appservices-folder-and-base-controller-in-your-controller-folder)

### You can also create them separately using built in commands

[](#you-can-also-create-them-separately-using-built-in-commands)

#### Creating service class

[](#creating-service-class)

> php artisan make:service-class Directory\\ExampleService

#### Creating base controller

[](#creating-base-controller)

##### !! Base Controller Command need only directory where you want create base controller !!

[](#-base-controller-command-need-only-directory-where-you-want-create-base-controller-)

> php artisan make:base-controller Directory

#### You can automatically connect all the services you want using the command

[](#you-can-automatically-connect-all-the-services-you-want-using-the-command)

##### You have to put at the end --s= service dir and service name

[](#you-have-to-put-at-the-end---s-service-dir-and-service-name)

> php artisan make:base-controller dir --s=ExampleDir\\ExampleService

#### You can specify multiple services by separating them with - sybmol

[](#you-can-specify-multiple-services-by-separating-them-with---sybmol)

> php artisan make:base-controller dir --s=ExampleDir\\ExampleService-ExampleDir2\\ExampleService2

#### If your service is in the main folder App\\Services you can just specify the name of the service

[](#if-your-service-is-in-the-main-folder-appservices-you-can-just-specify-the-name-of-the-service)

> php artisan make:base-controller dir --s=ExampleService

Thank you for your attention. Use the package to make your work with laravel easier
-----------------------------------------------------------------------------------

[](#thank-you-for-your-attention-use-the-package-to-make-your-work-with-laravel-easier)

###  Health Score

14

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity24

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/46ad0cb23a5889b960a7b22fd64c0f41e5163ec2929268c389546344c0c62723?d=identicon)[hayk-mxitaryan](/maintainers/hayk-mxitaryan)

---

Top Contributors

[![hayk-mxitaryan](https://avatars.githubusercontent.com/u/105057463?v=4)](https://github.com/hayk-mxitaryan "hayk-mxitaryan (2 commits)")

### Embed Badge

![Health badge](/badges/hayk-mxitaryan-auto-service/health.svg)

```
[![Health](https://phpackages.com/badges/hayk-mxitaryan-auto-service/health.svg)](https://phpackages.com/packages/hayk-mxitaryan-auto-service)
```

###  Alternatives

[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k39.6M299](/packages/laravel-dusk)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

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