Download the PHP package erikwang2013/industrial-protocols-kernel without Composer

On this page you can find all versions of the php package erikwang2013/industrial-protocols-kernel. 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 industrial-protocols-kernel

Industrial Protocols Kernel — 微内核

English

微内核基础设施,提供连接管理、配置管理、网关引擎、事件系统、协程适配、框架适配、硬件桥接、厂商配置。42 个协议包的核心依赖。

安装

本包依赖 erikwang2013/industrial-protocols-kernel,内核提供连接管理、协议注册、协程适配、事件系统等基础设施。

架构

微内核 + 协议 SDK。内核只定义协议是什么(6 个核心接口),不包含任何具体协议实现。协议包独立安装、零耦合,通过实现 SDK 接口接入内核。内核启动时通过 ProtocolRegistry 自动发现已安装的协议包(composer.json extra 字段)。

功能

ProtocolRegistry 协议自动发现与注册、ConnectionManager 连接管理(Lazy/Eager/Pooled 三种策略+健康检查+自动重连)、ConfigRepository 配置管理(File/Database/Env 三种实现)、GatewayEngine 网关引擎(poll/change/cron 触发+CircuitBreaker 熔断器+Transform 变换管道)、CoroutineAdapter 协程适配(Swoole→Fiber→Sync 三级降级)、6 框架适配器(Laravel/Webman/Hyperf/ThinkPHP/Yii2/PlainPHP)、BridgeInterface 硬件桥接(ExternalProcessBridge+TcpGatewayBridge+BridgeConnector)、VendorProfile 厂商预置配置(12家+VendorBridgeFactory)、Event 事件系统(PSR-14 标准,13种事件)、Log 日志驱动(PsrLogDriver/FileLogDriver/NullLogDriver)、Retry 重试策略(NoRetry/FixedRetry/ExponentialBackoff+Jitter)、Metrics 指标采集(Counter/Gauge/Histogram+Prometheus导出)、Alert 告警通道(AlertManager+Webhook/Log)、Security 安全校验(InputValidator 输入校验)、Exception 异常体系(20+分层异常)

支持的框架

本包通过内核的框架适配器兼容以下 6 种 PHP 运行时环境:Laravel (ServiceProvider+Facade+artisan)、Webman (config/plugin 自动发现+ProtocolProcess)、Hyperf (ConfigProvider+DI+KernelFactory)、ThinkPHP (services.php+IndustrialProtocolsService)、Yii2 (Bootstrap+组件注册)、Plain PHP (直接实例化 Kernel)

Laravel 示例

Webman 示例

Worker 启动时 ProtocolProcess 自动初始化。配置 config/plugin/erikwang2013/industrial-protocols-kernel/config/industrial-protocols.php

Hyperf 示例

使用说明

配置示例

适配厂商

Beckhoff (TwinCAT ADS)、Siemens (Open Communication)、B&R (Automation Studio/openPOWERLINK)、Bosch Rexroth (ctrlX CORE/netX)、Hilscher (netX SoC)、HMS/Anybus (Communicator/X-gateway)、Moxa (MGate)、Phoenix Contact (AXL F)、Bihl+Wiedemann (AS-i)、ifm electronic (IO-Link)、Pepperl+Fuchs (AS-i/HART)、Softing (FF/PROFIBUS)

系统要求

相关链接

License

MIT — Copyright (c) 2026 erik https://erik.xyz


All versions of industrial-protocols-kernel with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
psr/log Version ^3.0
psr/event-dispatcher Version ^1.0
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 erikwang2013/industrial-protocols-kernel contains the following files

Loading the files please wait ...