PHPackages                             mivu/rscapihandler-laravel - 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. [API Development](/categories/api)
4. /
5. mivu/rscapihandler-laravel

ActiveLibrary[API Development](/categories/api)

mivu/rscapihandler-laravel
==========================

simple package for handle api in laravel

1.0.2(2y ago)514MITPHPPHP &gt;=8.0

Since Aug 6Pushed 2y ago1 watchersCompare

[ Source](https://github.com/miftah704/rsc-api-handler-laravel)[ Packagist](https://packagist.org/packages/mivu/rscapihandler-laravel)[ RSS](/packages/mivu-rscapihandler-laravel/feed)WikiDiscussions main Synced yesterday

READMEChangelog (1)DependenciesVersions (3)Used By (0)

rsc-api-handler-laravel
=======================

[](#rsc-api-handler-laravel)

A simple package for handling errors, JSON templates, and repository patterns including Artisan commands.

instalation
===========

[](#instalation)

```
composer require mivu/rscapihandler-laravel
```

Features
========

[](#features)

- Create Artisan Handlers
- Create Artisan Services
- Create Artisan Repositories
- JSON API Response Format
- Model Response Format

Basic Usage
===========

[](#basic-usage)

Artisan Commands

```
 php artisan make:repository Miftah
```

Output Path : App-&gt;Repositories-&gt;MiftahRepository.php AND App-&gt;Services-&gt;MiftahService.php

```
 php artisan make:handler Miftah
```

Output Path : App-&gt;Handlers-&gt;MiftahHandler.php

```
 php artisan make:enum Miftah
```

Output Path : App-&gt;Enums-&gt;MiftahEnum.php

Helpers

- Validation Handler

```
    ValidationHandler::check([
            'page' => 'required|numeric',
            'limit' => 'required|numeric',
        ]);
```

- Response Handler If you have implemented a service and repository, you can create an inside function for response handling.

```
    public function limit(int $limit, $filter)
    {
        $res = $this->repository->limit($limit, $filter);
        return ResponseHandlers::tryCatch($res, 'miftahs', true);
    }
```

- Api Response Handlers Alternatively, you can create an API response and the output will be automatically in JSON format.

```
    public function find($id)
    {
        try {
            return $this->repository->find($id);
        } catch (\Exception $e) {
            ApiHandlers::exception($e);
        }
    }
```

Here's an example of the output: [![output](https://github.com/miftah704/rsc-api-handler-laravel/raw/main/output-exam.png)](https://github.com/miftah704/rsc-api-handler-laravel/blob/main/output-exam.png)

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

Every ~0 days

Total

2

Last Release

1062d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/82510987?v=4)[Miftah Shidiq](/maintainers/miftah704)[@miftah704](https://github.com/miftah704)

---

Top Contributors

[![miftah704](https://avatars.githubusercontent.com/u/82510987?v=4)](https://github.com/miftah704 "miftah704 (2 commits)")

---

Tags

apiartisanhandlerlaravelpackagetemplateresponseapilaravelhelperspackagemivu

### Embed Badge

![Health badge](/badges/mivu-rscapihandler-laravel/health.svg)

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

###  Alternatives

[joisarjignesh/bigbluebutton

BigBlueButton Server API Library for Laravel

162155.1k1](/packages/joisarjignesh-bigbluebutton)[vinelab/api-manager

Laravel API Manager Package - beatify and unify your responses with the least effort possible.

382.1k](/packages/vinelab-api-manager)[gregoriohc/laravel-trello

A Laravel wrapper and facade package for the Trello API

3366.8k2](/packages/gregoriohc-laravel-trello)

PHPackages © 2026

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