crownsdevelopment / coinbase
This package is abandoned and no longer maintained.
No replacement package was suggested.
A PHP Client for the Coinbase API.
dev-master
2020-11-22 13:45 UTC
Requires
- php: ^7.3
- symfony/http-client: ~5.1
Requires (Dev)
- phpunit/phpunit: ~9.3
This package is auto-updated.
Last update: 2022-08-29 18:56:23 UTC
README
PHP client library to use the Coinbase API.
🏗️ The PHP client is currently in development.
Composer install
Installing the Coinbase client for PHP can be done through Composer.
$ composer require crownsdevelopment/coinbase
Configuration
To use the library you have to set environment variables. The following are required to create a connection with Coinbase.
Variable | Description |
---|---|
COINBASE_API_KEY | The API key generated by Coinbase. |
COINBASE_API_SECRET | The API secret generated by Coinbase. |
Symfony
To use the client as a service in Symfony you have to wire it manually. This can be done in the services.yml file.
services:
Crownsdevelopment\Coinbase\:
resource: '../vendor/crownsdevelopment/coinbase/src'
Testing
If you would like to test, use following command.
$ ./vendor/bin/phpunit --do-not-cache-result