PHPackages                             daniser/stateful - 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. daniser/stateful

ActiveLibrary

daniser/stateful
================

Stateful API interface library.

0222PHPCI passing

Since Mar 18Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/daniser/stateful)[ Packagist](https://packagist.org/packages/daniser/stateful)[ RSS](/packages/daniser-stateful/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Stateful API Layer
------------------

[](#stateful-api-layer)

```
/api/{service}/{version}

    GET /state/{state}/{operation?}
    POST /{operation}/{state?}

```

```
POST /api/air/v1/search
GET  /api/air/v1/state/123/search
POST /api/air/v1/select/123
GET  /api/air/v1/state/234/select
POST /api/air/v1/book/234
GET  /api/air/v1/state/345/book

```

```
use TTBooking\Stateful\Facades\Stateful;

Stateful::service('air')->query(fly()->from('MOW')->to('LED'));
$state = Stateful::service('air')->get('123', 'search');
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance58

Moderate activity, may be stable

Popularity14

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity11

Early-stage or recently created project

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/40a68a3f1473968f24ec70a09cd3a534f657a48e7d65ce187f8af3481c416ce0?d=identicon)[daniser](/maintainers/daniser)

### Embed Badge

![Health badge](/badges/daniser-stateful/health.svg)

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

PHPackages © 2026

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