gacela-project / gacela
Gacela 帮助您将项目划分为模块
1.8.0
2024-08-17 20:50 UTC
Requires
- php: >=8.1
- gacela-project/container: ^0.6
Requires (Dev)
- ergebnis/composer-normalize: ^2.43
- friendsofphp/php-cs-fixer: ^3.56
- infection/infection: ^0.26
- phpbench/phpbench: ^1.3
- phpmetrics/phpmetrics: ^2.8
- phpstan/phpstan: ^1.11
- phpstan/phpstan-strict-rules: ^1.6
- phpunit/phpunit: ^10.5
- psalm/plugin-phpunit: ^0.19
- rector/rector: ^1.2
- symfony/console: ^6.4
- symfony/var-dumper: ^6.4
- vimeo/psalm: ^5.25
Suggests
- gacela-project/gacela-env-config-reader: Allows to read .env config files
- gacela-project/gacela-yaml-config-reader: Allows to read yml/yaml config files
- gacela-project/phpstan-extension: A set of phpstan rules for Gacela
- symfony/console: Allows to use vendor/bin/gacela script
- dev-main
- 1.8.0
- 1.7.1
- 1.7.0
- 1.6.0
- 1.5.0
- 1.4.0
- 1.3.0
- 1.2.0
- 1.1.1
- 1.1.0
- 1.0.1
- 1.0.0
- 0.32.0
- 0.31.0
- 0.30.1
- 0.30.0
- 0.29.0
- 0.28.0
- 0.27.0
- 0.26.0
- 0.25.0
- 0.24.0
- 0.23.1
- 0.23.0
- 0.22.0
- 0.21.0
- 0.20.0
- 0.19.0
- 0.18.1
- 0.18.0
- 0.17.2
- 0.17.1
- 0.17.0
- 0.16.0
- 0.15.0
- 0.14.0
- 0.13.0
- 0.12.0
- 0.11.0
- 0.10.0
- 0.9.0
- 0.8.0
- 0.7.0
- 0.6.0
- 0.5.0
- 0.4.0
- 0.3.0
- 0.2.0
- 0.1.0
- dev-feat/test-bash-tools
- dev-fix/solve-windows-ci
- dev-add-with-all-to-modules-list
This package is auto-updated.
Last update: 2024-09-19 20:20:09 UTC
README
Gacela 帮助您构建模块化应用程序
愿景:简化您在 Web 应用程序中不同模块之间的通信。
使命:规范化模块的入口点,不干扰您的领域业务逻辑。
将项目划分为不同的模块有助于维护性和可扩展性。它鼓励模块通过遵循以下规则以统一的方式相互交互
安装
composer require gacela-project/gacela
模块结构
您可以使用模块名称作为 gacela 类的前缀来提高可读性。更多关于 gacela 的信息,请参阅 这里。
使用 gacela 模块的示例应用程序结构
application-name
├── gacela.php
├── config
│ └── ...
│
├── src
│ ├── ModuleA
│ │ ├── Domain
│ │ │ └── ...
│ │ ├── Application
│ │ │ └── ...
│ │ ├── Infrastructure
│ │ │ └── ...
│ │ │ # These are the 4 "gacela classes":
│ │ ├── Facade.php
│ │ ├── Factory.php
│ │ ├── Provider.php
│ │ └── Config.php
│ │
│ └── ModuleB
│ └── ...
│
├── tests
│ └── ...
└── vendor
└── ...
文档
您可以在官方 网站 上查看完整的文档。
示例
您可以在 此存储库 中查看使用 gacela 的示例。
贡献
欢迎您贡献,包括报告 问题、分享 想法 或通过您的拉取请求 贡献。
灵感来源于 Spryker 框架: https://github.com/spryker