PHPackages                             portrino/typo3-fractal-view - 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. [Templating &amp; Views](/categories/templating)
4. /
5. portrino/typo3-fractal-view

AbandonedArchivedLibrary[Templating &amp; Views](/categories/templating)

portrino/typo3-fractal-view
===========================

Integrates the fractal package (https://fractal.thephpleague.com/) into TYPO3 Extbase

0.2.0(8y ago)334GPL-2.0+PHPPHP &gt;=5.5.0

Since Sep 4Pushed 8y ago7 watchersCompare

[ Source](https://github.com/portrino/typo3-fractal-view)[ Packagist](https://packagist.org/packages/portrino/typo3-fractal-view)[ Docs](https://github.com/portrino/typo3-fractal)[ RSS](/packages/portrino-typo3-fractal-view/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (4)Versions (7)Used By (0)

TYPO3 Fractal View
==================

[](#typo3-fractal-view)

[![Build Status](https://camo.githubusercontent.com/26971888a23888720d97263ac34c7766a030f0860dad1162c6af29b3c673affa/68747470733a2f2f7472617669732d63692e6f72672f706f727472696e6f2f7479706f332d6672616374616c2d766965772e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/portrino/typo3-fractal-view)[![Code Climate](https://camo.githubusercontent.com/1dd110d9a042072cf36fb77096915612ed6d13f64d9c952ca982727a63e344ff/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f706f727472696e6f2f7479706f332d6672616374616c2d766965772f6261646765732f6770612e737667)](https://codeclimate.com/github/portrino/typo3-fractal-view)[![Test Coverage](https://camo.githubusercontent.com/39ad696450f74bd130032ab714ab058ebbb70b013dd51795c4bfcfd79797faaf/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f706f727472696e6f2f7479706f332d6672616374616c2d766965772f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/portrino/typo3-fractal-view/coverage)[![Issue Count](https://camo.githubusercontent.com/eabc13fceea901455cb5731e6a03fd2bd5a27c1d38446567430efbb13dc6e9d3/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f706f727472696e6f2f7479706f332d6672616374616c2d766965772f6261646765732f69737375655f636f756e742e737667)](https://codeclimate.com/github/portrino/typo3-fractal-view)[![Latest Stable Version](https://camo.githubusercontent.com/c067ab8f204f82e9afe29e4c7538a3009859fd05d96cdb20acae07ec93ef68c1/68747470733a2f2f706f7365722e707567782e6f72672f706f727472696e6f2f7479706f332d6672616374616c2d766965772f76657273696f6e)](https://packagist.org/packages/portrino/typo3-fractal-view)[![Total Downloads](https://camo.githubusercontent.com/2e23433ad7406da53f6cb08aac727c3322843cf77e7a2c559996239a0bb776c0/68747470733a2f2f706f7365722e707567782e6f72672f706f727472696e6f2f7479706f332d6672616374616c2d766965772f646f776e6c6f616473)](https://packagist.org/packages/portrino/typo3-fractal-view)

Integrates the fractal package () into TYPO3 Extbase

Installation
------------

[](#installation)

You need to add the repository into your composer.json file

```
    composer require portrino/typo3-fractal-view
```

### Extbase view

[](#extbase-view)

You can prepend `?tx_par_pi1[format]=json` to your action controller request and extbase renders the corresponding view for you. By putting the FractalView class into the `$viewFormatToObjectNameMap` or `$defaultViewObjectName` extbase is able to get the correct view class for your request.

```
use Portrino\Typo3FractalView\Mvc\View\FractalView;
use Foo\Bar\Transformer\BookingTransformer;

class BookingController
{
    /**
     * @var array
     */
    protected $viewFormatToObjectNameMap = [
        'json' => FractalView::class
    ];

    /**
     * @var string
     */
    protected $defaultViewObjectName = FractalView::class;

    /**
     * Action Show
     *
     * @param \Foo\Bar\Domain\Model\Booking $booking
     *
     * @return void
     */
    public function showAction($booking)
    {
        $this->view->assign('booking', $booking);
        $view->setConfiguration([
            'booking' => BookingTransformer::class
        ]);
        $this->view->setVariablesToRender(['booking']);
    }

}
```

The only thing you have to do is implement the `BookingTransformer` class by your own like described here:

Example:

```
namespace Foo\Bar\Transformer;

use Foo\Bar\Domain\Model\Booking;

class BookingTransformer
{
   /**
     * @param Booking $booking
     * @return array
     */
    public function transform(Booking $booking)
    {
        return [
            'uid' => $booking->getUid(),
            'start' => $booking->getStart()->format(DateTime::ISO8601),
            'end' => $booking->getEnd()->format(DateTime::ISO8601)
        ];
    }
}
```

Authors
-------

[](#authors)

[![](https://avatars0.githubusercontent.com/u/726519?s=40&v=4)](https://avatars0.githubusercontent.com/u/726519?s=40&v=4)[![](https://avatars2.githubusercontent.com/u/328502?s=40&v=4)](https://avatars2.githubusercontent.com/u/328502?s=40&v=4)

- **André Wuttig** - *Initial work, Unit Tests* - [aWuttig](https://github.com/aWuttig)
- **Christian Deussen** - *Bugfixes* - [nullsub](https://github.com/nullsub)

See also the list of [contributors](https://github.com/portrino/typo3-fractal-view/graphs/contributors) who participated in this project.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~9 days

Total

5

Last Release

3137d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/03867e1d2497d7cb7feb932fb301387e143503bfd17c584ef90347b3d7942cf1?d=identicon)[portrino-dev](/maintainers/portrino-dev)

---

Top Contributors

[![aWuttig](https://avatars.githubusercontent.com/u/726519?v=4)](https://github.com/aWuttig "aWuttig (48 commits)")

---

Tags

jsonviewextbasefractaltypo3

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/portrino-typo3-fractal-view/health.svg)

```
[![Health](https://phpackages.com/badges/portrino-typo3-fractal-view/health.svg)](https://phpackages.com/packages/portrino-typo3-fractal-view)
```

###  Alternatives

[entomb/slim-json-api

Slim extension to implement fast JSON API's

268156.4k4](/packages/entomb-slim-json-api)[laminas/laminas-view

Fast and type safe HTML templating library with a flexible plugin system supporting multistep template composition

7526.3M230](/packages/laminas-laminas-view)[dogancelik/slim-json

JSON middleware for Slim PHP framework

3984.0k3](/packages/dogancelik-slim-json)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
