> For the complete documentation index, see [llms.txt](https://patryqhyper.gitbook.io/dpay-php-sdk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://patryqhyper.gitbook.io/dpay-php-sdk/introduction.md).

# 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>)
