In this repo you can find different examples of usages of Modules using Gacela:
- Comment Spam Score (Level: easy)
- Using Gacela cli (Level: easy)
- Using Custom Config (Level: medium)
- Gacela in a File (Level: medium)
- Price List Checker (Level: advanced)
- Resolve different namespaces (Level: advanced)
- Extending a service (Level: advanced)
application-name
├── gacela.php
├── config
│ └── ...
│
├── src
│ └── ExampleModule
│ ├── Domain
│ │ └── ...
│ ├── Application
│ │ └── ...
│ ├── Infrastructure
│ │ └── ...
│ ├── Config.php
│ ├── DependencyProvider.php
│ ├── Facade.php
│ └── Factory.php
│
├── tests
│ └── ...
└── vendor
└── ...
You can check the full documentation in the official website.
git clone https://github.com/gacela-project/gacela-example.git
cd gacela-example
# enter the example project, eg 'gacela-in-a-file'
cd gacela-in-a-file
# install dependencies (eg 'gacela' 😉)
composer install
# run example
php app.php