PHPackages                             chustilla/cakephp-fractal - 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. [API Development](/categories/api)
4. /
5. chustilla/cakephp-fractal

ActiveLibrary[API Development](/categories/api)

chustilla/cakephp-fractal
=========================

An easy to use Fractal integration for CakePHP 3 applications

2.2.0(5y ago)010.4k[1 PRs](https://github.com/chustilla/cakephp-fractal/pulls)MITPHPPHP &gt;=7.2

Since May 23Pushed 4y ago1 watchersCompare

[ Source](https://github.com/chustilla/cakephp-fractal)[ Packagist](https://packagist.org/packages/chustilla/cakephp-fractal)[ Docs](https://github.com/chustilla/cakephp-fractal)[ RSS](/packages/chustilla-cakephp-fractal/feed)WikiDiscussions master Synced 1mo ago

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

CakePHP Fractal
---------------

[](#cakephp-fractal)

Basic data transformation for responding from your API.

The package provide a simple wrapper around [Factral](https://fractal.thephpleague.com/) for your CakePHP 3 applications, inspired by [Laravel fractal](https://github.com/spatie/laravel-fractal).

Requirements
------------

[](#requirements)

- PHP &gt;=7.2

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

[](#installation)

Via Composer

```
$ composer install chustilla/cakephp-fractal

```

Usage
-----

[](#usage)

For simpler usage, the package provide a helper

```
#src/Controller/VideoGamesController.php

public function index()
{
    return fractal(
        $this->VideoGames->find(),
        new VideoGameTransformer()
    )->respond();
}
```

where VideoGameTransformes is a [Fractal Tranformer](https://fractal.thephpleague.com/transformers/)

For complex data structures you can use [includes](https://fractal.thephpleague.com/transformers/#including-data)

```
fractal(
        $this->VideoGames->find()->contain([]),
        new VideoGameTransformer()
    )->parseIncludes(['platform'])
    ->respond();
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](./LICENSE) for more information.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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 ~11 days

Total

6

Last Release

2115d ago

Major Versions

1.0.2 → 2.0.02020-07-16

### Community

Maintainers

![](https://www.gravatar.com/avatar/cd7af5525c7a972b898f65f663265364e5c54fa524fa575e9c45be59de14caa7?d=identicon)[JesusHS](/maintainers/JesusHS)

---

Top Contributors

[![YisusThreepwood](https://avatars.githubusercontent.com/u/771893?v=4)](https://github.com/YisusThreepwood "YisusThreepwood (10 commits)")

---

Tags

apicakephptransformfractalcakephp-fractal

### Embed Badge

![Health badge](/badges/chustilla-cakephp-fractal/health.svg)

```
[![Health](https://phpackages.com/badges/chustilla-cakephp-fractal/health.svg)](https://phpackages.com/packages/chustilla-cakephp-fractal)
```

###  Alternatives

[spatie/laravel-fractal

An easy to use Fractal integration for Laravel applications

1.9k15.1M98](/packages/spatie-laravel-fractal)[spatie/fractalistic

A developer friendly wrapper around Fractal

38715.3M8](/packages/spatie-fractalistic)[flugger/laravel-responder

A Laravel Fractal package for building API responses, giving you the power of Fractal and the elegancy of Laravel.

8901.5M4](/packages/flugger-laravel-responder)[yajra/laravel-datatables-fractal

Laravel DataTables Fractal Plugin.

966.9M29](/packages/yajra-laravel-datatables-fractal)[ellipsesynergie/api-response

Simple package to handle response properly in your API

3751.4M20](/packages/ellipsesynergie-api-response)[friendsofcake/crud-json-api

Listener for building CakePHP Crud APIs following the JSON API specification.

58445.4k3](/packages/friendsofcake-crud-json-api)

PHPackages © 2026

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