PHPackages                             psx/psx-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. [HTTP &amp; Networking](/categories/http)
4. /
5. psx/psx-bundle

ActiveSymfony-bundle[HTTP &amp; Networking](/categories/http)

psx/psx-bundle
==============

PSX Bundle

v0.1.1(10y ago)029MITPHP

Since Dec 6Pushed 10y ago1 watchersCompare

[ Source](https://github.com/chriskapp/psx-bundle)[ Packagist](https://packagist.org/packages/psx/psx-bundle)[ Docs](http://phpsx.org)[ RSS](/packages/psx-psx-bundle/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

PSX Bundle
==========

[](#psx-bundle)

This Bundle provides basic PSX functionalities to Symfony. PSX is a framework to build RESTful APIs. The bundle contains two annotations `Incoming` and `Outgoing` which give the option to specify a JSONSchema for the incoming or outgoing data. PSX formats the request and response according to the provided schema. The bundle registers a `kernel.controller` and `kernel.response`listener to handle the validation and transformation. More information about PSX at .

Usage
-----

[](#usage)

In the following a sample controller to showcase the usage. You have to use the `DataResponse` object in your controller methods so that PSX can transform the data. If no outgoing schema was defined all data passthru.

```
