PHPackages                             condenast-ru/basic-api-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. condenast-ru/basic-api-bundle

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

condenast-ru/basic-api-bundle
=============================

Basic API bundle

v3.0(4y ago)101.0k2[1 PRs](https://github.com/CondeNastDigitalRU/BasicApiBundle/pulls)MITPHPPHP ^8.1

Since May 11Pushed 4y ago1 watchersCompare

[ Source](https://github.com/CondeNastDigitalRU/BasicApiBundle)[ Packagist](https://packagist.org/packages/condenast-ru/basic-api-bundle)[ RSS](/packages/condenast-ru-basic-api-bundle/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (10)Dependencies (23)Versions (17)Used By (0)

Basic API Bundle
================

[](#basic-api-bundle)

The bundle for rapid API development without writing boilerplate code

[![Build Status](https://camo.githubusercontent.com/96e521b3f1f4eb7b6d465b9a90733e1a4c07ef4f574be2eeff1fe72127c7bd67/68747470733a2f2f7472617669732d63692e636f6d2f436f6e64654e6173744469676974616c52552f426173696341706942756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/CondeNastDigitalRU/BasicApiBundle)

The main purpose of the bundle is to work with DTOs: serialization, deserialization and validation. It doesn't know anything about the database and ORM.

Tasks solved by this bundle:

- Deserializing the request body from JSON to an object or array of objects
- Validating the deserialization result
- Serializing the response to JSON
- Serializing exceptions to JSON
- Extracting typed values from a query string
- Generating API documentation

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

[](#installation)

```
composer require condenast-ru/basic-api-bundle
```

Then bundle should be enabled in `bundles.php` file

```
