安装

环境要求

  • php >= 7.0
  • CURL PHP Extension
  • PDO/MYSQLI PHP Extension

下载安装

直接下载源代码解压安装。

wget https://github.com/qiu-jin/phpegg/archive/master.zip

使用composer安装。

composer create-project --prefer-dist qiu-jin/phpegg
git clone https://github.com/qiu-jin/phpegg.git

服务器配置

<Directory "/your_app_path/public">
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</Directory>
server {
listen 80;
root /your_app_path/public;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
include /etc/nginx/fastcgi.conf;
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
}
}