Installation

This page wants help you to start using package

Version Compatibility

Install via composer

  1. Install package via composer

composer require pavlusha311245/unit-php-sdk
  1. Use in SDK in code

<?php

use UnitPhpSdk\Unit;

require '../vendor/autoload.php';

$unit = new Unit(
    socket: <your socket path to Nginx Unit>,
    address: 'http://localhost'
);

$unit->getConfig();

Last updated