PHPackages                             symm/guzzle-bitpay - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. symm/guzzle-bitpay

Abandoned → [bitpay/php-client](/?search=bitpay%2Fphp-client)ArchivedLibrary[HTTP &amp; Networking](/categories/http)

symm/guzzle-bitpay
==================

Guzzle client for Bitpay API

v1.1.2(11y ago)64913[1 issues](https://github.com/symm/guzzle-bitpay/issues)MITPHP

Since Feb 14Pushed 11y ago2 watchersCompare

[ Source](https://github.com/symm/guzzle-bitpay)[ Packagist](https://packagist.org/packages/symm/guzzle-bitpay)[ RSS](/packages/symm-guzzle-bitpay/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (3)Versions (7)Used By (0)

BitPay Client for PHP
=====================

[](#bitpay-client-for-php)

[![Build Status](https://camo.githubusercontent.com/3c078102837e269a2253f1be963e6896ddcc3aa760dd9b9ad57142ba03cbad4e/68747470733a2f2f7472617669732d63692e6f72672f73796d6d2f67757a7a6c652d6269747061792e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/symm/guzzle-bitpay)[![Code Coverage](https://camo.githubusercontent.com/f782058cd2004ac15895299b583cd185527009b91b86ada90546449540dabe13/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f73796d6d2f67757a7a6c652d6269747061792f6261646765732f636f7665726167652e706e673f733d64396333666465653836383432366363613230363839313830303064636335333566366661363262)](https://scrutinizer-ci.com/g/symm/guzzle-bitpay/)[![Scrutinizer Quality Score](https://camo.githubusercontent.com/60e8f4adc31b19301982c061d23905f8d8667e1fc48f661de787ece0c79fa210/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f73796d6d2f67757a7a6c652d6269747061792f6261646765732f7175616c6974792d73636f72652e706e673f733d35393636363432373638333635333032363137303030666130373533303362323938353865623832)](https://scrutinizer-ci.com/g/symm/guzzle-bitpay/)[![Latest Stable Version](https://camo.githubusercontent.com/b09380fbd05be22550f1a2fa1b708dfce3a8f8ff665f14dacd5a942fc60f4d07/68747470733a2f2f706f7365722e707567782e6f72672f73796d6d2f67757a7a6c652d6269747061792f762f737461626c652e706e67)](https://packagist.org/packages/symm/guzzle-bitpay)[![Total Downloads](https://camo.githubusercontent.com/37381b55ca278a96ae8a309dd567687708c9364875185eb33e32bd288916262d/68747470733a2f2f706f7365722e707567782e6f72672f73796d6d2f67757a7a6c652d6269747061792f646f776e6c6f6164732e706e67)](https://packagist.org/packages/symm/guzzle-bitpay)[![Latest Unstable Version](https://camo.githubusercontent.com/1c542beebf727935e245545d9fdd927a61fc27184730e2c98199804659918210/68747470733a2f2f706f7365722e707567782e6f72672f73796d6d2f67757a7a6c652d6269747061792f762f756e737461626c652e706e67)](https://packagist.org/packages/symm/guzzle-bitpay)[![License](https://camo.githubusercontent.com/977b187591f3dd7be9ede5ae9df087e4cf1e783d07fd92e1ab62fe811346a000/68747470733a2f2f706f7365722e707567782e6f72672f73796d6d2f67757a7a6c652d6269747061792f6c6963656e73652e706e67)](https://packagist.org/packages/symm/guzzle-bitpay)

Add BitPay payment processing support to your PHP application using the [BitPay API](https://bitpay.com/bitcoin-payment-gateway-api) and [Guzzle](https://guzzle.readthedocs.org/)

Installation
------------

[](#installation)

Require the library in your [composer.json](https://getcomposer.org/) file:

```
{
    "require": {
        "symm/guzzle-bitpay": "~1.0"
    }
}
```

Usage
-----

[](#usage)

### Create a client

[](#create-a-client)

```
use Symm\BitpayClient\BitpayClient;

$client = BitpayClient::createClient('YOUR_API_KEY_HERE');
```

### Create a Test Environment Client

[](#create-a-test-environment-client)

A client which communicates with the [Test Environment](http://blog.bitpay.com/2014/05/13/introducing-the-bitpay-test-environment.html)

```
use Symm\BitpayClient\BitpayClient;

$client = BitpayClient::createTestClient('YOUR_TEST_API_KEY_HERE');
```

### Create a new invoice

[](#create-a-new-invoice)

```
$invoice = $client->createInvoice(
    array(
        'price'    => 5,
        'currency' => 'GBP',
    )
);

print $invoice->getUrl() . PHP_EOL;
```

### Receive an existing invoice

[](#receive-an-existing-invoice)

```
$invoice = $client->getInvoice(
    array(
        'id' => 'YOUR_INVOICE_ID_HERE'
    )
);

print $invoice->getStatus() . PHP_EOL;
```

### Verify BitPay Notification

[](#verify-bitpay-notification)

```
$invoice = $client->verifyNotification(file_get_contents("php://input"));
```

### Get exchange rates

[](#get-exchange-rates)

```
$currencyCollection = $client->getRates();
foreach ($currencyCollection as $currency) {
    /** @var \Symm\BitpayClient\Model\Currency $currency */
    print $currency->getCode() . ': ' . $currency->getRate();
}
```

### Localise Invoice page

[](#localise-invoice-page)

```
use Symm\BitpayClient\Localisation\Language;

print $invoice->getUrl(Language::SPANISH)
```

Resources
---------

[](#resources)

[Guzzle Documentation](https://guzzle.readthedocs.org/en/latest/docs.html)

[Official API Documentation](https://bitpay.com/downloads/bitpayApi.pdf)

Copyright and license
---------------------

[](#copyright-and-license)

Code copyright [Gareth Jones](https://github.com/symm) and released under [the MIT license](LICENSE).

###  Health Score

32

—

LowBetter than 71% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 98.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~28 days

Recently: every ~35 days

Total

6

Last Release

4326d ago

Major Versions

v0.2.1 → v1.0.02014-02-16

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/69390?v=4)[Gareth Jones](/maintainers/symm)[@symm](https://github.com/symm)

---

Top Contributors

[![symm](https://avatars.githubusercontent.com/u/69390?v=4)](https://github.com/symm "symm (60 commits)")[![pilot](https://avatars.githubusercontent.com/u/28564?v=4)](https://github.com/pilot "pilot (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/symm-guzzle-bitpay/health.svg)

```
[![Health](https://phpackages.com/badges/symm-guzzle-bitpay/health.svg)](https://phpackages.com/packages/symm-guzzle-bitpay)
```

###  Alternatives

[symfony/http-kernel

Provides a structured process for converting a Request into a Response

8.1k822.4M6.7k](/packages/symfony-http-kernel)[zircote/swagger-php

Generate interactive documentation for your RESTful API using PHP attributes (preferred) or PHPDoc annotations

5.3k132.9M468](/packages/zircote-swagger-php)[symfony/http-client

Provides powerful methods to fetch HTTP resources synchronously or asynchronously

2.0k314.0M3.4k](/packages/symfony-http-client)[nelmio/api-doc-bundle

Generates documentation for your REST API from attributes

2.3k63.6M232](/packages/nelmio-api-doc-bundle)[shopify/shopify-api

Shopify API Library for PHP

4634.8M16](/packages/shopify-shopify-api)[api-platform/metadata

API Resource-oriented metadata attributes and factories

223.5M96](/packages/api-platform-metadata)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
