Conversie codeigniter 4

This commit is contained in:
2026-01-09 11:41:28 +01:00
parent dbd8c8aed2
commit f0b9c6ad40
242 changed files with 20034 additions and 346 deletions
+55
View File
@@ -0,0 +1,55 @@
ARG PHP_VERSION=8.2
FROM php:${PHP_VERSION}-fpm
# Install dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
libpng-dev \
libjpeg62-turbo-dev \
libfreetype6-dev \
libzip-dev \
libonig-dev \
libicu-dev \
locales \
zip \
unzip \
git \
curl \
vim \
&& rm -rf /var/lib/apt/lists/*
# Install PHP extensions
RUN docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install -j$(nproc) \
pdo_mysql \
mysqli \
mbstring \
zip \
exif \
pcntl \
gd \
intl \
opcache
# Install Xdebug
RUN pecl install xdebug && docker-php-ext-enable xdebug
# Install Composer
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
# Xdebug configuration
COPY docker/xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini
# PHP configuration
COPY docker/php.ini /usr/local/etc/php/conf.d/custom.ini
# Add user for application
RUN groupadd -g 1000 www && useradd -u 1000 -ms /bin/bash -g www www
# Set ownership
COPY --chown=www:www . /var/www/html
USER www
EXPOSE 9000
CMD ["php-fpm"]
+41
View File
@@ -0,0 +1,41 @@
server {
listen 80;
server_name _;
# Document root - pas aan indien nodig (bijv. /var/www/html/public voor Laravel-style)
root /var/www/html/public;
index index.php index.html;
# Logging
error_log /var/log/nginx/error.log;
access_log /var/log/nginx/access.log;
# Max upload size
client_max_body_size 64M;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass app:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_buffering off;
}
# Deny .ht files
location ~ /\.ht {
deny all;
}
# Cache static files
location ~* \.(jpg|jpeg|png|gif|ico|css|js|woff|woff2)$ {
expires 1y;
add_header Cache-Control "public, immutable";
}
}
+8
View File
@@ -0,0 +1,8 @@
[PHP]
memory_limit = 256M
upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 300
error_reporting = E_ALL
display_errors = On
display_startup_errors = On
+8
View File
@@ -0,0 +1,8 @@
[xdebug]
xdebug.mode=debug
xdebug.client_host=host.docker.internal
xdebug.client_port=9003
xdebug.start_with_request=yes
xdebug.discover_client_host=false
xdebug.idekey=PHPSTORM
xdebug.log_level=0