PHPackages                             khancode/laravelbaserest - 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. khancode/laravelbaserest

ActiveLibrary[API Development](/categories/api)

khancode/laravelbaserest
========================

:description

2.0.4(2y ago)2925MITPHPCI failing

Since Mar 12Pushed 1y ago1 watchersCompare

[ Source](https://github.com/culhan/LaravelBaseRest)[ Packagist](https://packagist.org/packages/khancode/laravelbaserest)[ Docs](https://github.com/culhan/laravelbaserest)[ RSS](/packages/khancode-laravelbaserest/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (7)Versions (22)Used By (0)

LaravelBaseRest
===============

[](#laravelbaserest)

[![Latest Version on Packagist](https://camo.githubusercontent.com/4d8ee8a032118b92155aaf0480e5674c9f3ccd3afafaa5277bdf5d16aa5eca98/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b68616e636f64652f6c61726176656c62617365726573742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/khancode/laravelbaserest)[![Total Downloads](https://camo.githubusercontent.com/0cfdba3d14cc76afd80a82b52deae18b3fe346d1356716677e43eb777b6b47f2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b68616e636f64652f6c61726176656c62617365726573742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/khancode/laravelbaserest)[![Build Status](https://camo.githubusercontent.com/1149659f559911e56877a61dfe837deb4459925b672b32932a7c086821cc1ab0/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6b68616e636f64652f6c61726176656c62617365726573742f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/khancode/laravelbaserest)[![StyleCI](https://camo.githubusercontent.com/be645f521cff815472bebbce03acd9686d7b39ba6f4deb2888a3b3f2bbe6982a/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3137353135323037372f736869656c64)](https://styleci.io/repos/175152077)

This is where your description should go. Take a look at [contributing.md](contributing.md) to see a to do list.

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

[](#installation)

Via Composer

```
$ composer require khancode/laravelbaserest
```

Publish

```
$ php artisan vendor:publish --tag=laravelbaserest.lang

```

Usage
-----

[](#usage)

Searching

Parameter

```
search
search_column
search_text
search_condition ["and, or"]
search_operator ["=, !=, =, like"]

```

search array

```
search_column[0]
search_text[0]
search_condition[0] ["and, or"]
search_operator[0] ["=, !=, =, like"]

```

sort

```
sort_column
sort_type ["asc, desc"]

```

sort array

```
sort_column[0]
sort_type[0] ["asc, desc"]

```

hide attribute

```
default show_{{attr_name}} = 1
to hide attribute show_{{attr_name}} = 0

```

this for base model

```
use KhanCode\LaravelBaseRest\BaseModel;

```

this for base Repository

```
use KhanCode\LaravelBaseRest\BaseRepository;

```

this for base Service

```
use KhanCode\LaravelBaseRest\BaseService;

```

add this code if you want to use json default base return at App\\Exceptions\\Handler.php

```
public function render($request, Exception $exception)
{
    if( method_exists($exception,'responseJson') )
    {
        return $exception->responseJson();
    }

    return parent::render($request, $exception);
}

```

Change log
----------

[](#change-log)

Please see the [changelog](changelog.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [contributing.md](contributing.md) for details and a todolist.

Security
--------

[](#security)

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

Credits
-------

[](#credits)

- [A'mal Sholihan](https://github.com/culhan)
- [All Contributors](../../contributors)

License
-------

[](#license)

license. Please see the [license file](license.md) for more information.

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 74.2% 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 ~87 days

Recently: every ~256 days

Total

21

Last Release

875d ago

Major Versions

1.9.5 → 2.0.02021-02-27

### Community

Maintainers

![](https://www.gravatar.com/avatar/9a0989aaacb7d7df7942c8148007e74e3a6a73a43ff8c4d6ae4f0aa6529d00c1?d=identicon)[culhan](/maintainers/culhan)

---

Top Contributors

[![culhan](https://avatars.githubusercontent.com/u/3957321?v=4)](https://github.com/culhan "culhan (72 commits)")[![amalsholihan](https://avatars.githubusercontent.com/u/34848089?v=4)](https://github.com/amalsholihan "amalsholihan (25 commits)")

---

Tags

laravelLaravelBaseRest

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/khancode-laravelbaserest/health.svg)

```
[![Health](https://phpackages.com/badges/khancode-laravelbaserest/health.svg)](https://phpackages.com/packages/khancode-laravelbaserest)
```

###  Alternatives

[darkaonline/l5-swagger

OpenApi or Swagger integration to Laravel

2.9k34.0M112](/packages/darkaonline-l5-swagger)[knuckleswtf/scribe

Generate API documentation for humans from your Laravel codebase.✍

2.3k12.2M45](/packages/knuckleswtf-scribe)[surface/laravel-webfinger

A Laravel package to create an ActivityPub webfinger.

113.8k](/packages/surface-laravel-webfinger)[amin3536/laravel-api-user-provider

this package help you to provide your user from different service ( useful in micro service specially )

112.1k](/packages/amin3536-laravel-api-user-provider)

PHPackages © 2026

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