PHPackages                             sagar290/alpine-rest-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. sagar290/alpine-rest-api

ActiveLibrary[API Development](/categories/api)

sagar290/alpine-rest-api
========================

This a restapi plugin for wordpress.

10PHP

Since Jan 18Pushed 4y ago1 watchersCompare

[ Source](https://github.com/sagar290/AlpineRestApi)[ Packagist](https://packagist.org/packages/sagar290/alpine-rest-api)[ RSS](/packages/sagar290-alpine-rest-api/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

AlpineRestApi
=============

[](#alpinerestapi)

Wordpress rest api. Easy to make and customise

Supported method

```
    'GET',
    'POST',
    'PUT',
    'PATTCH',
    'DELETE',
    'PURGE',
    'UNLINK',
    'HEAD',

```

Method parameter

```
Route::get('namespace', 'endpoint', 'callback',  'permission_callback');

```

Example

```
use Sagar290\RestApi\AlpineRestApi as Route

function method($request) {
    $name  =  $request['name'];
    wp_send_json_success($name, 200);
}

Route::post('namespace/v1', '/addProduct', "method");
```

You can access this by

Body

```
{
    "name": "sagar"
}
```

```
POST https://yourdomin.com/wp-json/namespace/v1/addProduct

```

Response

```
{

    "success":  true,
    "data":  "Sagar"

}
```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity27

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/6b6f57b5e998811972fc43fa808829f4560d46efb7b7fbe2ecb80c1da72dedde?d=identicon)[sagar290](/maintainers/sagar290)

---

Top Contributors

[![sagar290](https://avatars.githubusercontent.com/u/7631656?v=4)](https://github.com/sagar290 "sagar290 (13 commits)")

### Embed Badge

![Health badge](/badges/sagar290-alpine-rest-api/health.svg)

```
[![Health](https://phpackages.com/badges/sagar290-alpine-rest-api/health.svg)](https://phpackages.com/packages/sagar290-alpine-rest-api)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[botman/driver-telegram

Telegram driver for BotMan

93452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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