repat/port-constants

A series of constants for working with standardized network ports

0.1.3 2019-11-06 17:39 UTC

This package is auto-updated.

Last update: 2024-11-07 05:11:13 UTC


README

Build Status Packagist

The Port Constants package defines a number of useful PHP constants within your application, making it easier to express network port numbers. Pull Requests are welcome!

Shoutout to the stevegrunwell/time-constants package for the idea. I also wrote a repat/date-constants package and repat/http-constants.

Installation

Port Constants is intended to be installed via Composer:

$ composer require repat/port-constants

The package has been configured to automatically expose the constants.php file via the Composer-generated autoloader, so you'll be ready to use the constants as soon as the package has been installed!

Defined constants

This is a list of all constants defined by this package, along with their values. Each constant is wrapped in a if (! defined(...)) conditional, ensuring these constants can easily be redefined if necessary and won't conflict with existing constants.

TODO

  • Finish Tests

Version

  • Version 0.1.3

Contact

repat

Flattr this git repo