PHPackages                             asahasrabuddhe/laravel-api - 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. asahasrabuddhe/laravel-api

ActiveLibrary[API Development](/categories/api)

asahasrabuddhe/laravel-api
==========================

A package that makes developing APIs in Laravel (Lumen too) very very easy

0.3.4-beta(6y ago)13017[2 issues](https://github.com/asahasrabuddhe/laravel-api/issues)[10 PRs](https://github.com/asahasrabuddhe/laravel-api/pulls)PHP

Since Apr 24Pushed 3y agoCompare

[ Source](https://github.com/asahasrabuddhe/laravel-api)[ Packagist](https://packagist.org/packages/asahasrabuddhe/laravel-api)[ RSS](/packages/asahasrabuddhe-laravel-api/feed)WikiDiscussions master Synced today

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

Laravel API
===========

[](#laravel-api)

A powerful package designed to make developing APIs very easy. This package takes care of all the boiler-plate code to provide support for routes, controller methods and associated logic out of the box.

Please note, this package is still in development and the documentation below is subject to change in ways which can make it incompatible with previous versions. Please DO NOT use in production until 1.0 release.

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

[](#installation)

The package is currently under development and hence is not available on composer. Please use the following method to install and help build this package.

Clone the repository inside your Laravel installation as follows:

```
git clone https://github.com/asahasrabuddhe/laravel-api packages/asahasrabuddhe/laravelapi

```

Add the following lines in your composer.json file to help install the package

```
"repositories": [
        {
            "type": "path",
            "url": "packages/asahasrabuddhe/laravel-api",
            "options": {
                "symlink": true
            }
        }
    ],

```

Then, add the following lines in the require section of your composer file and run composer update.

```
"asahasrabuddhe/laravel-api": "dev-master"

```

You are now ready to use the package.

Basic Usage
-----------

[](#basic-usage)

1. To enable using this package, replace the following:

> > > a. **Models**: Replace all instances of `use Illuminate\Database\Eloquent\Model;` with `use Asahasrabuddhe\LaravelAPI\BaseModel;`. For the Laravel default user model, replace `use Illuminate\Foundation\Auth\User as Authenticatable;` with `use Asahasrabuddhe\LaravelAPI\BaseUser as Authenticatable;`

> > > b. **Controllers**: Add the following line to the top of your controller: `use Asahasrabuddhe\LaravelAPI\BaseController as Controller`

2.**Routing**: Please define the routes as following in routes/api.php file:

```
ApiRoute::group([
    'middleware' => ['api'],
    'namespace' => 'App\Http\Controllers'], function () {
        ApiRoute::resource('user', 'UserController');
        ApiRoute::resource(, );
    }
);

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.1% 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 ~55 days

Recently: every ~77 days

Total

9

Last Release

2496d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2036c363a374658395e5128f8b4d9b9920acec7e96c1c193423cf66f4e2c4579?d=identicon)[asahasrabuddhe](/maintainers/asahasrabuddhe)

---

Top Contributors

[![asahasrabuddhe](https://avatars.githubusercontent.com/u/25657923?v=4)](https://github.com/asahasrabuddhe "asahasrabuddhe (116 commits)")[![smrunal](https://avatars.githubusercontent.com/u/38530392?v=4)](https://github.com/smrunal "smrunal (3 commits)")[![rajashreeperennial](https://avatars.githubusercontent.com/u/20418295?v=4)](https://github.com/rajashreeperennial "rajashreeperennial (2 commits)")[![vrunda-mittha](https://avatars.githubusercontent.com/u/35529187?v=4)](https://github.com/vrunda-mittha "vrunda-mittha (2 commits)")[![pimplesushant-perennial](https://avatars.githubusercontent.com/u/41664235?v=4)](https://github.com/pimplesushant-perennial "pimplesushant-perennial (1 commits)")[![babulal107](https://avatars.githubusercontent.com/u/40754405?v=4)](https://github.com/babulal107 "babulal107 (1 commits)")[![pimplesushant](https://avatars.githubusercontent.com/u/3313656?v=4)](https://github.com/pimplesushant "pimplesushant (1 commits)")

### Embed Badge

![Health badge](/badges/asahasrabuddhe-laravel-api/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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