Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
84a6164
BASE
KMilej Dec 22, 2025
97b8e93
added short version
KMilej Jan 5, 2026
3707dbd
base laravel structure
KMilej Jan 8, 2026
c6a4d41
base laravel structure
KMilej Jan 9, 2026
5c48f47
base laravel structure
KMilej Jan 9, 2026
6731b7b
base laravel structure
KMilej Jan 9, 2026
8df4e1f
base laravel structure
KMilej Jan 9, 2026
42584bd
base laravel structure
KMilej Jan 9, 2026
919ef9a
base laravel structure
KMilej Jan 9, 2026
e977f92
config fixed
KMilej Jan 12, 2026
f9ca7f7
vendor & storage added
KMilej Jan 12, 2026
3df195b
enable/disable fixed
KMilej Jan 12, 2026
f006d09
enable/disable fixed
KMilej Jan 12, 2026
2824087
README update
KMilej Jan 15, 2026
0eed9c9
docker update
KMilej Jan 16, 2026
b20eed6
rename run_server.sh to run-server.sh
KMilej Jan 29, 2026
378cec1
log and readme update
KMilej Feb 2, 2026
70aac05
log and readme update
KMilej Feb 2, 2026
5f2c6e2
in .env.example added approov_base64url_secret_here
KMilej Feb 3, 2026
b71d3a0
SessionId and value changed
KMilej Feb 3, 2026
bfa32a9
binding logic changed & readme update
KMilej Feb 3, 2026
3861558
docker image changes
KMilej Feb 3, 2026
7a8d449
readme update
KMilej Feb 3, 2026
c8b3764
dockerfile apt install
KMilej Feb 3, 2026
3783a0a
add LICENSE and dockerignore
KMilej Feb 12, 2026
6f51ddc
Add ApproovErrorCode enum and ApproovAuthException
KMilej Feb 12, 2026
63ec28d
Add ApproovErrorCode enum and ApproovAuthException
KMilej Feb 12, 2026
f70da7f
Add ApproovErrorCode enum and ApproovAuthException
KMilej Feb 12, 2026
fd9b720
README update
KMilej Feb 12, 2026
0d6357c
README update
KMilej Feb 12, 2026
32f7e82
fix secret checks and error mapping
KMilej Feb 23, 2026
749a5fd
readme fix
KMilej Feb 23, 2026
be42bed
add APP_DEBUG=false
KMilej Feb 23, 2026
388be41
docs: reorganize README structure
KMilej Mar 31, 2026
b4ffa0d
refactor: structure test
KMilej Mar 31, 2026
5645850
docs: add PHPDoc to all user-defined functions
KMilej Mar 31, 2026
98a9ad2
docs: fix Approov component description
KMilej Mar 31, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
32 changes: 32 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Keep Docker build context lean and avoid leaking local-only files.
.git
.gitignore
.gitattributes
.idea/
.vscode/
.config/
.DS_Store

# Do not bake local environment files into the image.
.env
.env.*
!.env.example

# Reinstall dependencies in the image.
node_modules/
vendor/

