php-openapi/yii2-fractal

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

Maintainers

👁 cebe

Package info

github.com/php-openapi/yii2-fractal

pkg:composer/php-openapi/yii2-fractal

Statistics

Installs: 4 412

Dependents: 1

Suggesters: 0

Stars: 4

Open Issues: 0

1.5.2 2026-04-14 12:57 UTC

MIT b6b450fc9fa89cdbb7f587468cce7a753a48e6bb

jsonrestyii2JSON-API


README

👁 yii2-fractal

The set of utils and actions for prepare Rest API accordingly JSON:API https://jsonapi.org/format/ With https://fractal.thephpleague.com

Installation

composer require php-openapi/yii2-fractal

Usage

  1. Add class insolita\fractal\JsonApiBootstrap to the 'bootstrap' section of api application config (or update application config manually with same changes as in JsonApiBootstrap class ) see 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.

Contributing / Local Development / Testing

See CONTRIBUTING.md file

License

See LICENSE file