Download the PHP package glugox/module without Composer
On this page you can find all versions of the php package glugox/module. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download glugox/module
More information about glugox/module
Files in glugox/module
Download glugox/module
More information about glugox/module
Files in glugox/module
Please rate this library. Is it a good library?
Informations about the package module
glugox/module – Documentation
Introduction
The glugox/module package defines the foundation for modular development in Laravel. It introduces the common abstractions, contracts, and base classes that every module must use. This ensures consistency across all modules and makes it possible for tools like glugox/orchestrator and glugox/module-generator to integrate seamlessly.
Key Concepts
1. Module Abstraction
- A module is a self-contained package that adds functionality to a Laravel app.
- Every module must implement the
ModuleContractor extend the abstractModulebase class. - A module contains its own routes, migrations, views, assets, and service providers.
2. Module Manifest
- The manifest describes the metadata of a module.
- It includes:
id,name,namespace,description,version, andcapabilities. - It allows orchestrators to discover and load modules without knowing implementation details.
3. Contracts
Located in src/Contracts, they enforce module capabilities:
ModuleContract→ defines required metadata methods.HasRoutes,HasMigrations,HasViews,HasAssets→ optional feature interfaces.ManifestContract→ for objects that expose manifest data.
4. Support Classes
ModuleManifest→ value object holding module metadata.ModuleLoader→ utility to bootstrap and resolve modules.
5. Service Provider Integration
ModuleServiceProviderensures that modules can register services into Laravel’s container and lifecycle.
Package Structure
Example Implementation
Defining a Module
Example Manifest
How It Fits in the Ecosystem
glugox/module-generatorcreates modules that extend theModulebase class.glugox/orchestratorloads modules by reading their manifests and registering providers.- Main Laravel App → simply requires modules as composer packages and lets orchestrator manage them.
Benefits
- Standardization → Every module follows the same pattern.
- Reusability → Modules can be reused across multiple Laravel projects.
- Separation of Concerns → Clear split between contracts (in
glugox/module), orchestration (inglugox/orchestrator), and generation (inglugox/module-generator).
Next Steps
- Finalize the
ModuleContractand optional feature interfaces. - Improve
ModuleLoaderto handle different discovery strategies (filesystem, composer). - Document how modules interact with Laravel’s container and lifecycle in detail.
All versions of module with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.2
The package glugox/module contains the following files
Loading the files please wait ...