nano
nano copied to clipboard
🧬 Nano is a zero-config, no skeleton, minimal Hyperf distribution that allows you to quickly build a Hyperf application with just a single PHP file.
热更新不可用
热更新不可用 php index.php server:watch Generating optimized autoload files Generated optimized autoload files containing 1087 classes Start server ... PHP Warning: require_once(bin/hyperf.php): Failed to open stream: No such file or directory...
热更新是必须用hyperf框架才能用吗,单独安装nano用文档中热更新示例代码直接报错找不到/bin/hyperf.php
```php use Hyperf\Nano\Factory\AppFactory; require_once __DIR__ . '/vendor/autoload.php'; $app = AppFactory::createSwow(); $app->config([ 'processes'=> [ Hyperf\Crontab\Process\CrontabDispatcherProcess::class,], 'crontab' => [ 'enable' => true, ], ]); $app->addCrontab('* * * * * *', function(){ echo...
感觉nano更适合开发微服务
` php index.php start PHP Warning: Class "Hyperf\Coroutine\Exception\ChannelClosedException" not found in /code/aa/vendor/hyperf/utils/src/Exception/ChannelClosedException.php on line 14 Warning: Class "Hyperf\Coroutine\Exception\ChannelClosedException" not found in /code/aa/vendor/hyperf/utils/src/Exception/ChannelClosedException.php on line 14 PHP Fatal error: Uncaught Error:...
Hi, Is it possible to enable SSL on the example app? Thanks
什么时候能支持php8.0以上
## 环境 - PHP ```bash $ php -v PHP 8.1.4 (cli) (built: Mar 18 2022 09:46:02) (NTS) Copyright (c) The PHP Group Zend Engine v4.1.4, Copyright (c) Zend Technologies with...
How can I use Query Worker in Nano?
I have tested the index.php script available into nano examples but at any request i receive an unhandled exception [INFO] App started [INFO] Worker#0 started. [INFO] HTTP Server listening at...