sandrokeil/interop-config
Framework-agnostic PHP library for configuration-driven factories. Validates config structure, merges defaults, enforces required options, reduces factory boilerplate, supports auto-discovery of factories, and can generate configuration files from factory classes.
@ConfigurationProperties).For Executives: "This package treats configurations as first-class citizens—validating them upfront to catch errors early and ensuring every service uses the same rules. For example, if we’re rolling out a new payment processor, we can define its required configs (API key, timeout) once, and the system will reject invalid setups before they reach production. It’s like a ‘contract’ for configs, reducing bugs and speeding up feature launches. Now with PHP 8 support, it integrates seamlessly with our modern stack, saving dev time and future-proofing our infrastructure. Low maintenance (actively updated) and ideal for teams prioritizing reliability over custom solutions."
For Engineering:
*"Problem: Managing configs across services/tenants is error-prone—missing fields, wrong types, or environment-specific quirks slip through.
Solution: interop-config gives us:
PaymentGateway) with validated configs, e.g., new PaymentGatewayFactory()->make($config).['api_key' => 'string', 'timeout' => 'int'] via interfaces.api_key).Feature::make($config) where $config must include enabled and priority.tenant_configs before injecting into a service.How can I help you explore Laravel packages today?