Download the PHP package xianrenqh/api-doc-webman without Composer

On this page you can find all versions of the php package xianrenqh/api-doc-webman. 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 api-doc-webman

api-doc-webman

webman开发框架可用的 简单的api-doc 文档 【注解】

安装

composer require xianrenqh/api-doc-webman

使用

配置设置:

  1. 基本配置 路径:\config\plugin\xianrenqh\api-doc-webman\app.php

可以设置基本信息。

重要:

基本设置中: api_doc->下的 class 设置项,一定要设置成自己要加载的api接口文档的类文件,多个用数组。

  1. 路由配置 路径:\config\plugin\xianrenqh\api-doc-webman\route.php

路由设置里目前有两个路由:

  1. api文档的前端访问路由
  2. apidoc开启密码访问时,请求判断密码的校验地址路由

前端访问地址:

默认的: http://127.0.0.1:8787/apidoc

你可以自行更改路由 apidoc 来定义访问地址

api类文件的使用方法:

打开你要设置的注解的api类文件,

例如:\app\api\controller\UserController.php

  1. 在 class UserController 之前增加注解代码:

  2. 在公共方法上增加注解代码:

  3. 来个控制器里的完整代码,仅做参考

打完,手工。你学废了吗?

效果图

jne8gO.jpg

jner28.jpg


All versions of api-doc-webman with dependencies

PHP Build Version
Package Version
No informations.
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 xianrenqh/api-doc-webman contains the following files

Loading the files please wait ....