Contributions Welcome! You can contribute in the following ways:
- Open an issue to suggest a new feature
- Open an issue to report a bug
- Fork and create a PRs
Make sure your code changes pass the following:
- All tests pass:
vendor/bin/phpunit
- PHPStan analysis pass:
vendor/bin/phpstan analyse
- Codestyle pass:
vendor/bin/ecs check --fix --clear-cache
You can use docker to quick start with the development.
- Clone the repository
- Copy
.env.dev
as.env
, or setup your own env file - Run
docker compose up -d
- Then run the following commands:
$ docker compose exec app composer install
$ docker compose exec app php artisan key:generate
$ docker compose exec app php artisan storage:link
$ docker compose exec app php artisan migrate
- (Optional) Add bar data
$ git clone https://github.com/bar-assistant/data.git resources/data
Example Xdebug vscode launch config:
{
"name": "Listen for Xdebug",
"type": "php",
"request": "launch",
"port": 9003,
"hostname": "localhost",
"pathMappings": {
"/var/www/cocktails/": "${workspaceFolder}"
}
}