matesofmate/common

Common functionality shared across MatesOfMate extensions

Installs: 81

Dependents: 2

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/matesofmate/common

dev-main / 0.1.x-dev 2026-01-12 20:57 UTC

This package is auto-updated.

Last update: 2026-01-12 20:57:22 UTC


README

Shared functionality for MatesOfMate extensions.

Components

Process Execution (src/Process/)

  • ProcessExecutorInterface - Interface for process execution
  • ProcessExecutor - Concrete class for running CLI tools with PHP binary reuse capability
  • ProcessResult - DTO for process execution results (exitCode, output, errorOutput)

Configuration Detection (src/Config/)

  • ConfigurationDetectorInterface - Interface for config file detection
  • ConfigurationDetector - Concrete class for detecting configuration files in project root

Message Truncation (src/Truncator/)

  • MessageTruncatorInterface - Interface for message truncation
  • MessageTruncator - Concrete class for token-efficient output with prefix removal and class name shortening

Development

# Install dependencies
composer install

# Run tests
composer test

# Check code quality
composer lint

# Fix code style
composer fix

License

MIT