team-mate-pro/contracts

A set of contracts in TMP company projects

Installs: 20

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/team-mate-pro/contracts

1.0.1 2025-10-29 19:53 UTC

This package is not auto-updated.

Last update: 2025-10-30 14:42:01 UTC


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