eislambey/free-port

Get a random and free TCP port that is ready to use.

v0.1.0 2019-11-28 07:09 UTC

This package is auto-updated.

Last update: 2024-11-28 19:19:23 UTC


README

Get a random and free TCP port that is ready to use.

Installation

composer require eislambey/free-port

Usage

<?php

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

use Islambey\FreePort;

var_dump(FreePort\get());

Tests

composer test