First commit

This commit is contained in:
Brabli
2022-07-23 17:27:04 +01:00
commit 0acd25a0a4
9 changed files with 50 additions and 0 deletions

14
.editorconfig Normal file
View File

@@ -0,0 +1,14 @@
# This is the top-most .editorconfig file; do not search in parent directories.
root = true
# All files.
[*]
end_of_line = LF
indent_style = space
indent_size = 4
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[Makefile]
indent_style = tab

6
.gitignore vendored Normal file
View File

@@ -0,0 +1,6 @@
.DS_Store
.vscode
/vendor
composer.lock
.phpunit.result.cache
/var

7
Containerfile Normal file
View File

@@ -0,0 +1,7 @@
FROM php:8.1-alpine
WORKDIR /code
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
COPY ./ /code
RUN composer install

0
LICENSE Normal file
View File

16
Makefile Normal file
View File

@@ -0,0 +1,16 @@
PHP = docker compose run php
.PHONY: composer_install composer_update static_analysis tests
composer_install:
@$(PHP) composer install
composer_update:
@$(PHP) composer update
static_analysis:
@$(PHP) vendor/bin/psalm
tests:
@$(PHP) rm -rf var/cache
@$(PHP) vendor/bin/phpunit

0
README.md Normal file
View File

7
compose.yml Normal file
View File

@@ -0,0 +1,7 @@
services:
php:
build:
context: .
dockerfile: Containerfile
volumes:
- ./:/code

0
config/services.yml Normal file
View File

View File