> For the complete documentation index, see [llms.txt](https://sdk-doc.tyrads.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sdk-doc.tyrads.com/v3.0/iframe/installation/manual-integration/manual-integration-example-using-php.md).

# Manual Integration Example Using PHP

## Using PHP CURL Extension

Here is the implementation example on PHP using PHP CURL Extension

{% embed url="<https://github.com/tyrads-com/php-sdk-iframe-example/blob/main/PHPCurl/index.php>" %}

### Usage Example

1. Clone the repository and open the directory
2. In `PHPCurl/index.php`, change the `$API_KEY` , `$API_SECRET` , `$AGE` , `$GENDER` , and `$PUBLISHER_USER_ID` to yours
3. Open terminal and run `php -S localhost:8000 PHPCurl/index.php`&#x20;
4. Now you can open `http://localhost:8000` on your browser

## Using PHP Guzzle Package

Here is the implementation example on PHP using PHP Guzzle

{% embed url="<https://github.com/tyrads-com/php-sdk-iframe-example/blob/main/PHPGuzzle/src/index.php>" %}

### Usage Example

1. Clone the repository and open the directory
2. In `PHPGuzzle/src/index.php`, change the `$API_KEY` , `$API_SECRET` , `$AGE` , `$GENDER` , and `$PUBLISHER_USER_ID` to yours
3. Open terminal and run `php -S localhost:8000 PHPGuzzle/src/index.php`&#x20;
4. Now you can open `http://localhost:8000` on your browser


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://sdk-doc.tyrads.com/v3.0/iframe/installation/manual-integration/manual-integration-example-using-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.
