ahmobin/laravel-service-kit

Laravel Service Kit is a PHP library that creates services, interfaces and repository class files.

Installs: 14

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/ahmobin/laravel-service-kit

v0.0.1 2024-03-11 06:42 UTC

This package is auto-updated.

Last update: 2025-10-11 10:35:00 UTC


README

This package provides a set of commands to quickly generate service, interface, and repository classes in your Laravel application.

Installation

Install the package via Composer:

composer require --dev ahmobin/laravel-service-kit

Register Service Provider:

'providers' => [
    // Other Service Providers
    \Mobin\LaravelServiceKit\LaravelServiceKitServiceProvider::class,
],

Usages:

Creating a Service Class

To create a service class, run the following command:

php artisan make:service YourClassNameService
Creating an Interface Class

To create an interface class, run the following command:

php artisan make:interface YourClassNameInterface
Creating a Repository Class

To create a repository class, run the following command:

php artisan make:repo YourClassNameRepository

Further you may bind the repository class with interface in your AppServiceProvider

Feel free to customize the class names as per your application's naming conventions.