PHPackages                             swaggest/php-code-builder - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. swaggest/php-code-builder

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

swaggest/php-code-builder
=========================

Swaggest JSON-schema enabled PHP code builder

v0.2.43(1y ago)76469.3k—2%22[5 issues](https://github.com/swaggest/php-code-builder/issues)5MITPHPPHP &gt;=5.6.0CI passing

Since Apr 27Pushed 1y ago1 watchersCompare

[ Source](https://github.com/swaggest/php-code-builder)[ Packagist](https://packagist.org/packages/swaggest/php-code-builder)[ Docs](https://github.com/swaggest/php-code-builder)[ RSS](/packages/swaggest-php-code-builder/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (3)Versions (51)Used By (5)

Swaggest JSON-schema enabled PHP code builder
=============================================

[](#swaggest-json-schema-enabled-php-code-builder)

[![Build Status](https://camo.githubusercontent.com/a8ae8fa593be15a0189cf5a0ecf99b15b5e51a11ca21037a7f55610abb632233/68747470733a2f2f7472617669732d63692e6f72672f73776167676573742f7068702d636f64652d6275696c6465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/swaggest/php-code-builder)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/afba500dfd57c62f51b59a49f4ba8182ad67d4acb350f03d43a02f32dcd5c42a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f73776167676573742f7068702d636f64652d6275696c6465722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/swaggest/php-code-builder/?branch=master)[![Code Climate](https://camo.githubusercontent.com/2f3af8a1361a7b9d0ef5a1b934585f309943581be19c5755417d0499db7c5c79/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f73776167676573742f7068702d636f64652d6275696c6465722f6261646765732f6770612e737667)](https://codeclimate.com/github/swaggest/php-code-builder)[![codecov](https://camo.githubusercontent.com/8835019c9e347f7e622f921b0306f384784a8d80446be43c13f8389920095c93/68747470733a2f2f636f6465636f762e696f2f67682f73776167676573742f7068702d636f64652d6275696c6465722f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/swaggest/php-code-builder)

This library generates PHP mapping structures defined by [JSON schema](http://json-schema.org/)using [`swaggest/json-schema`](https://github.com/swaggest/php-json-schema).

Example
-------

[](#example)

[Generated code](tests/src/Tmp/Example)

You need to add `swaggest/json-schema` to your dependencies.

```
