PHPackages                             onmoon/openapi-server-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. onmoon/openapi-server-bundle

ActiveLibrary[API Development](/categories/api)

onmoon/openapi-server-bundle
============================

Symfony bundle to create a fully-featured API server from an OpenAPI v3 specification

6.0.0(2mo ago)1117.7k—3.1%5[22 issues](https://github.com/onmoon/openapi-server-bundle/issues)[3 PRs](https://github.com/onmoon/openapi-server-bundle/pulls)MITPHPPHP ^8.2CI passing

Since Jan 26Pushed 2mo ago4 watchersCompare

[ Source](https://github.com/onmoon/openapi-server-bundle)[ Packagist](https://packagist.org/packages/onmoon/openapi-server-bundle)[ RSS](/packages/onmoon-openapi-server-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (32)Versions (34)Used By (0)

Symfony OpenApi Server Bundle
=============================

[](#symfony-openapi-server-bundle)

[![Mutation testing badge](https://camo.githubusercontent.com/d70da6312dddcac0ce5eabed00502083c832499203df34e41d6ad4260b8fae51/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d2532466f6e6d6f6f6e2532466f70656e6170692d7365727665722d62756e646c652532466d6173746572)](https://dashboard.stryker-mutator.io/reports/github.com/onmoon/openapi-server-bundle/master)[![Test Coverage](https://camo.githubusercontent.com/69bc32e638ee7357b6340d5f51e8d1e5e1f4ff7e5541f58a72f27638cddff97a/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6f6e6d6f6f6e2f6f70656e6170692d7365727665722d62756e646c652f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/onmoon/openapi-server-bundle?branch=master)[![Type Coverage](https://camo.githubusercontent.com/4a48610ded957c899a25c1b7a2d33d3d775c6b42d2e607ff71313974d79668f6/68747470733a2f2f73686570686572642e6465762f6769746875622f6f6e6d6f6f6e2f6f70656e6170692d7365727665722d62756e646c652f636f7665726167652e737667)](https://shepherd.dev/github/onmoon/openapi-server-bundle)[![Latest Stable Version](https://camo.githubusercontent.com/7d23ce0c0717e90246c7573429c42c6c7039291574816e58cb3cc106933043d2/68747470733a2f2f706f7365722e707567782e6f72672f6f6e6d6f6f6e2f6f70656e6170692d7365727665722d62756e646c652f762f737461626c65)](https://packagist.org/packages/onmoon/openapi-server-bundle)[![License](https://camo.githubusercontent.com/4ff549cfe4b613d4ef7819f6c1d888e8c2683f605a5bfe1c3d22348ce8e55c8f/68747470733a2f2f706f7365722e707567782e6f72672f6f6e6d6f6f6e2f6f70656e6170692d7365727665722d62756e646c652f6c6963656e7365)](https://packagist.org/packages/onmoon/openapi-server-bundle)

About
-----

[](#about)

This bundle can generate most of the usual boilerplate code you write when implementing an API. The code is generated from OpenAPI specifications.

The following concerns are handled by the bundle automatically:

- Route generation and routing
- Validation of incoming requests against the specification
- Strictly-typed request and response objects and API call handlers interfaces
- Calling your code containing the API call handling logic passing the request object
- Serializing of the returned response object

All you have to do is to implement the API call handler interfaces and return the provided response object.

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Run

```
composer require onmoon/openapi-server-bundle

```

Then add the bundle class to your `config/bundles.php`:

```
