Skip to content

grantlucas/php-portfinder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Port Finder

A simple PHP package to find an available port within a range.

Installation using Composer

$ composer require grantlucas/php-portfinder

Usage

The following will return the first available port within the range for the provided host.

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

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

About

A simple PHP package to find an available port within a range.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages