PHPackages                             appaydin/pd-api - 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. appaydin/pd-api

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

appaydin/pd-api
===============

Symfony Restful Api Bundle

1.0.03(4y ago)29761MITPHPPHP &gt;=8.0.0

Since May 12Pushed 4y ago1 watchersCompare

[ Source](https://github.com/cesurapp/pd-api)[ Packagist](https://packagist.org/packages/appaydin/pd-api)[ Docs](https://github.com/appaydin/pd-api)[ RSS](/packages/appaydin-pd-api/feed)WikiDiscussions main Synced 5d ago

READMEChangelog (4)Dependencies (2)Versions (5)Used By (1)

pdApi Bundle
============

[](#pdapi-bundle)

Symfony 5 Restful Api Bundle

[![Packagist](https://camo.githubusercontent.com/402571fa3dee46a961e0241fd7f38e33be4162711491dfd4f775ffb41813c55a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f617070617964696e2f70642d6170692e737667)](https://github.com/appaydin/pd-api)[![Github Release](https://camo.githubusercontent.com/1909d3def6883edaa4e1840826f18dc40964af346d3ac75169ffefc89d5f6556/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f617070617964696e2f70642d6170692e737667)](https://github.com/appaydin/pd-api)[![license](https://camo.githubusercontent.com/bd14ce3ad6adfd845bcc946c00acb319efb0c57dd62f96af4cbc13b85b8175a9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f617070617964696e2f70642d6170692e737667)](https://github.com/appaydin/pd-api)[![PHP from Packagist](https://camo.githubusercontent.com/4d27367046b7b0f073ee05dbefc0c91c4e4194df032f60d2e30c26d691feb4cb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f617070617964696e2f70642d6170692e737667)](https://github.com/appaydin/pd-api)

- Supports XML and JSON response
- Error messages are collected under a single format.
- Language translation is applied to all error messages.
- Request body Transformer (JSON-XML) has been added.
- Normalizer has been added for form errors.
- Normalizer has been added for KnpPaginator.

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

[](#installation)

#### Step 1: Download the Bundle

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

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

```
composer require appaydin/pd-api
```

This command requires you to have Composer installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md)of the Composer documentation.

#### Step 2: Enable the Bundle

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

With Symfony 5, the package will be activated automatically. But if something goes wrong, you can install it manually.

Then, enable the bundle by adding it to the list of registered bundles in the `config/bundles.php` file of your project:

```
