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
Requires
- php: >=8.2
- ext-simplexml: *
- symfony/finder: ^5.4|^6.4|^7.3|^8.0
- symfony/process: ^5.4|^6.4|^7.3|^8.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- phpstan/phpstan: ^2.0
- phpstan/phpstan-phpunit: ^2.0
- phpunit/phpunit: ^10.0
- rector/rector: ^2.0
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 executionProcessExecutor- Concrete class for running CLI tools with PHP binary reuse capabilityProcessResult- DTO for process execution results (exitCode, output, errorOutput)
Configuration Detection (src/Config/)
ConfigurationDetectorInterface- Interface for config file detectionConfigurationDetector- Concrete class for detecting configuration files in project root
Message Truncation (src/Truncator/)
MessageTruncatorInterface- Interface for message truncationMessageTruncator- 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