- 📚Go设计模式实战系列 https://tigerb.cn/go/#/patterns/
- 📚Go语言轻松进阶系列 https://tigerb.cn/go/#/kernal/
- 📚电商系统系列 https://skrshop.tech/
- 📚PHP到Go速转手册 https://tigerb.cn/php2go/
✨ My blog: https://tigerb.cn/ ✨
A Faster Lightweight Full-Stack PHP Framework :rocket:
Home Page: https://easy-php.tigerb.cn
License: Apache License 2.0
✨ My blog: https://tigerb.cn/ ✨
$app = $entrance->app;
$request = $app::$container->getSingle('request');
$moduleName = $request->request('module');
$controllerName = $request->request('controller');
$actionName = $request->request('action');
if (! empty($moduleName)) {
$entrance->moduleName = $moduleName;
}
if (! empty($controllerName)) {
$entrance->controllerName = $controllerName;
}
if (! empty($actionName)) {
$entrance->actionName = $actionName;
}
// CLI 模式不输出
if (empty($actionName) && $entrance->app->isCli === 'yes') {
$entrance->app->notOutput = true;
}
估计匹配是按模块->控制器->方法这样来的,这样是不是实现就过于简单了,正则匹配还是要用起来的。
因为我就想要
某个路径->某个回调
使用的是apache24,请问重定向的规则是?
不太会用这个啊。。。
以命令行方式运行时,$_REQUEST将不包含 argv 和 argc 信息;它们将存在于 $_SERVER 数组。
Please delete release
and var.ci
branches or fix their composer.json, as right now the package is prevented from updating on packagist.org due to these errors:
Importing branch release (dev-release)
Skipped branch release, Invalid package information:
type : invalid value (framework, easy-php, php framework), must match [A-Za-z0-9-]+
Importing branch var.ci (dev-var.ci)
Skipped branch var.ci, Invalid package information:
type : invalid value (framework, easy-php, php framework), must match [A-Za-z0-9-]+
在 SHA-1: a3c7685 这个版本之前 loadEnv 方法是在 ConfigHandle类中,在这次的commit中转移到了 Request类中是基于什么样的考虑呢?
请问一下 commit-msg 是如何使用的呢?不太懂hook
easyphp是一个很棒的现代化框架. 看了下. 架构从出来到现在. 基本上2年没有怎么更新了. 都是维护状态.
最近想找一个不错的框架,开发也有很多年了. 用过很多框架.也构架过一些框架. 看了你的所有blog,最近的几年在小米成长非常快,已经在深入研究后端相关产业链了. nginx,mysql,redis,http,socket的各种机制了. 对你的框架蛮有期待的. 非常了了解下,后期easyphp的计划?
目前市面的主流框架(laravel,yii, Symfony)都非常强大,强大到臃肿,各种优雅和语法糖,已经慢到无法直视了. 项目中完全完全不敢用. 好的是产业链强大,有需要的都找的到,但是各种依赖除了问题不可能控制.
yaf,cphalcon, Swoole都是c扩展框架,性能没得说. 但是不方便扩展,可控性稍弱.
ci倒是简单,完全可控,性能也行,就是太老. 不符合现代框架了.
thinkphp国内发展不错,产业链也不错. 但没什么感觉.
腾讯的biny,其实感觉不错. 没人维护.
cmlphp好像偏向游戏方向, 之前我们也做游戏. 也是自己的框架,php短连接业务+golang长连接推送系统.
easyphp总体感觉还不错. 除了性能不错. 简单高效,完全可控,到业务实际开发中,比如mcl,比如考虑到前后端分离**, 但既然分离. 可以把前后端分开到两个项目里面维护. 就框架而已. 全栈思维能力很不错. 但是项目分开. 更便于团队化维护.
所以特别期待后面easyphp的发展. 期望能够持续交流
项目类的自动加载,(framework/Load.php)这块有两个static 变量$map, $namespaceMap 感觉都没有用到,不知道添加的原因是什么(ps:issure 里面能提这样的问题嘛)
感觉Service Container这一点也是。
Performance的话,我感觉可以和别的框架对比一下,譬如tp和laravel
class App
{
private $rootPath;
}
class Load
{
public static function register(App $app)
{
self::$namespaceMap = [
'Framework' => $app->rootPath
];
}
}
这里的app->rootPath 是私有的,应该只有App类内部可以使用
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.