Download the PHP package hubwiz01/hyperledger-fabric-sdk-php-cn without Composer

On this page you can find all versions of the php package hubwiz01/hyperledger-fabric-sdk-php-cn. 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 hyperledger-fabric-sdk-php-cn

中文翻译如下:

Build Status Coverage Status Scrutinizer Code Quality

Hyperledger Fabric Client SDK for PHP


欢迎使用PHP SDK for Hyperledger项目。此SDK的主要目标是促进客户端执行基本的链代码相关操作,例如:创建通道,安装和访问链代码等。

注意,fabric-sdk-php是一个独立的客户端接口,用于通过运行的区块链网络访问网络信息和分类帐数据,它不能用作应用程序定义的通道数据的持久性介质。

安装

用法

下面,您将找到高级和简洁的代码片段,演示如何与此SDK进行交互。

Channel::queryByChaincode

查询第一个组织中的第一个节点(默认行为):

查询指定组织:

查询指定组织和节点:

查询链码路径和版本:

阶段1

第2阶段(即将发布)

Fabric和Fabric-ca v1.1.0的最新版本

Hyperledger Fabric v1.1.0目前正在积极开发中。

您可以转到Hyperledger存储库来克隆这些项目。


先决条件

Docker version ^17.0

检查Docker的版本:

PHP version ^7.1

检查php版本:

PHP GMP extension

检查 PHP-GMP 安装文件 php.ini

Composer tool

检查 composer 版本 (应该是 1.5 or 以上)

为开发安装 SDK

生成 SDK API 文档

运行End2End测试用例

在运行测试之前,我们需要调出结构网络和fixture(s):

目前,我们正在提供查询链码的示例测试用例,可以按如下方式运行:

运行测试后,随时关闭网络:

更多内容可以看Docker Compose

.proto 文件重新生成 PHP 类文件

更多内容请阅读compiling PHP code from proto files.

特约

我们欢迎您对Github上的American Express开源社区感兴趣。任何开源的贡献者由American Express Open Source Community的项目必须接受并签署一份表示同意的协议以下条款。本协议授予American Express和软件接收者的权利除外由American Express分发,您保留您的贡献中的所有权利,所有权和利益(如果有)。请填写协议

请随意打开pull请求,并查看CONTRIBUTING.md以了解提交格式详细信息。

执照

根据此项目所做的任何贡献将受Apache License 2.0的约束。

行为守则

该项目遵守American Express Community Guidelines。通过参与,你将兑现这些准则。


All versions of hyperledger-fabric-sdk-php-cn with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1
ext-grpc Version *
beberlei/assert Version ^2.6
google/protobuf Version ^v3.5.0
grpc/grpc Version ^v1.3.0
igorw/get-in Version ^1.0
mdanter/ecc Version ^v0.5.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 hubwiz01/hyperledger-fabric-sdk-php-cn contains the following files

Loading the files please wait ....