PHPackages                             anwarachilles/nirvana-native-php - 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. anwarachilles/nirvana-native-php

ActiveLibrary[API Development](/categories/api)

anwarachilles/nirvana-native-php
================================

Lightweight &amp; simple PHP Rest Http

00PHP

Since Dec 26Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/AnwarAchilles/nirvana-native-php)[ Packagist](https://packagist.org/packages/anwarachilles/nirvana-native-php)[ RSS](/packages/anwarachilles-nirvana-native-php/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Nirvana PHP
===========

[](#nirvana-php)

Lightweight tool for building simple Rest HTTP/API in PHP programming language environment

version - Beta

Example Use
-----------

[](#example-use)

#### Install with composer

[](#install-with-composer)

```
composer require anwarachilles/nirvana-native-php
```

#### PHP structure

[](#php-structure)

Create an index.php file, then setup environment &amp; rest, like the example below.

```
Nirvana::environment([
  'Configure'=> [
    'development'=> true,
    'baseurl'=> 'http://localhost//',
  ]
]);

Nirvana::rest('GET', 'demo', function() {
  return [
    'name'=> Nirvana::method('name'),
    'code'=> Nirvana::method('code'),
  ];
});
```

```
```

API Reference
-------------

[](#api-reference)

#### Environment configure

[](#environment-configure)

PropertiesTypeDescription`development``string`**Optional**. will return response with development dataset`basedir``__DIR__`**Required** set default baseurl from the project`baseurl``string`**Required** set default baseurl from the project#### Nirvana inside Rest

[](#nirvana-inside-rest)

Method &amp; PropertiesTypeDescription`method``string`return data on method requested.`load``string`load another Rest.`data``string`**(Under Development)**`store``name`get data from store can do CRUD#### Nirvana outside Rest

[](#nirvana-outside-rest)

Method &amp; PropertiesTypeDescription`ifNotFound``void`set default 404 not found if request not have Rest.`store``name`, `data array`set data to store.#### Special handler store

[](#special-handler-store)

Method &amp; PropertiesTypeDescription`set``array`insert/create data to store`get``id`or`void`view/load data from store`put``id`, `array`update/load data from store`del``id`delete/remove data from store`find``field`, `value`or`void`view data from store with specified field and value, or only field
[![DEVNEET-ID](https://camo.githubusercontent.com/cfaf074a1218ab50fc1ac34d7e60090c447fabc26c3a8653ef6c72e6b9724733/68747470733a2f2f696b2e696d6167656b69742e696f2f616e776172616368696c6c65732f6465766e6565742d706f77657265642e7376673f7570646174656441743d31373034373135333239303236)](https://github.com/devneet-id)

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance56

Moderate activity, may be stable

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity16

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://avatars.githubusercontent.com/u/70069298?v=4)[Ahmad Hudori Anwar](/maintainers/AnwarAchilles)[@AnwarAchilles](https://github.com/AnwarAchilles)

---

Top Contributors

[![AnwarAchilles](https://avatars.githubusercontent.com/u/70069298?v=4)](https://github.com/AnwarAchilles "AnwarAchilles (28 commits)")

### Embed Badge

![Health badge](/badges/anwarachilles-nirvana-native-php/health.svg)

```
[![Health](https://phpackages.com/badges/anwarachilles-nirvana-native-php/health.svg)](https://phpackages.com/packages/anwarachilles-nirvana-native-php)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

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

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

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

PHPackages © 2026

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