Search by

matesofmate / common

wachterjohannes

Common functionality shared across MatesOfMate extensions

Package info

github.com/MatesOfMate/common

pkg:composer/matesofmate/common

Statistics

Installs: 14 411

Dependents: 4

Suggesters: 0

Stars: 0

Open Issues: 0

0.7.0 2026-09-07 18:18 UTC

This package is auto-updated.

Last update: 2026-09-08 19:48:35 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