PHP library
The PHP Library code is available here.
The php library implements all the API functions to help accelerate development of credit commons apps and to provide a compatibility layer.
it is required by any PHP application which wants to read or write to a Credit commons node via REST. That includes Reference Node while addressing remote nodes and also the Developers’ client which provides a Full UI to a credit commons node at any URL via REST.
This repo also hosts the OpenAPI specification.
Installation
This is not a standalone app or a REST server, and is already included as needed in the other credit commons reference implementation repositories. If you are making a client side application or a new node implementation, first add this repository to your composer.json
"repositories": [
{
"type": "gitlab",
"url": "git@gitlab.com:credit-commons/cc-php-lib.git"
}
]
Then require it thus:
$ composer require credit-commons/cc-php-lib