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

ActiveLibrary[API Development](/categories/api)

darce/rest-bundle
=================

Darce Rest Bundle for Symfony

1.0.0(10mo ago)02proprietaryPHPPHP ^7.1.3

Since Jun 23Pushed 10mo agoCompare

[ Source](https://github.com/francesco-di-marcantonio/darce-rest-bundle)[ Packagist](https://packagist.org/packages/darce/rest-bundle)[ RSS](/packages/darce-rest-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (15)Versions (2)Used By (0)

Il bundle mette a disposizione alcune funzionalità utili per progetti che espongono API Rest, tanto per la serializzazione che per la deserializzazione delle richieste. Il bundle si basa fortemente sul bundle JMS Serializer ().

I service messi a dispozione sono:

- \\App\\Darce\\RestBundle\\Service\\RequestDeserializer, espone metodi che consentono la deserializzazione del contenuto delle richieste in nel tipo di model passato in input. Ogni elemento del json che deve essere deserializzato deve presentare l'apposita annotation di \\JMS\\Serializer\\Annotation\\Type, ed eventualmente l'annoation \\JMS\\Serializer\\Annotation\\SerializedName se il nome dell'attributo del model è diverso da quello del json. Il servizio oltre a deserializzare il Model si occupa anche di validarlo se questo presenta le apposite regole di Symfony Validator. Sia per la deserializzazione che per la validazione il servizio sfrutta il concetto dei gruppi () per avere massima flessibilità.
- \\App\\Darce\\RestBundle\\Service\\ResponseSerializer, esponde metodi che consentono la serializzazione di un oggetto, o di un'array di oggetti, di tipo \\App\\Darce\\RestBundle\\View\\SerializableViewInterface (nota, per le array non si tratta di un vincolo stretto).
- \\App\\Darce\\RestBundle\\Model\\TranslatableString e il relativo listener \\App\\Darce\\RestBundle\\EventListener\\TranslatableStringListener consentono di tradurre in maniera semplice una stringa. E' sufficiente infatti che un metodo restituisca un oggetto di tipo TranslatableString per far si che la stringa di tale metodo venga tradotta in fase di serializzazione da JMS:

`return new TranslatableString('key_string_to_translate', ['foo' => 'baz'])`

- \\App\\Darce\\RestBundle\\EventListener\\OnExceptionListener si occupa della serializzazione in un formato standard di alcune tipologie di Exception:

```
{
    "error": {
        "code": 0,
        "message": "Foo Bar",
        "violations": [
            {
                "message" : "Foo",
                "property" : "bar"
            }
        ]
    }
}

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance53

Moderate activity, may be stable

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 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

329d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9ae78d666d6cad0d400ea258ffcb7b1a034dc4e135c7eff31c538671695232d8?d=identicon)[francesco\_dimarcantonio](/maintainers/francesco_dimarcantonio)

---

Top Contributors

[![francesco-oghabi](https://avatars.githubusercontent.com/u/98045367?v=4)](https://github.com/francesco-oghabi "francesco-oghabi (2 commits)")

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/darce-rest-bundle/health.svg)](https://phpackages.com/packages/darce-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)[kimai/kimai

Kimai - Time Tracking

4.6k7.4k1](/packages/kimai-kimai)[sulu/sulu

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

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

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)

PHPackages © 2026

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