Download the PHP package craigpotter/fca-php-sdk without Composer
On this page you can find all versions of the php package craigpotter/fca-php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download craigpotter/fca-php-sdk
More information about craigpotter/fca-php-sdk
Files in craigpotter/fca-php-sdk
Package fca-php-sdk
Short Description An unofficial PHP SDK consuming the FCA API
License MIT
Homepage https://github.com/craigpotter
Informations about the package fca-php-sdk
FCA API SDK for PHP
This is an unofficial PHP SDK for FCA's API and is powered by Saloon.
Note: This SDK is still in development and is not yet ready for production use. Use at your own risk.
Installation
You can install the package via composer:
Requirements
You will need to have a valid API key from FCA to use this SDK.
You can obtain one by registering as a developer.
Example Usage
Documentation
Warning: This documentation is still a work in progress.
Some responses have the option of a DTO (Data Transfer Object) which can be used to access the response data.
This does not work for all responses, but is documented where it is available.
For all other responses, you can access the raw JSON response using $response->json()
.
Firms
Check an FRN exists
Get a firm by FRN
Get the individuals associated with a firm by FRN
This endpoint is paginated and will return a maximum of 20 results per page.
You should loop through the pages to get all results.
Get the addresses associated with a firm by FRN
This endpoint is paginated and will return a maximum of 20 results per page.
You should loop through the pages to get all results.
Testing
Copy .env.example
to .env
and update accordingly.
Credits
- Craig Potter
- All Contributors
License
The MIT License (MIT). Please see License File for more information.