Download the PHP package monkeycraps/blueprint without Composer

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

接口文档,生成测试工具,标准 blueprint

  1. blueprint 是一个接口文档规范,特别适合做 restful 的接口描述 https://apiblueprint.org/
  2. 针对 laravel 做了一套工具,用于持续产出文档,并提供前后端调试

特性

  1. 支持 restful 请求
  2. 依赖 larvel 的命令行
  3. 修改了 dingo 的 blueprint 自定义支持
  4. 修改 npm 包 aglio,提供直接在文档 h5 上进行调试
  5. 可以根据需要生成所有接口,或者部分接口

示例

  1. 结果

    • 可以指定 app_host,用于发送请求给不同的环境
    • 选择需要的接口调试
    • 直接发请求,支持所有 restful 请求,使用 jquery ajax 实现
    • 需要安装 cros chrome 插件,用于跨域处理
  2. composer 添加依赖

  3. 文件描写

    • 格式要求比较严格
    • 原始文档,https://github.com/dingo/api/wiki/API-Blueprint-Documentation
    • 坑点
      • 多个参数,要加 ',' 区分
      • 注意不能使用 '' 划分
      • @Response 返回的 body 有特殊要求,不支持 [] 数组类型,实际开发中,一般是生成一轮文档后,在 h5 页面上请求,能直接得到转换过的值
  4. 运行生成命令

    • 生成所有文档,会扫描 app\Http\Controllers 里的 所有文件 php artisan blueprint:generate
    • 生成单个 controller 的文档,php artisan blueprint:generate app/Http/Controllers/WechatCorp/WechatCorpController.php
      • 图示的是生成的文件位置
  5. 展示控件安装

  6. 运行展示
    • 安装后会多了个 aglio 的命令,默认端口 3000,也能生成静态文件
    • aglio -i storage/api/blueprint.apib -s -h 0.0.0.0
    • aglio 是基于 https://github.com/danielgtaylor/aglio 修改的

持续特性

  1. 内部类文档支持,主要是针对 laravel 系列的 job, lisener, facade, service
  2. 增加 json schema 的验证
  3. 接入到公司的 jenkins 测试中

API Blueprint Generator

Build Status License Development Version Monthly Installs StyleCI

This package generates a valid API Blueprint 1A document from a collection of classes.

Usage

Some index method phpdoc example:

extend

  1. add laravel job to generate api files
  2. App Host

service api, for laravel part

event api

facade api

helper function api

jobs api

command api

License

This package is licensed under the BSD 3-Clause license.


All versions of blueprint with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.9
illuminate/support Version 5.1.* || 5.2.* || 5.3.* || 5.4.*
illuminate/filesystem Version 5.1.* || 5.2.* || 5.3.* || 5.4.*
doctrine/annotations Version ~1.2
phpdocumentor/reflection-docblock Version 3.1.*
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 monkeycraps/blueprint contains the following files

Loading the files please wait ....