Skip to content

dom-pixel/api-message-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Api-Message

This is Api Message for use in all projects.

Install

You can add this library as a local, per-project dependency to your project using Composer:

$ composer require dom-pixel/api-message

Quick Start

<?php


namespace App\Api;


class ApiMessage
{
    public static function message($isSuccess, $code, $message = null, $payload = null)
    {
        return [
            'isSuccess' => $isSuccess,
            'message' => $message,
            'payload' => $payload,
            'code' => $code
        ];
    }
}

About

This is Api Message for use in all projects.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages