PHPackages                             micro-module/rest-bundle - 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. micro-module/rest-bundle

ActiveSymfony-bundle[API Development](/categories/api)

micro-module/rest-bundle
========================

Reusable REST API infrastructure bundle: API versioning, base controllers, DTO mapping, JSON path filtering, event listeners, CSRF protection, and pagination/HATEOAS traits

v0.1.1(2mo ago)01.7k↑163.6%1proprietaryPHPPHP ^8.4

Since Mar 31Pushed 3mo agoCompare

[ Source](https://github.com/temafey/micro_modules_rest_bundle)[ Packagist](https://packagist.org/packages/micro-module/rest-bundle)[ RSS](/packages/micro-module-rest-bundle/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (42)Versions (3)Used By (1)

MicroModule REST Bundle
=======================

[](#micromodule-rest-bundle)

Reusable REST API infrastructure bundle for Symfony-based microservices. Provides standardized HTTP-layer components to eliminate duplication across projects.

Features
--------

[](#features)

- **API Versioning** — Version manager, resolver, registry, and response builder
- **Base Controllers** — Abstract API controller with common REST patterns
- **DTO Mapping** — Symfony ObjectMapper integration with custom transforms (UUID, DateTime)
- **JSON Path Filtering** — Response field filtering via JSON Path expressions
- **Event Listeners** — API versioning, process UUID, trailing slash redirect, domain exception handling
- **CSRF Protection** — Stateless CSRF token service and validation listener
- **Pagination &amp; HATEOAS Traits** — Pagination, resource links, and JSON path filter traits

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

[](#installation)

```
composer require micro-module/rest-bundle
```

Configuration
-------------

[](#configuration)

Register the bundle in `config/bundles.php`:

```
return [
    // ...
    MicroModule\Rest\RestBundle::class => ['all' => true],
];
```

Requirements
------------

[](#requirements)

- PHP ^8.4
- Symfony ^7.0 || ^8.0

Optional Dependencies
---------------------

[](#optional-dependencies)

- `symfony/object-mapper` — for DtoMapper component
- `symfony/json-path` — for JsonPathFilter component
- `ramsey/uuid` — for ProcessUuidListener and UuidToStringTransform
- `symfony/security-csrf` — for CSRF protection components

License
-------

[](#license)

Proprietary

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance83

Actively maintained with recent releases

Popularity21

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity42

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 ~12 days

Total

2

Last Release

77d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bb0e6b6ff14b9d53d413617c42ddb1f83ff451c32beac02bc4ebebb6cfabeb00?d=identicon)[temafey](/maintainers/temafey)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StyleECS

Type Coverage Yes

### Embed Badge

![Health badge](/badges/micro-module-rest-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/micro-module-rest-bundle/health.svg)](https://phpackages.com/packages/micro-module-rest-bundle)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.5M377](/packages/easycorp-easyadmin-bundle)[symfony/framework-bundle

Provides a tight integration between Symfony components and the Symfony full-stack framework

3.6k246.0M11.1k](/packages/symfony-framework-bundle)[sulu/sulu

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

1.3k1.4M196](/packages/sulu-sulu)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.4M521](/packages/shopware-core)[shopware/storefront

Storefront for Shopware

674.4M210](/packages/shopware-storefront)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9317.2k55](/packages/open-dxp-opendxp)

PHPackages © 2026

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