yng/yng

A simple php framework

Maintainers

Details

github.com/yng666/yng

Source

Issues

Installs: 41

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:project

dev-main 2023-09-24 14:37 UTC

This package is auto-updated.

Last update: 2024-05-15 07:37:29 UTC


README

特性

  • 基于PHP8.0+开发
  • 升级PSR依赖

YNGPHP的运行环境要求PHP8.0.0+ php扩展:

php_mbstring

配置伪静态

# apache
<IfModule mod_rewrite.c>
	Options +FollowSymlinks -Multiviews
	RewriteEngine On
	RewriteCond %{REQUEST_FILENAME} !-d
	RewriteCond %{REQUEST_FILENAME} !-f
	RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
</IfModule>

# nginx
location / {
    if (!-e $request_filename) {
        rewrite ^(.*)$ /index.php?s=$1 last;
        break;
    }
}

安装教程

composer create-project yng/yng projectname


# 安装dev版本
composer create-project --stability=dev yng/yng projectname

参与开发

直接提交PR或者Issue即可