Skip to content

gacela-project/gacela-example

Repository files navigation

Gacela Examples

In this repo you can find different examples of usages of Modules using Gacela:

Basic structure of a module using Gacela

application-name
├── gacela.php
├── config
│   └── ...
│
├── src
│   └── ExampleModule
│       ├── Domain
│       │   └── ...
│       ├── Application
│       │   └── ...
│       ├── Infrastructure
│       │   └── ...
│       ├── Config.php
│       ├── DependencyProvider.php
│       ├── Facade.php
│       └── Factory.php
│
├── tests
│   └── ...
└── vendor
    └── ...

Documentation

You can check the full documentation in the official website.

Run the examples

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