team-mate-pro/contracts 问题修复 & 功能扩展

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

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

team-mate-pro/contracts

最新稳定版本:1.0.13

Composer 安装命令:

composer require team-mate-pro/contracts

包简介

A set of contracts in TMP company projects

README 文档

README

PHP 8.2+ shared interfaces and value objects for TeamMatePro projects.

Installation

composer require team-mate-pro/contracts

composer require "team-mate-pro/contracts:dev-main as 1.0.x-dev" # in case of conflict

Usage

use TeamMatePro\Contracts\Model\IdAware;
use TeamMatePro\Contracts\ValueObject\Coordinates;

// Use shared interfaces
class MyEntity implements IdAware {
    public function getId(): string { /* ... */ }
}

// Use value objects
$location = new Coordinates(latitude: 40.7128, longitude: -74.0060);

Development

make fix          # Auto-fix code styling
make check_fast   # Quick validation (phpcs, phpstan)
make check        # Full CI/CD validation
make tests        # Run all tests

Run make help for all available commands.

Requirements

  • PHP 8.2+
  • PSR-4 autoloading

License

Proprietary

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-10-29