DumboPHP
Database handlres fixes

PHP 프레임 워크 프로젝트 MVC 아키텍처, OOP 패러다임 및 전체 ORM (벤더가 아님)으로 구축되었습니다.
cd /path/to/DumboPHP/
sudo ./install.php
composer require rantes/dumbophp
PHP : 짧은 오픈 태그를 활성화합니다.
아파치 : mod_rewrite를 활성화하십시오.
가상 호스트로 로컬 도메인을 설정하는 것을 고려하십시오).
#!apache
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName myproject.local
ServerAlias myproject.local
DocumentRoot /path/to/myproject
<Directory /path/to/myproject/>
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
</Directory>
</VirtualHost>
#!nginx
server {
root /path/to/myproject/app/webroot;
index index.php;
server_name myproject.local;
set $token "";
if ($is_args) { # if the request has args update token to "&"
set $token "&";
}
location / {
set $args "${args}${token}url=${uri}";
rewrite ^/(.*.(png|gif|jpg|jpeg|js|pdf|css|ico|svg|json|webp|woff|ttf))$ /$1 break;
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ .php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
}
location ~ /.ht {
deny all;
}
}
자세한 내용은 홈페이지 Dumbophp를 방문하십시오.