gacela-project/gacela

Gacela helps you separate your project into modules
226,828 133
Install
composer require gacela-project/gacela
Latest Version:2.4.0
PHP:>=8.3
License:MIT
Last Updated:Aug 17, 2026
Links: GitHub  ·  Packagist
Maintainer: Chemaclass

Gacela — build modular PHP applications

Gacela normalizes module boundaries so parts of your application communicate through a single entry point, without leaking internals.

Each module is built from four pillars — only the first two are required:

  • Facade — public API, the only way in
  • Factory — creates internal services
  • Provider — wires external dependencies (optional)
  • Config — reads project config (optional)

Installation

composer require gacela-project/gacela

Requires PHP 8.3+. Coming from 1.x? See UPGRADE.md.

Module structure

app/
├── gacela.php
├── config/
└── src/
    └── Blog/
        ├── BlogFacade.php
        ├── BlogFactory.php
        ├── BlogProvider.php
        └── BlogConfig.php

That is what make:module App/Blog below writes. Pass --short-name for Facade.php instead of BlogFacade.php — both resolve; the prefix is the default because it survives being read out of context.

CLI

vendor/bin/gacela init                  # scaffold gacela.php
vendor/bin/gacela make:module App/Blog  # scaffold a module
vendor/bin/gacela                       # every command

Modules can be inspected, validated and prepared for production — see CLI commands.

Documentation

Start with getting started, then getting a dependency — the one that answers "how do I reach that from here". docs/ is the full index; the rest:

Contributing

Report issues, share ideas, or open a pull request.


Inspired by Spryker.

Related Packages

nekofar/pest-plugin-mock-client

Pest Plugin for Mock HTTP client

22 1
quadraecom/pest-plugin-selectors

Add CSS selector-based testing capabilities to Pest

2,035 1
pestphp/pest

The elegant PHP Testing Framework.

87,786,318 11,718
kompo/kompo

Laravel & Vue.js FullStack Components for Rapid Application Development

16,058 120
wxm/pdd-sdk

拼多多 SDK 封装, 调用简单、语义化增强。支持 Laravel/Lumen。

5,100 15