awsm3/structure

Объекты-структуры данных

dev-master 2018-03-26 20:26 UTC

This package is not auto-updated.

Last update: 2024-05-12 03:08:53 UTC


README

Latest Version on Packagist Software License Total Downloads

Install

Via Composer

$ composer require awsm3/structure

Usage

$factory = new Awsm3\Structure\StructureFactory();
$structure = $factory->make(
    Awsm3\Structure\Response\ResponseStructure::class, 
    [
        'httpStatus' => Awsm3\Structure\Response\Http\Status::HTTP_ACCEPTED,
        'status' => true,
        'messages' => 'Success!',
        'data' => ['some', 'data', 'etc.'],
    ]
);

Security

If you discover any security related issues, please using the issue tracker.

Credits

License

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