sebk / swoft-json-response
Swoft json response
Installs: 23
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/sebk/swoft-json-response
Requires
- swoft/framework: ~2.0.0
This package is auto-updated.
Last update: 2025-09-29 02:51:55 UTC
README
Json reponse for Swoft
Install
Create your Swoft project : http://swoft.io/docs/2.x/en/quick-start/install.html
Require Swoft Json Response package (https://github.com/sebk69/swoft-json-response) :
composer require sebk/swoft-json-response
Documentation
Simple function JsonResponse.
Usage :
JsonResponse($serializable);
// Example
JsonResponse(['test' => 'This is a test']);
You can use any serializable for parameter $serializable.
The '\JsonSerializable' interface is supported.