repat/port-constants 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

repat/port-constants

Composer 安装命令:

composer require repat/port-constants

包简介

A series of constants for working with standardized network ports

README 文档

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.

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

  • Finish Tests

Version

  • Version 0.1.3

Contact

repat

Flattr this git repo

统计信息

  • 总下载量: 1.65k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-11-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固