PHPackages                             kapitanluffy/propel-model-parser-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. [Database &amp; ORM](/categories/database)
4. /
5. kapitanluffy/propel-model-parser-bundle

ActiveSymfony-bundle[Database &amp; ORM](/categories/database)

kapitanluffy/propel-model-parser-bundle
=======================================

parses propel models to json-fiable data

v1.0.0(10y ago)023MITPHP

Since Apr 29Pushed 10y ago1 watchersCompare

[ Source](https://github.com/kapitanluffy/propel-model-parser-bundle)[ Packagist](https://packagist.org/packages/kapitanluffy/propel-model-parser-bundle)[ RSS](/packages/kapitanluffy-propel-model-parser-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

Propel Model Parser Bundle
==========================

[](#propel-model-parser-bundle)

The PropelModelParserBundle enables Propel BaseObjects to be parsed into array, which in turn can be converted into JSON for API responses.

Unlike native BaseObject methods like toJSON(), the PropelModelParserBundle can automatically convert BaseObjects as well as their "child objects" to array, as well as add custom properties.

#### Installation:

[](#installation)

1. Install PropelModelParserBundle using Composer
2. Register bundle in AppKernel
3. In your Propel *schema.xml*, Use `kapitanluffy\PropelModelParserBundle\BaseModel` as your baseClass
4. Rebuild Propel models.

#### Usage:

[](#usage)

In your controller..

```
