PHPackages                             nubitio/api-platform - 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. [Admin Panels](/categories/admin)
4. /
5. nubitio/api-platform

ActiveLibrary[Admin Panels](/categories/admin)

nubitio/api-platform
====================

API Platform bridge for the Nubit admin stack: data-grid filter (sort/filter/searchValue), translated OpenAPI docs with x-crud hints for @nubitio/hydra, pagination headers, and entity traits.

v0.12.1(4w ago)0270↑72.2%3MITPHPPHP &gt;=8.3

Since Jun 11Pushed 2w agoCompare

[ Source](https://github.com/nubitio/api-platform)[ Packagist](https://packagist.org/packages/nubitio/api-platform)[ Docs](https://github.com/nubitio/nubit-symfony/tree/main/packages/api-platform)[ RSS](/packages/nubitio-api-platform/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (28)Versions (39)Used By (3)

nubitio/api-platform
====================

[](#nubitioapi-platform)

API Platform bridge for the Nubit admin stack: everything a Symfony backend needs so [`@nubitio/react-admin`](https://www.npmjs.com/package/@nubitio/react-admin) can auto-generate CRUD screens from your API docs.

```
composer require nubitio/api-platform
```

What's inside
-------------

[](#whats-inside)

- **`DataGridFilter`** — implements the grid query contract (`sort`, `filter`, `searchValue`) that `@nubitio/core` serializes. Add `#[ApiFilter(DataGridFilter::class)]` to a resource and the React datagrid's filtering/sorting/search work end to end.
- **`GridVirtualFieldInterface`** — extension point for computed/joined fields with no ORM mapping. Tag implementations with `nubit.api_platform.grid_virtual_field`; `GridFilterHelper` provides the operator/parameter utilities.
- **`TranslatedDocumentationNormalizer`** — translates `ApiProperty` description i18n keys into the Hydra/OpenAPI docs and forwards `x-crud` hints that `@nubitio/hydra` turns into field definitions.
- **`ApiResponseListener`** — adds `X-Total-Count`, `X-Total-Pages`, `X-Current-Page` headers to collection responses.
- **`ExceptionListener`** — maps `Nubit\Platform\Exception\*` to consistent JSON error responses (422 with violations for `ValidationException`, etc.).
- **`BaseController`** — thin `AbstractController` with the `ApiResponse` envelope helpers.
- **Entity traits** — `TimestampableTrait`, `SoftDeletableTrait`.

Service registration
--------------------

[](#service-registration)

Until the admin bundle ships, register the services in your `config/services.yaml`(the listeners carry `#[AsEventListener]`, they just need to exist as services):

```
services:
    # Gets the api_platform.filter tag via autoconfiguration; required for
    # resources declaring filters: [DataGridFilter::class]
    Nubit\ApiPlatform\Doctrine\Filter\DataGridFilter: ~

    Nubit\ApiPlatform\OpenApi\TranslatedDocumentationNormalizer:
        decorates: api_platform.hydra.normalizer.documentation
        arguments:
            $inner: '@.inner'
            $translator: '@translator'
            $requestStack: '@request_stack'
            $apiLocale: '%env(APP_API_LOCALE)%'

    Nubit\ApiPlatform\Http\ApiResponseListener: ~
    Nubit\ApiPlatform\Http\ExceptionListener: ~

    # Your virtual grid fields, if any
    App\Grid\MyVirtualFields:
        tags: ['nubit.api_platform.grid_virtual_field']
```

License
-------

[](#license)

MIT

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance96

Actively maintained with recent releases

Popularity16

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity51

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

38

Last Release

28d ago

PHP version history (3 changes)v0.1.1PHP &gt;=8.5

v0.10.5PHP &gt;=8.2

v0.10.8PHP &gt;=8.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/990211?v=4)[Johan Guerreros](/maintainers/johangm90)[@johangm90](https://github.com/johangm90)

---

Top Contributors

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

---

Tags

symfonyHydracruddatagridapi-platformnubit

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nubitio-api-platform/health.svg)

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

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M401](/packages/easycorp-easyadmin-bundle)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M754](/packages/sylius-sylius)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M215](/packages/sulu-sulu)[oro/platform

Business Application Platform (BAP)

645143.5k116](/packages/oro-platform)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M604](/packages/shopware-core)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k14](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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