PHPackages                             insolita/yii2-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. [HTTP &amp; Networking](/categories/http)
4. /
5. insolita/yii2-fractal

ActiveLibrary[HTTP &amp; Networking](/categories/http)

insolita/yii2-fractal
=====================

Json-api spec implementation with league/fractal

1.4.1(4y ago)513.2k↓47.9%5[2 issues](https://github.com/Insolita/yii2-fractal/issues)MITPHPPHP &gt;=7.1.0

Since Sep 15Pushed 4y ago2 watchersCompare

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

READMEChangelogDependencies (13)Versions (24)Used By (0)

yii2-fractal Beta
=================

[](#yii2-fractal---beta)

[![yii2-fractal](https://github.com/Insolita/yii2-fractal/workflows/yii2-fractal/badge.svg)](https://github.com/Insolita/yii2-fractal/workflows/yii2-fractal/badge.svg)

The set of utils and actions for prepare Rest API accordingly JSON:Api With

### Installation

[](#installation)

`composer require insolita/yii2-fractal`

### Usage

[](#usage)

1. Add class `insolita\fractal\JsonApiBootstrap` to the ['bootstrap' section](https://www.yiiframework.com/doc/guide/2.0/en/runtime-bootstrapping) of api application config (or update application config manually with same changes as in `JsonApiBootstrap` class ) see [tests/testapp/config/api.php](./tests/testapp/config/api.php).
2. Create your controller classes by extending `JsonApiController` or `JsonApiActiveController` which contains predefined CRUD actions. See examples at [tests/testapp/controllers](./tests/testapp/controllers).

### Testing

[](#testing)

- Clone project
- Run `make up`
- Run once `make installdocker`
- Run `make testdocker` or `make cli` and inside docker env `make test`

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance12

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 91.1% 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 ~29 days

Recently: every ~62 days

Total

17

Last Release

1600d ago

Major Versions

0.0.2 → 1.0.02020-10-05

### Community

Maintainers

![](https://www.gravatar.com/avatar/40f26825f8c130796e3151e6c076721cf5bb222c42148102bb31a341a1a5c789?d=identicon)[Insolita](/maintainers/Insolita)

---

Top Contributors

[![Insolita](https://avatars.githubusercontent.com/u/1847402?v=4)](https://github.com/Insolita "Insolita (51 commits)")[![cebe](https://avatars.githubusercontent.com/u/189796?v=4)](https://github.com/cebe "cebe (4 commits)")[![SOHELAHMED7](https://avatars.githubusercontent.com/u/6770119?v=4)](https://github.com/SOHELAHMED7 "SOHELAHMED7 (1 commits)")

---

Tags

hacktoberfestjson-apirest-apiyii2-extensionjsonrestyii2JSON-API

###  Code Quality

TestsCodeception

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/insolita-yii2-fractal/health.svg)

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

###  Alternatives

[tuyakhov/yii2-json-api

Implementation of JSON API specification for the Yii framework

140115.6k](/packages/tuyakhov-yii2-json-api)[genxoft/yii2-oas3

Yii2 Open Api Swagger 3 integration

18346.3k1](/packages/genxoft-yii2-oas3)[tunecino/yii2-nested-rest

Adds nested resources routing support along with related actions and relationship handlers to the Yii RESTful API framework

4815.8k](/packages/tunecino-yii2-nested-rest)[gte451f/phalcon-json-api-package

A set of tools designed for use in a Phalcon application to make a RESTish API

372.7k](/packages/gte451f-phalcon-json-api-package)[simialbi/yii2-rest-client

REST client (AR-like model) for Yii Framework 2.0 (via yii2-http-client, extends ApexWire/yii2-restclient)

2232.5k](/packages/simialbi-yii2-rest-client)

PHPackages © 2026

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