Skip to content

strever/resp-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

strever/resp-code

a naming convention about response code

Installation

composer require strever/resp-code

Usage Docs

\Strever\Util\Resp::success(['id' => 1]);

\Strever\Util\Resp::fail(404);

\Strever\Util\Resp::notFound();

api list

  • fail
  • failWithJson
  • notFound
  • invalidParams
  • success
  • successWithJson ...

UnitTest

$ phpunit tests/Util/RespTest.php

Contact

<strever@.qq.com>

Other Resources

Donate Me

Alipay

License

MIT

About

a naming conventions about response code

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages