Installation
Full starting APP
Section titled “Full starting APP”It will pull in a skeleton project to get you started fast, with some example files
composer create-project fatjon-lleshi/antares-appStandalone Packages
Section titled “Standalone Packages”Core package, which pulls in the container, router, and validation packages automatically, best value will be gained fron installing the app above.
composer require fatjon-lleshi/antaresEach package can be used independently:
composer require fatjon-lleshi/antares-containercomposer require fatjon-lleshi/antares-routercomposer require fatjon-lleshi/antares-validationBridge Packages
Section titled “Bridge Packages”Install optional bridge packages for logging and database access, these are convenience packages providing the service via auto Discovery you just skip the service registration part
composer require fatjon-lleshi/antares-monolog-bridgecomposer require fatjon-lleshi/antares-eloquent-bridgeDirectory Structure
Section titled “Directory Structure”A typical Antares project looks like this:
my-app/├── app/│ ├── Controllers/│ ├── DTOs/│ ├── Guards/│ ├── Middleware/│ ├── Responses/│ └── Providers/│ ├── AppServiceProvider.php│ └── RouteServiceProvider.php├── public/│ └── index.php├── storage/│ ├── cache/│ └── logs/├── .env.exmaple└── composer.json└── worker.php└── swoole.phpEnvironment File
Section titled “Environment File”Antares uses vlucas/phpdotenv to load environment variables. Create a .env file in your project root:
APP_ENV=localAPP_NAME=my-app
DB_DRIVER=mysqlDB_HOST=127.0.0.1DB_PORT=3306DB_DATABASE=my_dbDB_USERNAME=rootDB_PASSWORD=
LOG_CHANNEL=fileLOG_LEVEL=debug