Download the PHP package insolita/yii2-fractal without Composer
On this page you can find all versions of the php package insolita/yii2-fractal. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package yii2-fractal
yii2-fractal Beta
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 insolita/yii2-fractal
Usage
-
Add class
insolita\fractal\JsonApiBootstrap
to the 'bootstrap' section of api application config (or update application config manually with same changes as inJsonApiBootstrap
class ) see tests/testapp/config/api.php. -
Create your controller classes by extending
JsonApiController
orJsonApiActiveController
which contains predefined CRUD actions. See examples at tests/testapp/controllers.Testing
- Clone project
- Run
make up
- Run once
make installdocker
- Run
make testdocker
ormake cli
and inside docker envmake test
All versions of yii2-fractal with dependencies
ext-json Version *
league/fractal Version ^0.19.2
yiisoft/yii2 Version ~2.0.15