Use PIE to install the native extension for PHP 8.1 or later. Then add the Composer package from your project directory
```console $ pie install dotenvx/phpdotenvx-ext $ composer require dotenvx/phpdotenvx ```
$ pie install dotenvx/phpdotenvx-ext $ composer require dotenvx/phpdotenvx
See the [PHP SDK guide](/docs/sdk/php/) for usage and API details.
markdown