free-elephants / json-api-toolkit
Tools for building specification first json:api / swagger integrated APIs
Installs: 6 683
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 2
Open Issues: 1
pkg:composer/free-elephants/json-api-toolkit
Requires
- ext-intl: *
 - ext-json: *
 - devizzent/cebe-php-openapi: ^1.0
 - doctrine/persistence: ^2.0|^3.0
 - fig/http-message-util: ^1.0
 - free-elephants/i18n: ^0.0.1
 - laminas/laminas-stratigility: ^3.2
 - laravel-json-api/neomerx-json-api: ^5.0.2
 - league/openapi-psr7-validator: 0.19 - 0.22
 - nette/php-generator: ^3.4
 - nikic/fast-route: ^1.3
 - psr/cache: ^1|^2|^3
 - psr/container: ^1|^2
 - psr/http-factory: ^1.0
 - psr/http-message: ^1.0|^2.0
 - psr/http-server-handler: ^1.0
 - psr/http-server-middleware: ^1.0
 - rakit/validation: ^1.2
 - ramsey/uuid: ^3.9.7|^4.0
 
Requires (Dev)
- helmich/phpunit-psr7-assert: ^4
 - nyholm/psr7: ^1.2
 - phpunit/phpunit: ^10.5.38|^11.0
 
Suggests
Conflicts
- dev-master
 - 1.x-dev
 - 0.2.0
 - 0.1.0
 - v0.0.15.x-dev
 - 0.0.15
 - v0.0.14.x-dev
 - 0.0.14
 - 0.0.13
 - v0.0.12.x-dev
 - 0.0.12
 - 0.0.11
 - 0.0.10
 - 0.0.9
 - 0.0.8
 - 0.0.7
 - 0.0.6
 - 0.0.5
 - 0.0.4
 - 0.0.3
 - 0.0.2
 - 0.0.1
 - dev-drop-dto
 - dev-extract-dto
 - dev-dev-2025-02
 - dev-dev-2024
 - dev-up-supported-php-versions
 - dev-update-packages
 - dev-master-legacy
 - dev-update-requirements
 - dev-add-trace-to-errors
 - dev-dto-refactoring
 - dev-migrate-phpunit-conf
 - dev-suggest-emitter
 - dev-goodbay-travis
 - dev-cors-setter
 - dev-develop
 - dev-middleware
 - dev-request-validation
 
This package is auto-updated.
Last update: 2025-10-14 19:19:13 UTC
README
Features:
-  Build FastRoute Dispatcher by defined in OAS3 
operationsIdsvalues - Serialize Doctrine entities with Neomerx schemas (resolve issue neomerx/json-api#40)
 -  Generate PHP Data Transfer Objects by OAS3 
reponseBodyandrequestBodyschema reference compliance with json:api - Validate incoming Psr Requests with swagger specification and user defined rules, and build Psr Response with json:api errors
 - Map application models to Psr Response compliance with json:api structure
 
Usage
Install
composer require free-elephants/json-api-toolkit
Documentation
Available in /docs.
Index:
Development
All dev env is dockerized. Your can use make receipts and bin/ scripts without locally installed php, composer.
For run tests with different php version change PHP_VERSION value in .env and rebuild image with make build.
See also:
Package for map PSR-7 http messages with Json Api structure to PHP DTO: https://github.com/FreeElephants/json-api-dto