PHPackages                             toshkq93/laravel-components - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. toshkq93/laravel-components

ActiveLibrary[File &amp; Storage](/categories/file-storage)

toshkq93/laravel-components
===========================

add dtos, requests, resources,controller, repository and service (interface + class) in your project

2.0.0(6mo ago)119MITPHPPHP ^8.4

Since May 19Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/Toshkq93/laravel-components)[ Packagist](https://packagist.org/packages/toshkq93/laravel-components)[ RSS](/packages/toshkq93-laravel-components/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (3)Versions (12)Used By (0)

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

[](#installation)

Install the package via composer

```
composer require --dev toshkq93/laravel-components
```

Usage
-----

[](#usage)

Publish the config file with:

```
php artisan vendor:publish --provider=Toshkq93\Components\Providers\ComponentProvider

```

Go to the root folder of your project and enter the command:

```
php artisan make:components {namespace_model} --all

```

Example:

```
php artisan make:components App/Models/User --all
```

and your project will create:

- DTOs (input (App\\DTO\\Input) and output (App\\DTO\\Output) classes) + interfaces,
- controller (App\\Http\\Controllers\\API)
- requests (App\\Http\\Requests),
- resources (App\\Http\\Resources),
- repository and service (interface (App\\Contracts\\Repositories) + class (App\\Repositories) + base class),
- service (interface ( App\\Contracts\\Services) + class (App\\Services) + base class)

you can also use other flags in various combination:

- --dto - create DTO classes input and output,
- --controller - create controller class,
- --resource - create resource classes,
- --service - create service class,
- --request - create request classes,
- --repository - create repository class.
- --all - all of the above

After generating services and repositories, bind is automatically added to the container in the App\\Provides\\AppServiceProvider.

After the controller is generated, a resource route is automatically added depending on the file name (api - apiResource, web - resource). You can also change the path to the 'route\_path' route file in the configuration file.

Security
--------

[](#security)

If you discover any security related issues, please email ****** instead of using the issue tracker.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance69

Regular maintenance activity

Popularity8

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity72

Established project with proven stability

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

Every ~127 days

Recently: every ~310 days

Total

11

Last Release

180d ago

Major Versions

1.0.8 → 2.0.02025-11-13

PHP version history (2 changes)1.0.0PHP ^8.1

2.0.0PHP ^8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/a824e4b88a349ea9abf8ec08b564db575f10d928bf8a5bb1e04556bd6922853e?d=identicon)[Toshkq93](/maintainers/Toshkq93)

---

Tags

requestlaravelfileserviceresourcecontrollerrepositorydto

### Embed Badge

![Health badge](/badges/toshkq93-laravel-components/health.svg)

```
[![Health](https://phpackages.com/badges/toshkq93-laravel-components/health.svg)](https://phpackages.com/packages/toshkq93-laravel-components)
```

###  Alternatives

[illuminatech/multipart-middleware

'multipart/form-data' parser middleware for Laravel

34268.8k](/packages/illuminatech-multipart-middleware)[itskodinger/midia

Simple Media manager for your Laravel project

1415.8k](/packages/itskodinger-midia)

PHPackages © 2026

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