# PHP

The Circular Blockchain API suite provides a robust and efficient interface for interacting with the Circular Protocol, a decentralized and highly scalable blockchain network. These APIs enable developers to integrate, query, and execute operations on the Circular Protocol blockchain, supporting a wide range of decentralized applications (dApps), financial transactions, and smart contracts.

### Install from Composer Packages

```bash
composer require circular-protocol/circular-protocol-api
```

Import it in your project with:

```php
<?php
require 'vendor/autoload.php';
use CircularProtocol\Api\CircularProtocolAPI;

$circular = new CircularProtocolAPI();
```

### Install from Repository

Clone the GitHub repository with

```bash
git clone https://github.com/circular-protocol/circular-php.git
```

Install the required library with Compose:

```bash
composer require simplito/elliptic-php
```

Then import it in your project with:

```php
<?php

require_once __DIR__ . '/vendor/autoload.php';
require_once 'circular-php/lib/CircularProtocolAPI.php';

$circular = new CircularProtocolAPI();
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://circular-protocol.gitbook.io/standard-apis/api-docs/php.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
