Comment on page


This page wants help you to start using package

Version Compatibility

PHP version
Nginx Unit version
Package Version
8.2 or higher
1.30.0 or higher

Install via composer

  1. 1.
    Install package via composer
composer require pavlusha311245/unit-php-sdk
  1. 2.
    Use in SDK in code
use UnitPhpSdk\Unit;
require '../vendor/autoload.php';
$unit = new Unit(
socket: <your socket path to Nginx Unit>,
address: 'http://localhost'