Module Development

Overview

Extend ComplyFlow by creating custom modules using the provided architecture and interfaces.

Key Concepts

    1. ModuleInterface: All modules must implement this interface for consistency.
    2. Custom Module Creation: Create a new class in includes/Modules/YourModule/ and register it in the ModuleManager.
    3. Dependency Injection: Use constructor injection for services and repositories.
    4. PSR-4 Autoloading: Follow the PSR-4 standard for class and file structure.
    5. Steps

    6. Create a new module directory and PHP class implementing ModuleInterface.
    7. Register your module in the ModuleManager.
    8. Use dependency injection for accessing core services.
    9. Add hooks, filters, and settings as needed.
    10. Tips

    11. Review existing modules for best practices.
    12. Use the SettingsRepository for configuration.
    13. Document your module for maintainability.

Share this article

Was this article helpful?

Help us improve our documentation

Still need help?

Our support team is ready to assist you with personalized guidance for your workspace.

Submit a support ticket