ez-php/contracts 问题修复 & 功能扩展

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

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

ez-php/contracts

Composer 安装命令:

composer require ez-php/contracts

包简介

Shared interfaces and abstract base classes for the ez-php framework — zero framework coupling for standalone modules

README 文档

README

Shared interfaces and abstract base classes for the ez-php framework.

Contracts

Contract Type Purpose
ContainerInterface Interface Dependency injection: bind(), make(), instance()
ServiceProvider Abstract class Two-phase lifecycle: register() and boot()
ConfigInterface Interface Configuration access via dot-notation keys
DatabaseInterface Interface Database queries, transactions, PDO access
ExceptionHandlerInterface Interface Convert exceptions to HTTP responses
MiddlewareInterface Interface HTTP middleware pipeline contract
TranslatorInterface Interface Translate keys with placeholder replacements
JobInterface Interface Queue job contract: handle(), fail(), attempt/retry accessors
QueueInterface Interface Queue driver contract: push(), pop(), size(), failed()
RepositoryInterface Interface Generic repository: find(), save(), delete()
EzPhpException Class Base exception for framework and modules

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-03-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固