PHPackages                             aplia/content-tools - 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. aplia/content-tools

ActiveLibrary[Database &amp; ORM](/categories/database)

aplia/content-tools
===================

Improved API for working with content objects in eZ publish legacy

v1.8.8(4y ago)0638MITPHPPHP &gt;=5.3

Since Sep 27Pushed 4y ago4 watchersCompare

[ Source](https://github.com/Aplia/ezp-content-tools)[ Packagist](https://packagist.org/packages/aplia/content-tools)[ Docs](https://github.com/Aplia/ezp-content-tools)[ RSS](/packages/aplia-content-tools/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (10)Dependencies (3)Versions (62)Used By (0)

Improved API for working with content objects in eZ publish legacy
==================================================================

[](#improved-api-for-working-with-content-objects-in-ez-publish-legacy)

This packages contains classes which makes it easier to work with content objects when it comes to creating and updating content. It also has functionality for migrating content using [Phinx](https://phinx.org/).

Whenever something is missing or an action fails it will throw a proper Exception, see the namespace `Aplia\Content\Exceptions`for a list of possible errors.

[![Latest Stable Version](https://camo.githubusercontent.com/3dccab2e1c94a1d54b830d1be33c92b245d1284552d390db163b64a9179247a9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61706c69612f636f6e74656e742d746f6f6c732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/aplia/content-tools)[![Minimum PHP Version](https://camo.githubusercontent.com/b3f29eb7882d2bf523390e9982827e9d2d3a4f74266ca923b512e5d02b9e4011/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230352e332d3838393242462e7376673f7374796c653d666c61742d737175617265)](https://php.net/)

ContentType
-----------

[](#contenttype)

Wrapper around eZContentClass which defines a new class with chosen attributes.

Example, creating a new content class:

```
