Download the PHP package repat/port-constants without Composer

On this page you can find all versions of the php package repat/port-constants. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package port-constants

Port Constants

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:

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.

Service Port Const
FTP Data 20 PORT_FTP_DATA
FTP Control 21 PORT_FTP_CTRL
SSH 22 PORT_SSH
Telnet 23 PORT_TELNET
SMTP 25 PORT_SMTP
DNS 53 PORT_DNS
DHCP Server 67 PORT_DHCP_SERVER
DHCP Client 68 PORT_DHCP_CLIENT
Gopher 70 PORT_GOPHER
HTTP 80 PORT_HTTP
POP3 110 PORT_POP3
IMAP 143 PORT_IMAP
SNMP 161 PORT_SNMP
SNMP TRAP 162 PORT_SNMP_TRAP
IRC 194 PORT_IRC
LDAP 389 PORT_LDAP
HTTPS 443 PORT_HTTPS
HTTPS 443 PORT_SSL
SMTPS 465 PORT_SMTPS
RSH 514 PORT_RSH
DHCP IPv6 Client 546 PORT_DHCP6_CLIENT
DHCP IPv6 Server 547 PORT_DHCP6_SERVER
SMTP MSA 587 PORT_SMTP_MSA
LDAPS 636 PORT_LDAPS
Doom 666 PORT_DOOM
FTPS Data 989 PORT_FTPS_DATA
FTPS Control 990 PORT_FTPS_CTRL
IMAPS 993 PORT_IMAPS
POP3S 995 PORT_POP3S
OpenVPN 1194 PORT_OPENVPN
MySQL/MariaDB 3306 PORT_MYSQL
SIP 5060 PORT_SIP
SIPS 5061 PORT_SIPS
XMPP C2S 5222 PORT_XMPP_C2S
XMPP Legacy SSL 5223 PORT_XMPP_LEGACY_SSL
XMPP S2S 5269 PORT_XMPP_S2S
PostgreSQL 5432 PORT_POSTGRES
CouchDB 5984 PORT_COUCHDB
Redis 6379 PORT_REDIS
IRC Alternative 6667 PORT_IRC_ALT
BitTorrent Tracker 6969 PORT_BITTORRENT_TRACKER
BitTorrent Start Range 6881 PORT_BITTORRENT_START
BitTorrent End Range 6889 PORT_BITTORRENT_END
Memcached 11211 PORT_MEMCACHED
MongoDB 27017 PORT_MONGODB

TODO

Version

Contact

repat

Flattr this git repo


All versions of port-constants with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package repat/port-constants contains the following files

Loading the files please wait ....