2017 © Pedro Peláez
 

library php-portfinder

A simple tool to find an available port within a range.

image

grantlucas/php-portfinder

A simple tool to find an available port within a range.

  • Wednesday, June 10, 2015
  • by grantlucas
  • Repository
  • 1 Watchers
  • 0 Stars
  • 979 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

PHP Port Finder

A simple PHP package to find an available port within a range., (*1)

Installation using Composer

$ composer require grantlucas/php-portfinder

Usage

The following will return the first available port within the range for the provided host., (*2)

require_once(__DIR__ . '/vendor/autoload.php');
use GrantLucas\PortFinder;

$port = PortFinder::range('127.0.0.1', 9901, 9999);

The Versions

10/06 2015

dev-master

9999999-dev

A simple tool to find an available port within a range.

  Sources   Download

MIT

by Grant Lucas

12/01 2015

v1.0

1.0.0.0

A simple tool to find an available port within a range.

  Sources   Download

MIT

by Grant Lucas