# Introduction

Requirements:

PHP: ^8.1

Base initiation:

```php
$dpay = new \PatryQHyper\Dpay\Dpay();
```

In Dpay constructor you can pass 2 environments. As default, the environment is set to **Production**:

```php
new \PatryQHyper\Dpay\Environment\ProductionEnvironment();
new \PatryQHyper\Dpay\Environment\TestEnvironment();
```

SDK is divided into 2 "actions".

One is panel(); which calls requests to Panel API (<https://panel.dpay.pl/api>),

Second is secure(); which calls requests to Secure API (<https://secure.dpay.pl>)


---

# 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://patryqhyper.gitbook.io/dpay-php-sdk/introduction.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.
