Download the PHP package birjemin/blueprint without Composer

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

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

使用示例

Some index method phpdoc example:

如下:

为何制作这个?

前后端分离的工作不再是后端嵌套页面,往往的工作流程如下:

这时遇到了一个问题,那就是接口文档怎么出,目前我使用的方式经历了以下阶段:

  1. 使用MarkDown出接口文档,放在共同的gitlab仓库上面,前后端都可以访问(只要约定好谁修改就好了,避免两个人都修改出现差异),作为一个经常写方法注释的好程序员来说(其实你的leader也会要求你),要在每一个接口上面写上几行方法注释,注明这个方法是做啥的,不然别人接手不便捷 ^_^;
  2. 使用apiDoc工具(使用方法可以查看:http://birjemin.com/wiki/php-apidoc),将相应的接口规范以注释的方式写在每一个方法上面,然后生成相应的apiDoc文档(只需要写一下注释,不需要再写接口文档啦~),通过node服务搭建一个服务环境,前端直接访问我的开发机进行查看啦~
  3. 使用dingo-api的Blueprint Generator,可是只能在dingo上面使用;

所以该项目的作用是将dingo-api的Blueprint Generator剥离出来(仅限laravel使用)。

为啥使用dingo-api的Blueprint Generator?

Blueprint Generator的使用方式同第二种略相似,即给每一个方法进行注释(遵循一定的规范https://github.com/dingo/api/wiki/API-Blueprint-Documentation),生成apib文档。 这个时候也可以使用第一种的方式将这个文档置于某一个共有的库,前端如果需要可以使用特定的工具进行查看,比如https://github.com/danielgtaylor/agliosnowboard、等等 与方法二的不同点就是该工具生成的是一个markdown文档,这个markdown文档遵循了Blueprint规范,所以和别人对接时直接给这个markdown文档就好啦~他爱用什么工具查看就什么工具~~

注意点

1.类的注释需要有!比如:

2.注释书写方式同dingo https://github.com/dingo/api/wiki/API-Blueprint-Documentation

3.命令:

4.示例:

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
illuminate/filesystem Version ^5.1
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 birjemin/blueprint contains the following files

Loading the files please wait ....