# Runtime/generated Laravel files.
public/hot
public/storage
storage/*.key
storage/logs/
storage/framework/cache/
storage/framework/sessions/
storage/framework/testing/
storage/framework/views/

# Local caches/logs
.phpunit.result.cache
npm-debug.log
yarn-error.log
17 changes: 17 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
LOG_CHANNEL=stderr
LOG_LEVEL=debug
APP_ENV=production
APP_DEBUG=false

# HTTP port the backend listens on
HTTP_PORT=8080

# Approov secret: approov secret -get base64url
APPROOV_BASE64URL_SECRET=approov_base64url_secret_here

# Localhost
SERVER_HOSTNAME=0.0.0.0

# Command that starts your server inside the container (e.g., npm run dev, gunicorn app:app, go run main.go).
APP_START_CMD="php artisan serve --host=${SERVER_HOSTNAME} --port=${HTTP_PORT}"

19 changes: 19 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,20 @@
/node_modules
/public/hot
/public/storage
/storage/*.key
.env
.env.backup
.phpunit.result.cache
Homestead.json
Homestead.yaml
npm-debug.log
yarn-error.log
/.idea
/.vscode
.config/
.DS_Store
/storage/logs/*.log
vendor/
storage/framework/cache/data/
/bootstrap/cache/*.php
!/bootstrap/cache/.gitignore
64 changes: 16 additions & 48 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,54 +1,22 @@
ARG TAG=8.1.4-cli
FROM php:8.5.2-cli

FROM php:${TAG}
COPY --from=composer:2.9 /usr/bin/composer /usr/bin/composer

ARG CONTAINER_USER="developer"
ARG LANGUAGE_CODE="en"
ARG COUNTRY_CODE="GB"
ARG ENCODING="UTF-8"
WORKDIR /app

ARG LOCALE_STRING="${LANGUAGE_CODE}_${COUNTRY_CODE}"
ARG LOCALIZATION="${LOCALE_STRING}.${ENCODING}"
RUN apt-get update \
&& apt-get install -y --no-install-recommends git unzip libzip-dev \
&& docker-php-ext-install zip \
&& rm -rf /var/lib/apt/lists/*

ARG OH_MY_ZSH_THEME="bira"
COPY . .

RUN apt update && apt -y upgrade && \
apt -y install \
locales \
git \
curl \
inotify-tools \
zip \
unzip \
zsh && \
RUN mkdir -p bootstrap/cache \
storage/framework/cache \
storage/framework/sessions \
storage/framework/testing \
storage/framework/views \
storage/logs \
&& composer install --no-dev --optimize-autoloader --no-interaction --prefer-dist

echo "${LOCALIZATION} ${ENCODING}" > /etc/locale.gen && \
locale-gen "${LOCALIZATION}" && \

useradd -m -u 1000 -s /usr/bin/zsh "${CONTAINER_USER}" && \

bash -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" && \

cp -v /root/.zshrc /home/"${CONTAINER_USER}"/.zshrc && \
cp -rv /root/.oh-my-zsh /home/"${CONTAINER_USER}"/.oh-my-zsh && \
sed -i "s/\/root/\/home\/${CONTAINER_USER}/g" /home/"${CONTAINER_USER}"/.zshrc && \
sed -i s/ZSH_THEME=\"robbyrussell\"/ZSH_THEME=\"${OH_MY_ZSH_THEME}\"/g /home/${CONTAINER_USER}/.zshrc && \
mkdir /home/"${CONTAINER_USER}"/workspace && \
chown -R "${CONTAINER_USER}":"${CONTAINER_USER}" /home/"${CONTAINER_USER}"

USER ${CONTAINER_USER}

ENV USER ${CONTAINER_USER}
ENV LANG "${LOCALIZATION}"
ENV LANGUAGE "${LOCALE_STRING}:${LANGUAGE_CODE}"
ENV PATH=/home/${CONTAINER_USER}/.local/bin:${PATH}
ENV LC_ALL "${LOCALIZATION}"

WORKDIR /home/${CONTAINER_USER}/workspace

RUN mkdir -p /home/${CONTAINER_USER}/.local/bin && \
curl https://raw.githubusercontent.com/composer/getcomposer.org/76a7060ccb93902cd7576b67264ad91c8a2700e2/web/installer | php -- --quiet && \
mv composer.phar /home/${CONTAINER_USER}/.local/bin/composer && \
composer about

CMD ["zsh"]
CMD ["bash", "scripts/build.sh"]
113 changes: 0 additions & 113 deletions EXAMPLES.md

This file was deleted.

21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2026 Approov Limited

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
55 changes: 0 additions & 55 deletions OVERVIEW.md

This file was deleted.

33 changes: 0 additions & 33 deletions QUICKSTARTS.md

This file was deleted.

Loading