Recommend this page to a friend! |
Download |
Info | Example | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2024-09-26 (15 days ago) | Not enough user ratings | Total: 7 | All time: 11,445 This week: 38 |
Version | License | PHP version | Categories | |||
yii2-fractal 1.0 | MIT/X Consortium ... | 5 | PHP 5, Libraries, Web services, Desig... |
Description | Author | |||
This package provides components to implement API based on JSON:API. Innovation Award
|
<?php |
The set of utils and actions for prepare Rest API accordingly JSON:Api https://jsonapi.org/format/ With https://fractal.thephpleague.com
composer require insolita/yii2-fractal
['bootstrap' section]: https://www.yiiframework.com/doc/guide/2.0/en/runtime-bootstrapping
### Testing
- Clone project
- Run make up
- Run once make installdocker
- Run make testdocker
or make cli
and inside docker env make test
Files (94) |
File | Role | Description | ||
---|---|---|---|---|
.github (1 directory) | ||||
src (9 files, 4 directories) | ||||
tests (4 directories) | ||||
.dockerignore | Data | Auxiliary data | ||
.php_cs.dist | Example | Example script | ||
CHANGELOG.md | Data | Auxiliary data | ||
codeception.yml | Data | Auxiliary data | ||
composer.json | Data | Auxiliary data | ||
docker-compose.yml | Data | Auxiliary data | ||
LICENSE | Lic. | License text | ||
Makefile | Data | Auxiliary data | ||
README.md | Doc. | Documentation |
Files (94) | / | .github | / | workflows |
File | Role | Description |
---|---|---|
test.yml | Data | Auxiliary data |
test_docker.yml | Data | Auxiliary data |
Files (94) | / | src |
File | Role | Description | ||
---|---|---|---|---|
actions (18 files) | ||||
exceptions (2 files) | ||||
pagination (2 files) | ||||
providers (5 files) | ||||
ActiveJsonApiController.php | Class | Class source | ||
DefaultTransformer.php | Class | Class source | ||
IdOnlyTransformer.php | Class | Class source | ||
JsonApiBootstrap.php | Class | Class source | ||
JsonApiController.php | Class | Class source | ||
JsonApiError.php | Class | Class source | ||
JsonApiErrorHandler.php | Class | Class source | ||
JsonApiResponseFormatter.php | Class | Class source | ||
RelationshipManager.php | Class | Class source |
Files (94) | / | src | / | actions |
File | Role | Description |
---|---|---|
CountAction.php | Class | Class source |
CountForIdentityAction.php | Class | Class source |
CreateAction.php | Class | Class source |
CreateRelationshipAction.php | Class | Class source |
DeleteAction.php | Class | Class source |
DeleteRelationshipAction.php | Class | Class source |
HasIncludes.php | Class | Class source |
HasParentAttributes.php | Class | Class source |
HasResourceBodyParams.php | Class | Class source |
HasResourceTransformer.php | Class | Class source |
JsonApiAction.php | Class | Class source |
ListAction.php | Class | Class source |
ListForIdentityAction.php | Class | Class source |
UpdateAction.php | Class | Class source |
UpdateRelationshipAction.php | Class | Class source |
ViewAction.php | Class | Class source |
ViewForIdentityAction.php | Class | Class source |
ViewRelationshipAction.php | Class | Class source |
Files (94) | / | src | / | exceptions |
File | Role | Description |
---|---|---|
NonJsonApiResponseException.php | Class | Class source |
ValidationException.php | Class | Class source |
Files (94) | / | src | / | pagination |
File | Role | Description |
---|---|---|
CursorPagination.php | Class | Class source |
JsonApiPaginator.php | Class | Class source |
Files (94) | / | src | / | providers |
File | Role | Description |
---|---|---|
CursorActiveDataProvider.php | Class | Class source |
JsonApiActiveDataProvider.php | Class | Class source |
JsonApiArrayDataProvider.php | Class | Class source |
JsonApiDataProviderInterface.php | Class | Class source |
JsonApiSort.php | Class | Class source |
Files (94) | / | tests |
File | Role | Description | ||
---|---|---|---|---|
codeception (3 directories) | ||||
docker (3 files) | ||||
testapp (1 file, 6 directories) | ||||
tests_phpstorm (4 files) |
Files (94) | / | tests | / | codeception |
Files (94) | / | tests | / | codeception | / | suites | / | api |
File | Role | Description |
---|---|---|
ApiCategoryCest.php | Class | Class source |
ApiDefaultCest.php | Class | Class source |
ApiPostCest.php | Class | Class source |
ApiRelationshipsCest.php | Class | Class source |
ApiSortWithJoinsCest.php | Class | Class source |
ApiUserCest.php | Class | Class source |
Files (94) | / | tests | / | codeception | / | suites | / | unit |
File | Role | Description |
---|---|---|
bootstrap.php | Aux. | Configuration script |
JsonApiActionTest.php | Class | Class source |
JsonApiDataProviderTest.php | Class | Class source |
JsonApiPaginatorTest.php | Class | Class source |
RelationsPatcherTest.php | Class | Class source |
Files (94) | / | tests | / | codeception | / | _support |
File | Role | Description | ||
---|---|---|---|---|
Helper (1 file) | ||||
ApiTester.php | Class | Class source | ||
UnitTester.php | Class | Class source |
Files (94) | / | tests | / | codeception | / | _support | / | Helper |
File | Role | Description |
---|---|---|
Api.php | Class | Class source |
Files (94) | / | tests | / | docker |
File | Role | Description |
---|---|---|
apache.conf | Data | Auxiliary data |
Dockerfile | Data | Auxiliary data |
xdebug.ini | Data | Auxiliary data |
Files (94) | / | tests | / | testapp |
File | Role | Description | ||
---|---|---|---|---|
config (3 files) | ||||
controllers (5 files) | ||||
migrations (4 files) | ||||
models (4 files) | ||||
transformers (6 files) | ||||
web (2 files) | ||||
yii | Example | Example script |
Files (94) | / | tests | / | testapp | / | config |
File | Role | Description |
---|---|---|
api.php | Class | Class source |
console.php | Class | Class source |
test.php | Aux. | Configuration script |
Files (94) | / | tests | / | testapp | / | controllers |
File | Role | Description |
---|---|---|
CategoryController.php | Class | Class source |
CommentController.php | Class | Class source |
DefaultController.php | Class | Class source |
MeController.php | Class | Class source |
PostController.php | Class | Class source |
Files (94) | / | tests | / | testapp | / | migrations |
File | Role | Description |
---|---|---|
m200909_043143_create_users_table.php | Class | Class source |
m200909_043417_cre...ategories_table.php | Class | Class source |
m200909_043742_create_posts_table.php | Class | Class source |
m200909_044342_create_comments_table.php | Class | Class source |
Files (94) | / | tests | / | testapp | / | models |
File | Role | Description |
---|---|---|
Category.php | Class | Class source |
Comment.php | Class | Class source |
Post.php | Class | Class source |
User.php | Class | Class source |
Files (94) | / | tests | / | testapp | / | transformers |
File | Role | Description |
---|---|---|
CategoryTransformer.php | Class | Class source |
CommentTransformer.php | Class | Class source |
PostShortTransformer.php | Class | Class source |
PostTransformer.php | Class | Class source |
UserExtendTransformer.php | Class | Class source |
UserTransformer.php | Class | Class source |
Files (94) | / | tests | / | testapp | / | web |
Files (94) | / | tests | / | tests_phpstorm |
File | Role | Description |
---|---|---|
categories.http | Data | Auxiliary data |
comments.http | Data | Auxiliary data |
default.http | Data | Auxiliary data |
posts.http | Data | Auxiliary data |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.