Download the PHP package decodelabs/metamorph without Composer
On this page you can find all versions of the php package decodelabs/metamorph. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download decodelabs/metamorph
More information about decodelabs/metamorph
Files in decodelabs/metamorph
Package metamorph
Short Description A flexible framework for content transformations
License MIT
Informations about the package metamorph
Metamorph
A flexible framework for content transformations
Metamorph provides an extensible framework for transforming content from one format to another through a simple and intuitive interface.
Get news and updates on the DecodeLabs blog.
Installation
Usage
Importing
Metamorph uses Veneer to provide a unified frontage under DecodeLabs\Metamorph
.
You can access all the primary functionality via this static frontage without compromising testing and dependency injection.
Transformations
Use the Metamorph frontage to manipulate and output different formats of content.
Options can be passed as the second parameter and named macros allow for bundles of options to be passed as part of the call.
Metamorph uses Archetype to load Handler
classes - the base package comes with a small set of handlers out of the box:
Markdown
The built-in Markdown Handler will use whichever appropriate Markdown library has been installed via composer.
Text
The Text Handler considers input to be plain text and allows for various manipulations. HTML wrapping is turned on by default, converting the text to Tagged Markup.
HtmlToText
The HtmlToText Handler works in the opposite direction, taking HTML input and converting it to readable plain text.
Other implementations
See Idiom and Chirp for other custom implementations of Metamorph Handlers.
Licensing
Metamorph is licensed under the MIT License. See LICENSE for the full license text.
All versions of metamorph with dependencies
symfony/polyfill-mbstring Version ^1.31
decodelabs/archetype Version ^0.3.8
decodelabs/coercion Version ^0.3
decodelabs/exceptional Version ^0.5.3
decodelabs/tagged Version ^0.19