Download the PHP package hao/api-doc without Composer

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

api-doc

开源地址

https://github.com/JZhao1020/api-doc

1.安装

2、配置参数

安装好扩展后在 application\extra\ 文件夹下会生成 doc.php 配置文件 在controller参数中添加对应的类

3、在相关接口类中增加注释参数( group 参数将接口分组,可选)

方法如下:返回参数支持数组及多维数组(参考test文件夹中的Index.php文件)

接口备注示例

返回数据格式,仅支持json数据格式

4、在浏览器访问http://你的域名/doc 查看接口文档

问题

不少小伙伴反应,没有正常安装doc.php 配置文件,原因是你改过应用目录官方默认是application 如果没有生成doc.php 配置文件 你可以手动安装,直接在application(你修改的目录)里面创建extra文件夹,然后把扩展包中的vendor\hao\api-doc\src\config.php文件复制进去,并重命名为doc.php


All versions of api-doc with dependencies

PHP Build Version
Package Version
Requires topthink/think-helper Version >=1.0.4
topthink/think-installer Version >=1.0.10
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 hao/api-doc contains the following files

Loading the files please wait ....