Download the PHP package uniondrug/docs without Composer

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

uniondrug/docs

命令

命令 1:php console postman

原uniondrug/postman(3.x)全部功能,可导出`Markdown`文档、`Postman`接口工具、`SDK`

命令 2:php console torna

上传文档到Torna,可在Torna查看并管理,地址:http://torna.uniondrug.cn/

options

注: 新增的options选项 [--save=true] 可保留Torna.json文件(用于调试)

如何使用

以‘命令2’为例

第 1 步: 在应用 composer.json 中引入 uniondrug/docs 并执行 composer update

第 2 步: 自定义命令:可使用 php console make:command torna 创建,也可直接在应用程序 App\Commands 下创建TornaCommand.php

第 3 步: 项目目录添加 docs.json 配置文件,在原 postman.json 基础上增加tornaToken配置。由于上传文档到 Torna 需要认证,若要上传文档到 Torna ,所以此步骤为 <必须> (优先级为: docs.json > postman.json > config/app.php)

说明

  1. uniondrug/docs 完整兼容 uniondrug/postman3.x 版本,建议替换使用(若要替换,参考说明 2)
  2. 若要废弃原 postman 命令,应用程序 App\Commands 下的 PostmanCommand::class 需修改继承为\Uniondrug\Docs\Commands\Postman

All versions of docs with dependencies

PHP Build Version
Package Version
Requires uniondrug/framework Version ^2.0
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 uniondrug/docs contains the following files

Loading the files please wait ....