Changed namespaces and added Query Builder

Co-authored-by: Juan Pablo Vial <jpvial@goacegroup.com>
Reviewed-on: #2
This commit is contained in:
2025-09-30 17:34:06 -03:00
parent 1bd3ccb8db
commit f6937c3aee
29 changed files with 555 additions and 178 deletions

22
Dockerfile Normal file
View File

@ -0,0 +1,22 @@
FROM composer:lts as deps
WORKDIR /app
RUN --mount=type=bind,source=./composer.json,target=composer.json \
--mount=type=bind,source=./composer.lock,target=composer.lock \
--mount=type=cache,target=/tmp/cache \
composer install --no-interaction
FROM php:8-cli as base
WORKDIR /app
RUN apt-get update && \
apt-get install -yq --no-install-recommends libsqlite3-dev && \
rm -rf /var/lib/apt/lists/* && \
docker-php-ext-install pdo pdo_sqlite
COPY ./src /app/src
FROM base as dev
COPY ./tests /app/tests
RUN mv "$PHP_INI_DIR/php.ini-development" "$PHP_INI_DIR/php.ini"
COPY --from=deps /app/vendor/ /app/vendor
FROM dev as test
ENTRYPOINT [ "./vendor/bin/phpunit" ]