PHPackages                             area17/component-transformers - 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. area17/component-transformers

ActiveLibrary

area17/component-transformers
=============================

Component transformers for Twill apps

v0.2(2y ago)11.3k↓100%Apache-2.0PHPPHP ^7.4|^8.0|^8.1

Since Apr 10Pushed 2y ago4 watchersCompare

[ Source](https://github.com/area17/component-transformers)[ Packagist](https://packagist.org/packages/area17/component-transformers)[ Docs](https://github.com/area17/component-transformers)[ RSS](/packages/area17-component-transformers/feed)WikiDiscussions 0.x Synced 1mo ago

READMEChangelog (2)Dependencies (6)Versions (4)Used By (0)

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
--------------

[](#publish-config)

```
php artisan vendor:publish --tag=component-transformers-config
```

Creating a Transformer
----------------------

[](#creating-a-transformer)

You can manually create a file in your `app` directory using the following as a base:

```
