php中easydb查询,一个用于教育目的简单PHP框架

easy

Another Simple PHP Framework For Education Purpose!

requirement

Web Server Apache / Nginx

PHP 7

PDO (MySQL, PostgreSQL, etc)

installation

Restore easydb.sql to Your database.

configuration

database connection

Edit it in app/config.php file.

apache web server

Place .htaccess file in to public directory

RewriteEngine on

# If a directory or a file exists, use the request directly

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

# Otherwise forward the request to index.php

RewriteRule . index.php

nginx web server

nginx configuration

server_name easy.local;

root /var/www/easy/public;

index index.php index.html index.htm;

location / {

try_files $uri $uri/ /index.php$is_args$args;

}

directory structure

app

controllers

Site.php -> site controller

Article.php -> article controller

views

default

login.php -> default view login

layout

main.php -> layout file

site

index.php -> view file

article

index.php -> view file

view.php -> view file

config.php -> configuration file

core

Application.php -> class main application

Authentication.php -> class auth middleware

Controller.php -> base controller

Database.php -> class database connection

error.php -> error page

Helper.php -> class helpers

User.php -> model user

Middleware.php -> abstract class middleware

public

assets -> assets folder

js

css

index.php -> mount point application

test -> folder automatic test with codeception

codeception.yml -> composer file, optional for testing

composer.json -> composer file, optional for testing

easydb.sql -> sample dump database

LICENSE

preview.png -> screenshoot application

README.md -> readme file

another

username : admin password : 123456

screenshoot

f7983f65369074a3d1cc10a89e7e69cb.png

Build with love by Hafid Mukhlasin

He is author of Be Fullstack Developer book (Best Seller!)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值