erykai/response

Response json, array and object with translation into any language

Fund package maintenance!
Erykai

v1.1.0 2022-09-23 13:09 UTC

This package is auto-updated.

Last update: 2024-08-23 18:25:35 UTC


README

Maintainer Source Code PHP from Packagist Latest Version Software License Quality Score Total Downloads

Receive an object and return it as an array, json or object

Installation

Composer:

"erykai/response": "1.1.*"

Terminal

composer require erykai/response

Response Json

use Erykai\Response\Response;
require "vendor/autoload.php";
$response = new Response();

$data = new stdClass();
$data->code = 200;
$data->type = 'success';
$data->message = "hello my name is alex vidal and my email is contato@webav.com.br";
$data->data = null;
$data->dynamic = "contato@webav.com.br";

echo $response->data($data)->json();
print_r($response->data($data)->array());
print_r($response->data($data)->object());

Contribution

All contributions will be analyzed, if you make more than one change, make the commit one by one.

Support

If you find faults send an email reporting to webav.com.br@gmail.com.

Credits

License

The MIT License (MIT). Please see License for more information.