Using the eZ Platform PHP API in Symfony Commands and Controllers
eZ Platform has an API exposed to PHP developers through the Symfony service mechanism. The eZ Platform documentation is getting better by the day and there are comprehensive references for the core functionalities like...
- eZ Platform Criteria Reference
- eZ Platform Limitations Reference
- eZ Platform FieldTypes Reference
- eZ Platform Twig Functions Reference
While they do provide the information, the StackOverflow Generation™ prefers concrete examples. And let's face it, "reading the man page" is often a wall of text that only frustrates you. The documentation team has started working on cookbooks and tutorials:
- eZ Platform field Type Tutorial
- How to authenticate a user with multiple user providers in eZ Platform
- How to convert request parameters into eZ Platform API objects
- How to create a new design using Bundle Inheritance in Symfony and eZ Platform
- How to customize UserHash generation in eZ Platform
- How to expose eZ Platform SiteAccess aware configuration for your bundle
- How to implement a Custom Tag for XMLText FieldType in eZ Platform
- How to listen to eZ Platform Core events
- How to paginate eZ Platform API search results
- How to retrieve root location in eZ Platform
- How to run long-running console commands in eZ Platform
- How to use a custom controller in eZ Platform to display a content item or location
- Import settings from a Symfony bundle to eZ Platform
The eZ Platform API has been stable for a number of years (in eZ Publish) and there is a great Cookbook bundle with practical examples for common tasks, but they are bit hard to find and access for human search interfaces. I split them on this site and published them with a descriptive title:
- How to search and find Content with the eZ Platform PHP API (part 1/3)
- How to search and find Content with the eZ Platform PHP API (part 2/3)
- How to search and find Content with the eZ Platform PHP API (part 3/3)
- How to create Content with the eZ Platform PHP API
- How to copy Content with the eZ Platform PHP API
- How to load and view Content with the eZ Platform PHP API
- How to load and view Content Metadata with the eZ Platform PHP API
- How to update Content with the eZ Platform PHP API
- How to copy and move Subtrees with the eZ Platform PHP API
- How to list Sections with the eZ Platform PHP API
- How to list Sections with the eZ Platform PHP API
- How to hide a Location with the eZ Platform PHP API
- How to delete a Subtree with the eZ Platform PHP API
- How to create an Image with the eZ Platform PHP API
- How to create a Content Type with the eZ Platform PHP API
- How to Browse Locations with the eZ Platform PHP API
- How to assign Content to a Section with the eZ Platform PHP API
- How to add Relations to Content with the eZ Platform PHP API
- How to add Locations to Content with the eZ Platform PHP API
Happy hacking! :)