PHPackages                             silasyudi/restboot-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. [HTTP &amp; Networking](/categories/http)
4. /
5. silasyudi/restboot-bundle

ActiveSymfony-bundle[HTTP &amp; Networking](/categories/http)

silasyudi/restboot-bundle
=========================

Bundle of annotations to make it easier and faster to develop Rest APIs with Symfony.

v3.0.0(2y ago)11.1kMITPHPPHP &gt;=7.4

Since Mar 8Pushed 2y ago1 watchersCompare

[ Source](https://github.com/silasyudi/restboot-bundle)[ Packagist](https://packagist.org/packages/silasyudi/restboot-bundle)[ RSS](/packages/silasyudi-restboot-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (8)Dependencies (10)Versions (9)Used By (0)

RestBoot
========

[](#restboot)

[![Tests](https://github.com/silasyudi/restboot-bundle/actions/workflows/tests.yml/badge.svg)](https://github.com/silasyudi/restboot-bundle/actions/workflows/tests.yml)[![Maintainability](https://camo.githubusercontent.com/a74848a8edf5dcf25b578c9fa71e5b1b11fed74a4ed7eef52211fe7ec1af276d/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f36653036643934653434363862316538663635352f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/silasyudi/restboot-bundle/maintainability)[![Test Coverage](https://camo.githubusercontent.com/a5ba0758b8f67e4a3ec97858506d241a8ff6ae75c97df4751a60e35b3bccd496/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f36653036643934653434363862316538663635352f746573745f636f766572616765)](https://codeclimate.com/github/silasyudi/restboot-bundle/test_coverage)

Symfony package to speed up the development of rest apis.

Summary
-------

[](#summary)

- [Language / Idioma](#language--idioma)
- [Instalation](#instalation)
- [Requirements](#requirements)
- [Features](#features)
- [Documentation](#documentation)

Language / Idioma
-----------------

[](#language--idioma)

Leia a versão em português 🇧🇷 [aqui](README_PT_BR.md).

Instalation
-----------

[](#instalation)

```
composer require silasyudi/restboot-bundle
```

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

[](#requirements)

- PHP 7.4+
- Composer
- Symfony 4.4+ / 5+
- Doctrine 2+

Features
--------

[](#features)

### Convert payloads into objects in the controller methods

[](#convert-payloads-into-objects-in-the-controller-methods)

With @Body and @Query annotations, you can automatically convert your payloads and queries into objects in the controller methods.

#### Example without RestBoot:

[](#example-without-restboot)

```
/**
 * Payload converted with some serializer
 * @Route("/myAction", methods={"POST"})
 */
public function __invoke(Request $request, SerializerInterface $serializer)
{
    $myObject = $serializer->deserialize(
        $request->getContent(),
        MyObject::class,
        'json'
    );
    ...
```

#### Example with RestBoot:

[](#example-with-restboot)

```
use SilasYudi\RestBootBundle\Rest\Annotation\Body;

/**
 * Payload converted with @Body annotation
 * @Route("/myAction", methods={"POST"})
 * @Body("myObject")
 */
public function __invoke(MyObjectDTO $myObject)
{
    ...
```

### Easily manage the Doctrine transaction

[](#easily-manage-the-doctrine-transaction)

With @Transaction annotation, you can reduce the verbosity of Doctrine transaction management.

#### Example without RestBoot:

[](#example-without-restboot-1)

```
/**
 * @Route("/myAction", methods={"POST"})
 */
public function __invoke()
{
    $connection = $this->getDoctrine()->getConnection();

    try {
        $connection->beginTransaction();

        $this->service->someAction();

        if ($connection->isTransactionActive()) {
            $connection->commit();
        }
    } catch (SomeException $exception) {
        if ($connection->isTransactionActive()) {
            $connection->rollback();
        }
    }

    ...
```

#### Example with RestBoot:

[](#example-with-restboot-1)

```
use SilasYudi\RestBootBundle\Transaction\Annotation\Transaction;

...

/**
 * @Route("/myAction", methods={"POST"})
 * @Transaction("myConnection")
 */
public function __invoke()
{
    $this->service->someAction();
    ...
```

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

[](#documentation)

**English** 🇺🇸

- [REST Converter Annotations](Documentation/REST.md)
- [Transaction Annotation](Documentation/TRANSACTION.md)

**Portuguese** 🇧🇷

- [REST Converter Annotations](Documentation/REST_PT_BR.md)
- [Transaction Annotation](Documentation/TRANSACTION_PT_BR.md)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Recently: every ~114 days

Total

8

Last Release

1055d ago

Major Versions

v0.1 → v1.0.02022-03-19

v1.0.2 → v2.0.02022-05-14

v2.1.0 → v3.0.02023-06-29

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4693297?v=4)[Silas Yudi](/maintainers/silasyudi)[@silasyudi](https://github.com/silasyudi)

---

Top Contributors

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

---

Tags

annotationsapibundlecontrollersphprestsymfonytransactionsapisymfonybundlerestannotationscontrollerstransactions

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/silasyudi-restboot-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/silasyudi-restboot-bundle/health.svg)](https://phpackages.com/packages/silasyudi-restboot-bundle)
```

###  Alternatives

[api-platform/core

Build a fully-featured hypermedia or GraphQL API in minutes!

2.6k48.1M236](/packages/api-platform-core)[sulu/sulu

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

1.3k1.3M152](/packages/sulu-sulu)[api-platform/symfony

Symfony API Platform integration

323.2M67](/packages/api-platform-symfony)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[api-platform/serializer

API Platform core Serializer

223.4M31](/packages/api-platform-serializer)[kadirov/api-starter-kit

443.9k](/packages/kadirov-api-starter-kit)

PHPackages © 2026

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