PHPackages                             nxsys/library.clients-brex - 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. [API Development](/categories/api)
4. /
5. nxsys/library.clients-brex

ActiveLibrary[API Development](/categories/api)

nxsys/library.clients-brex
==========================

PHP SDK for Brex

2408.6.0+b50351708(1y ago)413[1 PRs](https://github.com/NxSys/library.clients-brex/pulls)MITPHPCI passing

Since Mar 30Pushed 3mo ago3 watchersCompare

[ Source](https://github.com/NxSys/library.clients-brex)[ Packagist](https://packagist.org/packages/nxsys/library.clients-brex)[ Docs](http://nxsys.org/spaces/onx)[ RSS](/packages/nxsys-libraryclients-brex/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (13)Versions (5)Used By (0)

[![MIT License](https://camo.githubusercontent.com/458425f8985b0b0c8a736cffe75e05a098e3d77906acddbcad2bfc54492a4e02/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e7376673f7374796c653d666c61742d737175617265)](https://choosealicense.com/licenses/mit/)| [![Packagist Version](https://camo.githubusercontent.com/592aec5b57d6614dafe04a29d61149c44473db62e6fd0166b1129a7349dab181/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e787379732f6c6962726172792e636c69656e74732d627265783f7374796c653d666c61742d73717561726526696e636c7564655f70726572656c6561736573)](https://packagist.org/packages/nxsys/library.clients-brex)| [![GitHub issues](https://camo.githubusercontent.com/36a14f4fa099d82fec304e7b13940b145122851f4de5f41695a559796e068120/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f6e787379732f6c6962726172792e636c69656e74732d627265783f7374796c653d666c61742d737175617265)](https://github.com/NxSys/library.clients-brex/labels/bug)| [![GitHub issues](https://camo.githubusercontent.com/9bc185f85af02cb379cef7a89c3ce70d292ba2f16286c3dc127fa3cbd790d3e2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732d636c6f7365642d7261772f6e787379732f6c6962726172792e636c69656e74732d627265783f7374796c653d666c61742d737175617265)](https://github.com/NxSys/library.clients-brex/issues?q=is%3Aclosed+label%3Abug+)| [![AppVeyor branch](https://camo.githubusercontent.com/4cc95b363de1935a67303a49488aa2dc22e58e4846708136b008aa3167f425e1/68747470733a2f2f696d672e736869656c64732e696f2f6170707665796f722f6275696c642f4e785379732f6c6962726172792d636c69656e74732d627265782f7472756e6b3f7374796c653d666c61742d737175617265)](https://ci.appveyor.com/project/NxSys/library-clients-brex)| [![Sonar Quality Gate](https://camo.githubusercontent.com/aeb0ea114b9dadc68257d37f8c894557d020e952722255e96df499b13d406612/68747470733a2f2f696d672e736869656c64732e696f2f736f6e61722f7175616c6974795f676174652f4e785379735f6c6962726172792e636c69656e74732d627265783f7365727665723d6874747073253341253246253246736f6e6172636c6f75642e696f267374796c653d666c61742d737175617265)](https://sonarcloud.io/summary/overall?id=NxSys_library.clients-brex)| [![Sonar Tech Debt](https://camo.githubusercontent.com/c527cfa33f27c8ebef0cf9a13a9ec29cb186d8de95908537f64ea3aa8b63034c/68747470733a2f2f696d672e736869656c64732e696f2f736f6e61722f746563685f646562742f4e785379735f6c6962726172792e636c69656e74732d627265783f7365727665723d68747470253341253246253246736f6e6172636c6f75642e696f267374796c653d666c61742d737175617265)](https://sonarcloud.io/component_measures?metric=sqale_debt_ratio&id=NxSys_library.clients-brex)

Brex SDK for PHP
================

[](#brex-sdk-for-php)

[![CII Best Practices Summary](https://camo.githubusercontent.com/40761db88e69a8338c40d538c6ed33869cc8fea90166ea82f9f7f7703b1aaf3b/68747470733a2f2f696d672e736869656c64732e696f2f6369692f73756d6d6172792f363933303f7374796c653d666f722d7468652d6261646765)](https://bestpractices.coreinfrastructure.org/projects/6930)

 [Report a Bug](https://github.com/NxSys/library.clients-brex/issues/new?assignees=&labels=bug&template=01_BUG_REPORT.md&title=bug%3A+) · [Request a Feature](https://github.com/NxSys/library.clients-brex/issues/new?assignees=&labels=enhancement&template=02_FEATURE_REQUEST.md&title=feat%3A+) · [Ask a Question](https://github.com/NxSys/library.clients-brex/issues/new?assignees=&labels=question&template=04_SUPPORT_QUESTION.md&title=support%3A+)

This is an SDK to allow PHP applications to quickly use the Brex [REST API](https://developer.brex.com/) to accomplish all common banking tasks available from the API. Through [code generation](https://jane.readthedocs.io/en/latest) we currently support full API coverage.

You will, of course, [need to be a Brex client](https://www.brex.com/sales) to get any use from this library.

CAUTION: This is financial software. The nature of the Brex API means that most usage will involve dealing with highly sensitive financial data and/or money transfers. You are entirely responsible for ensuring that proper security measures are implemented to protect your property (money and information). Please observe the [LICENSE](LICENSE.txt) (and its *disclaimer*), and thoroughly understand [SECURITY](SECURITY.md) (and the limitations of this implementation).

Getting Started
---------------

[](#getting-started)

### Requirements

[](#requirements)

- [A Brex Account](https://www.brex.com/sales)
- [PHP 8.1](https://www.php.net/downloads.php)
- [Composer](https://getcomposer.org/doc/00-intro.md)
- A [library that implements PSR7](https://packagist.org/providers/psr/http-factory-implementation)

### Installation

[](#installation)

Install `nxsys/library.clients-brex` with composer.

```
composer require nxsys/library.clients-brex
```

This library allows you to keep the http client library you may already be using in your application. It does this through [service discovery](https://docs.php-http.org/en/latest/discovery.html). If you are not using an [PSR-7 aware HTTP client](https://docs.php-http.org/en/latest/message/message-factory.html) you will need to [install one](https://packagist.org/providers/psr/http-factory-implementation).

We have tested this against [Symfony's HTTP Client](https://symfony.com/doc/current/http_client.html). Install the package below.

```
composer require symfony/http-client

```

> If this is confusing please read  and don't hesitate to [chat with us](https://onx.zulipchat.com)!

Usage/Examples
--------------

[](#usageexamples)

```
