Skip to content

A set of utils and actions for building APIs following JSON:API specification, based on the league/fractal package

License

Notifications You must be signed in to change notification settings

php-openapi/yii2-fractal

 
 

Repository files navigation

yii2-fractal Beta

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

About

A set of utils and actions for building APIs following JSON:API specification, based on the league/fractal package

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 99.3%
  • Other 0.7%