PHPackages                             visual-craft/rest-base-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. visual-craft/rest-base-bundle

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

visual-craft/rest-base-bundle
=============================

Symfony Bundle which provides base foundation for REST API applications

v0.6.0(4mo ago)212.4k↓30.1%1MITPHPPHP &gt;=8.2CI passing

Since Apr 18Pushed 4mo ago4 watchersCompare

[ Source](https://github.com/Visual-Craft/rest-base-bundle)[ Packagist](https://packagist.org/packages/visual-craft/rest-base-bundle)[ RSS](/packages/visual-craft-rest-base-bundle/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (4)Dependencies (40)Versions (9)Used By (0)

RestBase Bundle
===============

[](#restbase-bundle)

Symfony Bundle which provides base foundation for REST API applications. Features include:

- Exception converter: transforms exceptions and errors to structured responses (JSON, XML).
- (Deprecated since v0.3) Request body deserializer: RESTfull decoding of HTTP request body and Accept headers.
- (Deprecated since v0.3) Failing validator: data validator integrated with Exception converter.
- Possibility to check Api zone using Request attribute.
- Since Symfony 6.3 support: [MapRequestPayload, MapQueryString](https://symfony.com/blog/new-in-symfony-6-3-mapping-request-data-to-typed-objects), [MapQueryParameter](https://symfony.com/blog/new-in-symfony-6-3-query-parameters-mapper)

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

[](#installation)

### Step 1: Install the bundle

[](#step-1-install-the-bundle)

```
$ composer require visual-craft/rest-base-bundle

```

### Step 2: Enable the bundle

[](#step-2-enable-the-bundle)

If you are not using Flex, you also have to enable the bundle by adding the following line in the app/AppKernel.php:

```
