Download the PHP package softonic/rest-api-nested-resources without Composer
On this page you can find all versions of the php package softonic/rest-api-nested-resources. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download softonic/rest-api-nested-resources
More information about softonic/rest-api-nested-resources
Files in softonic/rest-api-nested-resources
Download softonic/rest-api-nested-resources
More information about softonic/rest-api-nested-resources
Files in softonic/rest-api-nested-resources
Vendor softonic
Package rest-api-nested-resources
Short Description Utilities to work with REST APIs with nested resources
License Apache-2.0
Homepage https://github.com/softonic/rest-api-nested-resources
Package rest-api-nested-resources
Short Description Utilities to work with REST APIs with nested resources
License Apache-2.0
Homepage https://github.com/softonic/rest-api-nested-resources
Please rate this library. Is it a good library?
Informations about the package rest-api-nested-resources
REST API nested resources
Utilities to work with REST APIs with nested resources
Main features
- MultiKeyModel: allows to have nested resources with composite primary keys
- EnsureModelExists: middleware to validate that a resource exists (used to ensure that a parent resource exists)
- EnsureModelDoesNotExist: middleware to validate that the resource we want to create doesn't already exist
- SubstituteBindings: a personalization of the Laravel's SubstituteBindings middleware to work with nested resources
- SplitPutPatchVerbs: trait that allows the controller to split the "update" method into "modify" (PATCH) and "replace" (PUT) CRUDL methods
Installation
You can require the last version of the package using composer
Configuration
-
MultiKeyModel
-
EnsureModelExists and EnsureModelDoesNotExist
-
SubstituteBindings
- SplitPutPatchVerbs
Testing
softonic/rest-api-nested-resources
has a PHPUnit test suite, and a coding style compliance test suite using PHP CS Fixer.
To run the tests, run the following command from the project folder.
To open a terminal in the dev environment:
License
The Apache 2.0 license. Please see LICENSE for more information.
All versions of rest-api-nested-resources with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.0
The package softonic/rest-api-nested-resources contains the following files
Loading the files please wait ....