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

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

Build Status Coverage Status Scrutinizer Code Quality

Hyperledger Fabric Client SDK for PHP


Welcome to PHP SDK for Hyperledger project. The main objective of this SDK is to facilitate a client to perform basic chaincode related operations like: creating a channel, installing and accessing a chaincode etc.

Note, the fabric-sdk-php is a standalone client side interface to access the network information and ledger data over running blockchain network, it cannot be used as a persistence medium for application defined channels data.

Installation

Usage

Below, you will find high-level and concise snippets of code demonstrating how to interact with this SDK.

Channel::queryByChaincode

Query first peer in first organization (default behavior):

Query specific organization:

Query specific organization and peer:

Query chaincode by path and version:

Phase 1

Phase 2 (Upcoming)

Latest builds of Fabric and Fabric-ca v1.1.0

Hyperledger Fabric v1.1.0 is currently under active development.

You can clone these projects by going to the Hyperledger repository.


Prerequisites

Docker version ^17.0

Check version of Docker:

PHP version ^7.1

Check version of PHP:

PHP GMP extension

Check PHP-GMP setup in php.ini

Composer tool

Check composer version (it should be 1.5 or plus)

Installing SDK (for development)

Generating SDK API Documentation

Running the End2End test case

Before running the tests, we need to bring up the fabric network and fixture(s):

At present, we are providing example test case for Querying a chaincode, which can be run as below:

After running the tests, feel free to bring down the fabric network:

Read more about Docker Compose

Regenerating PHP Class files from .proto files

Read more about compiling PHP code from proto files.

Contributing

We welcome Your interest in the American Express Open Source Community on Github. Any Contributor to any Open Source Project managed by the American Express Open Source Community must accept and sign an Agreement indicating agreement to the terms below. Except for the rights granted in this Agreement to American Express and to recipients of software distributed by American Express, You reserve all right, title, and interest, if any, in and to Your Contributions. Please fill out the Agreement.

Please feel free to open pull requests and see CONTRIBUTING.md for commit formatting details.

License

Any contributions made under this project will be governed by the Apache License 2.0.

Code of Conduct

This project adheres to the American Express Community Guidelines. By participating, you are expected to honor these guidelines.


All versions of hyperledger-fabric-sdk-php 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 americanexpress/hyperledger-fabric-sdk-php contains the following files

Loading the files please wait ....