PHPackages                             marko/admin-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. marko/admin-api

ActiveMarko-module[API Development](/categories/api)

marko/admin-api
===============

Admin REST API for Marko Framework

0.7.0(3mo ago)024MITPHPPHP ^8.5

Since Mar 25Pushed 4w agoCompare

[ Source](https://github.com/marko-php/marko-admin-api)[ Packagist](https://packagist.org/packages/marko/admin-api)[ RSS](/packages/marko-admin-api/feed)WikiDiscussions develop Synced 3w ago

READMEChangelogDependencies (32)Versions (18)Used By (0)

marko/admin-api
===============

[](#markoadmin-api)

Admin REST API --- exposes admin sections, menu items, and current user data as JSON endpoints for headless or SPA-based admin clients.

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

[](#installation)

```
composer require marko/admin-api
```

Requires `marko/admin` and `marko/admin-auth`.

Quick Example
-------------

[](#quick-example)

```
use Marko\AdminApi\ApiResponse;
use Marko\AdminAuth\Middleware\AdminAuthMiddleware;
use Marko\Routing\Attributes\Get;
use Marko\Routing\Attributes\Middleware;
use Marko\Routing\Http\Response;

#[Middleware(AdminAuthMiddleware::class)]
class OrderApiController
{
    #[Get('/admin/api/v1/orders')]
    public function index(): Response
    {
        return ApiResponse::paginated(
            data: $orders,
            page: 1,
            perPage: 20,
            total: 150,
        );
    }
}
```

Documentation
-------------

[](#documentation)

Full usage, API reference, and examples: [marko/admin-api](https://marko.build/docs/packages/admin-api/)

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance89

Actively maintained with recent releases

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~0 days

Total

16

Last Release

91d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/437029?v=4)[Mark Shust](/maintainers/markshust)[@markshust](https://github.com/markshust)

---

Top Contributors

[![markshust](https://avatars.githubusercontent.com/u/437029?v=4)](https://github.com/markshust "markshust (12 commits)")

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/marko-admin-api/health.svg)

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

PHPackages © 2026

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