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

repat/port-constants 适用场景与选型建议

repat/port-constants 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.65k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2019 年 11 月 06 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 repat/port-constants 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 repat/port-constants 我们能提供哪些服务?
定制开发 / 二次开发

基于 repat/port-constants 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

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