repat / port-constants
A series of constants for working with standardized network ports
Installs: 1 161
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 0
Requires (Dev)
- phpunit/phpunit: ^6.0
This package is auto-updated.
Last update: 2024-11-07 05:11:13 UTC
README
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
- Homepage: https://repat.de
- e-mail: repat@repat.de
- Twitter: @repat123