Download the PHP package kakuilan/hyperf-apihelper without Composer

On this page you can find all versions of the php package kakuilan/hyperf-apihelper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package hyperf-apihelper

hyperf-apihelper

hyperf api and swagger helper.
它是一个Hyperf框架的 [api接口自动验证和swagger接口文档生成] 组件.
功能包括:

支持:

不支持:

!!注意

旧版本升级到v0.5.7时,须手动将public/swagger/index.html重命名为template.html

0.安装

1.配置

2.使用示例

编辑控制器文件app/Controller/Test.php,如

3.验证规则

4.接口响应体

5.自定义前置动作、拦截动作和后置动作

6.接口多版本分组

针对接口多版本分组的功能,一般的做法是将控制器划分多个命名空间,如V1.0V2.0等.
本组件提供了ApiVersion注解,它可以方便地为控制器绑定一个或多个版本号.
注意:

7.校验提示和数据获取

8.swagger生成

  1. api请求方法定义包括 Get, Post, Put, Patch, Delete
  2. 参数定义包括 Header, Query, File, Form, Body, Path
  3. 返回结果定义 ApiResponse ,json串,如{"status":true,"msg":"success","code":200,"data":[]}
  4. 生产环境请将配置output_json修改为false,关闭swagger.
  5. 字段值举例,使用example指定.注意:举例值应和字段类型一致.如

9.升级注意

10. 其他注意事项

11. 图例


All versions of hyperf-apihelper with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
ext-swoole Version >=4.4
ext-json Version *
hyperf/utils Version ^1.1|^2.0
hyperf/translation Version ^1.1|^2.0
hyperf/validation Version ^1.1|^2.0
kakuilan/php-helper Version ^0.4
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package kakuilan/hyperf-apihelper contains the following files

Loading the files please wait ....