webman
webman copied to clipboard
Probably the fastest PHP web framework in the world.
/** * Locale * @param string|null $locale * @return void */ function locale(string $locale = null) { if (!$locale) { return Translation::getLocale(); } Translation::setLocale($locale); }
引用第三方类库,是否需要改写为单例模式,因为是常驻内存的PHP,那每次 new 了之后也是开辟了相应的资源的,就不知道 new 多了会不会有问题。
以下内容是我的翻译文件 message.php 文件 下面是我的 controller : 下面是我通过 SQL 查询出来的接口 json 数据: 想把红框部分的内容,翻译成 "skis": "[\\"单板\\", \\"双板\\"]", 查看了文档也没思考出这种情况下该如何使用,希望能给与指点。
composer update 会将自己在 helpers.php 里写的函数覆盖没....
I create API applications for alarm notification Who to add sleep() function without sleep the webman process ?
worker[webman:26300] exit with status 2 worker[webman:26303] exit with status 10
$request->url()和$request->fullUrl()均无法获取完整协议头的URL,建议新增方法完善,示例: ` /** * @return string */ public function protocol() { return $this->scheme() . '://'; } /** * @return string */ public function scheme() { return strtolower($this->header('x-forwarded-proto', 'http')); } `
upload files emptily,the framework do not encapsulate exceptions locate :webman-framework/src/http/Request.php function:parseFile
I have category in news site for example ``` http://news.example.com http://category.example.com ``` how to create news app and other category app ?
建议出1个 生成二维码的插件