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

ActiveSymfony-bundle

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.0(1mo ago)01↑2900%proprietaryPHPPHP ^8.4

Since Mar 29Pushed 1mo 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 1mo ago

READMEChangelogDependencies (21)Versions (2)Used By (0)

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

36

—

LowBetter than 81% of packages

Maintenance90

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

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

Unknown

Total

1

Last Release

46d 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

[sylius/sylius

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

8.4k5.6M651](/packages/sylius-sylius)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[nelmio/api-doc-bundle

Generates documentation for your REST API from attributes

2.3k63.6M233](/packages/nelmio-api-doc-bundle)[sulu/sulu

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

1.3k1.3M152](/packages/sulu-sulu)[simplesamlphp/simplesamlphp

A PHP implementation of a SAML 2.0 service provider and identity provider.

1.1k12.4M193](/packages/simplesamlphp-simplesamlphp)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)

PHPackages © 2026

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