【文件属性】:
文件名称:restServer:休息服务变得轻松
文件大小:159KB
文件格式:ZIP
更新时间:2021-05-09 09:41:47
PHP
restServer-简化REST服务
restServer提供
PSR HTTP消息保留服务器
内置ip,cors,auth,序列化和解码mgnt
您的应用程序的API
安装
要使用作曲家进行安装:
composer require kigkonsult/restserver
需要PHP 5.6、7。*
用法
用法示例:
<?php
require '/path/to/vendor/autoload.php' ;
// Implement an application rest service operation entry
// (or any callable with the same interface)
$ callback = function (
ServerRequestInterface $ request ,
ResponseInterface
【文件预览】:
restServer-master
----README.md(3KB)
----test()
--------ResponseTest.php(2KB)
--------Handlers()
--------ServerRequestFactoryTest.php(4KB)
--------RestServerTest.php(51KB)
--------ConfigTest.php(8KB)
----cfg()
--------cfg.56.cte.php(6KB)
--------cfg.RestServer.php(7KB)
--------cfg.2.cors.php(6KB)
--------cfg.1.ip.php(6KB)
--------cfg.3.auth.php(13KB)
----phpunit.xml(6KB)
----docs()
--------readMeFirst.txt(13KB)
--------TemplateHandler.php(10KB)
--------pingIndex.php(426B)
--------TemplateService.php(10KB)
----composer.json(1KB)
----AGPLv3.txt(34KB)
----src()
--------RestServer.php(36KB)
--------StreamFactory.php(2KB)
--------ResponseInterface.php(2KB)
--------Handlers()
--------autoload.php(2KB)
--------RestServerLogger.php(3KB)
--------Response.php(8KB)
--------ServerRequestFactory.php(11KB)