PHPackages                             php-openapi/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. php-openapi/yii2-fractal

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

php-openapi/yii2-fractal
========================

Json-api spec implementation with league/fractal, forked from Insolita (RIP)

1.5.1(1y ago)43.1k↓47%1MITPHPPHP &gt;=8

Since Sep 15Pushed 1y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (13)Versions (26)Used By (0)

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

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

[![yii2-fractal](https://github.com/php-openapi/yii2-fractal/workflows/yii2-fractal/badge.svg)](https://github.com/php-openapi/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 php-openapi/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).

### Contributing / Local Development / Testing

[](#contributing--local-development--testing)

See [CONTRIBUTING.md](CONTRIBUTING.md) file

### License

[](#license)

See [LICENSE](LICENSE) file

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 50.5% 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 ~86 days

Recently: every ~306 days

Total

19

Last Release

516d ago

Major Versions

0.0.2 → 1.0.02020-10-05

PHP version history (2 changes)0.0.1PHP &gt;=7.1.0

1.5.0PHP &gt;=8

### Community

Maintainers

![](https://www.gravatar.com/avatar/261a6249c6f605f3956a2fae40fbb813f6b2e1e6f2bf806180c851a965426e54?d=identicon)[cebe](/maintainers/cebe)

---

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 (20 commits)")[![SOHELAHMED7](https://avatars.githubusercontent.com/u/6770119?v=4)](https://github.com/SOHELAHMED7 "SOHELAHMED7 (15 commits)")[![lukassarfert](https://avatars.githubusercontent.com/u/60043850?v=4)](https://github.com/lukassarfert "lukassarfert (8 commits)")[![siggi-k](https://avatars.githubusercontent.com/u/43443582?v=4)](https://github.com/siggi-k "siggi-k (7 commits)")

---

Tags

fractaljson-apiopenapiyiiyii2jsonrestyii2JSON-API

###  Code Quality

TestsCodeception

Code StylePHP CS Fixer

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/php-openapi-yii2-fractal/health.svg)](https://phpackages.com/packages/php-openapi-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)
