33

GitHub - letwang/HookPHP: 此框架旨在降低企业在启动新项目时的时间成本,加速研发者...

 5 years ago
source link: https://github.com/letwang/HookPHP
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

简介

创作此框架的作者是LetWang,2007年ASP,2008年ASP.NET(C#),从2009年一直PHP。

虽然中间几次创业,看过太多的源码,也曾服务于海外多家机构,但越是这样越发现自己的渺小:一个人无法改变太多,需要带动整个群体一起进步!。于是内心酝酿近10年的PHP框架诞生了!

此框架旨在降低企业在启动新项目时的时间成本,加速研发者的研发节奏,打破从0到1的惯例,直接从0.1开始!

理念

配置即产出。

特点

1.基于 PHP C 扩展:YAF

2.能用 C 扩展解决的,坚决不用Composer

3.追求极客,使用行业技术栈最新特性

3.一款自带DB的框架,业务SQL集中化管理

4.集成行业通用功能:用户管理资源管理角色管理权限管理配置管理翻译管理SEO管理多菜单管理多语言管理多模块管理多模板管理多终端管理多平台管理...

5.支持行业主流特性:读写分离负载均衡...

依赖

配置

php.ini

[Session]
session.save_handler = redis
session.save_path = "tcp://127.0.0.1:6379?weight=1&auth=123456&database=0, tcp://127.0.0.1:6379?weight=2&auth=123456&database=0"

[yaf]
yaf.use_namespace = 1
yaf.use_spl_autoload = 1

Nginx规则

server {
	listen 80;
	root /home/test/workspace/HookPHP/public/;
	index index.html index.htm index.php;
	autoindex on;autoindex_exact_size off;autoindex_localtime on;
	error_log /var/log/nginx/www.svn.com-error.log error;access_log /var/log/nginx/www.svn.com-access.log combined;
	server_name www.svn.com;

	if (!-e $request_filename) {rewrite ^/(.*)  /index.php?$1 last;}

	location ~ \.php$ {
	       fastcgi_pass   127.0.0.1:9000;
	       fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
	       include        fastcgi_params;
	 }
}

账户

[email protected]
12345678

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK