Download the PHP package area17/component-transformers without Composer
On this page you can find all versions of the php package area17/component-transformers. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download area17/component-transformers
More information about area17/component-transformers
Files in area17/component-transformers
Package component-transformers
Short Description Component transformers for Twill apps
License Apache-2.0
Homepage https://github.com/area17/component-transformers
Informations about the package component-transformers
Component Transformers
Design systems are made up of components designed to be used everywhere but often code used to parse data for the components is repeated during integration. The Component Transformers package allows you to create a transformer for each component and variation to transform the data coming from the application into a format the front end components will be able to consume.
It's designed to be used with Twill and works with both page and block data.
Publish config
Creating a Transformer
You can manually create a file in your app
directory using the following as a base:
or you can automatically create one with the built in command:
This will create a file like the one above in your app
directory. If a file with the same name as the component name you entered, if will add a method to the end of that file using the variation name.
Using a transformer
In a block
In a controller
All versions of component-transformers with dependencies
spatie/laravel-package-tools Version ^1.13.0
illuminate/filesystem Version ^7.0|^8.0|^9.0|^10.0
illuminate/support Version ^7.0|^8.0|^9.0|^10.0