Download the PHP package power-modules/framework without Composer
On this page you can find all versions of the php package power-modules/framework. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download power-modules/framework
More information about power-modules/framework
Files in power-modules/framework
Package framework
Short Description Framework for building modular PHP applications and plugin ecosystems with encapsulated modules and PowerModuleSetup extensions
License MIT
Informations about the package framework
Modular Framework
A general-purpose modular architecture framework for PHP. Build applications where each module has its own dependency injection container, with carefully controlled sharing through explicit import/export contracts.
๐ก Versatile: Works well for CLI tools, data pipelines, background processors, APIs, and complex PHP applications that benefit from clear module boundaries.
โจ Why Modular Framework?
- ๐ True Encapsulation: Each module has its own isolated DI container
- โก PowerModuleSetup: Extend module functionality without breaking encapsulation
- ๐ Microservice Ready: Isolated modules can easily become independent services
- ๐ Explicit Dependencies: Import/export contracts make relationships visible
- ๐งช Better Testing: Test modules in isolation with their own containers
- ๐ฅ Team Scalability: Different teams can own different modules
- ๐ Plugin-Ready: Third-party modules extend functionality safely
๐ Architectural Vision
This framework is more than just another library โ it introduces a new architectural paradigm to the PHP ecosystem, built on runtime-enforced encapsulation and true modularity, inspired by mature systems like OSGi.
To understand the core innovations and how this framework differs from established solutions like Symfony and Laravel, please read our Architectural Vision Document.
Quick Start
โก PowerModuleSetup Extension System
The framework's most powerful feature - PowerModuleSetup allows extending module functionality without breaking encapsulation:
Available extensions:
- power-modules/router - HTTP routing with PSR-15 middleware and RFC 7807 problem-details defaults
- power-modules/plugin - Plugin architecture for third-party modules
- power-modules/dependency-graph - Visualize module dependencies
- power-modules/dependency-graph-mermaid - Mermaid plugin for dependency graph rendering
- power-modules/console - PowerModuleSetup extension that auto-discovers and registers Symfony Console commands from Power Modules
Coming soon:
- power-modules/events - Event-driven architecture
- Your own! - Create custom PowerModuleSetup implementations for your needs
๐ Microservice Evolution Path
Start with a modular monolith, evolve to microservices naturally:
Today: Modular monolith
Later: Independent microservices
โน๏ธ Note: This example is a simplified illustration of the evolution path. In a real application,
UserModulemight continue to support in-process communication alongside the HTTP client, and the actual microservice implementation would likely live in its own repository.
Because modules are designed with clear boundaries from the start, splitting them into independent services is a natural next step when you're ready to scale.
๐ Documentation
๐ Complete Documentation Hub - Comprehensive guides, examples, and API reference
Quick Links:
- Getting Started - Build your first module in 5 minutes
- Use Cases - Real-world examples (web APIs, ETL, etc.)
- Architecture - Deep dive into framework internals
Contributing
See CONTRIBUTING.md for development setup and guidelines.
License
MIT License. See LICENSE for details.