strever / resp-code
a naming conventions about response code
Installs: 17
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/strever/resp-code
Requires
- php: >=5.4.0
Requires (Dev)
- phpunit/phpunit: ~4.3
This package is not auto-updated.
Last update: 2025-10-04 03:32:57 UTC
README
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
Other Resources
Donate Me
License
MIT