File tree 7 files changed +12
-15
lines changed
7 files changed +12
-15
lines changed Original file line number Diff line number Diff line change
1
+ runtime
Original file line number Diff line number Diff line change 6
6
7
7
[ ![ Latest Stable Version] ( http://img.shields.io/packagist/v/swoft/swoft.svg )] ( https://packagist.org/packages/swoft/swoft )
8
8
[ ![ Build Status] ( https://travis-ci.org/swoft-cloud/swoft.svg?branch=master )] ( https://travis-ci.org/swoft-cloud/swoft )
9
- [ ![ Docker Build Status] ( https://img.shields.io/docker/build/swoft/alphp .svg )] ( https://hub.docker.com/r/swoft/alphp / )
9
+ [ ![ Docker Build Status] ( https://img.shields.io/docker/build/swoft/swoft .svg )] ( https://hub.docker.com/r/swoft/swoft / )
10
10
[ ![ Php Version] ( https://img.shields.io/badge/php-%3E=7.1-brightgreen.svg?maxAge=2592000 )] ( https://secure.php.net/ )
11
11
[ ![ Swoole Version] ( https://img.shields.io/badge/swoole-%3E=4.3.3-brightgreen.svg?maxAge=2592000 )] ( https://github.com/swoole/swoole-src )
12
12
[ ![ Swoft Doc] ( https://img.shields.io/badge/docs-passing-green.svg?maxAge=2592000 )] ( https://www.swoft.org/docs )
13
13
[ ![ Swoft License] ( https://img.shields.io/hexpm/l/plug.svg?maxAge=2592000 )] ( https://github.com/swoft-cloud/swoft/blob/master/LICENSE )
14
14
[ ![ Gitter] ( https://img.shields.io/gitter/room/swoft-cloud/swoft.svg )] ( https://gitter.im/swoft-cloud/community )
15
15
16
- ![ ] ( public/image/start-http-server.jpg )
16
+ ![ start-http-server ] ( https://raw.githubusercontent.com/swoft-cloud/swoft/master/ public/image/start-http-server.jpg)
17
17
18
18
PHP microservices coroutine framework
19
19
Original file line number Diff line number Diff line change 6
6
7
7
[ ![ Latest Stable Version] ( http://img.shields.io/packagist/v/swoft/swoft.svg )] ( https://packagist.org/packages/swoft/swoft )
8
8
[ ![ Build Status] ( https://travis-ci.org/swoft-cloud/swoft.svg?branch=master )] ( https://travis-ci.org/swoft-cloud/swoft )
9
- [ ![ Docker Build Status] ( https://img.shields.io/docker/build/swoft/alphp .svg )] ( https://hub.docker.com/r/swoft/alphp / )
9
+ [ ![ Docker Build Status] ( https://img.shields.io/docker/build/swoft/swoft .svg )] ( https://hub.docker.com/r/swoft/swoft / )
10
10
[ ![ Php Version] ( https://img.shields.io/badge/php-%3E=7.1-brightgreen.svg?maxAge=2592000 )] ( https://secure.php.net/ )
11
11
[ ![ Swoole Version] ( https://img.shields.io/badge/swoole-%3E=4.3.3-brightgreen.svg?maxAge=2592000 )] ( https://github.com/swoole/swoole-src )
12
12
[ ![ Swoft Doc] ( https://img.shields.io/badge/docs-passing-green.svg?maxAge=2592000 )] ( https://www.swoft.org/docs )
13
13
[ ![ Swoft License] ( https://img.shields.io/hexpm/l/plug.svg?maxAge=2592000 )] ( https://github.com/swoft-cloud/swoft/blob/master/LICENSE )
14
+ [ ![ Gitter] ( https://img.shields.io/gitter/room/swoft-cloud/swoft.svg )] ( https://gitter.im/swoft-cloud/community )
14
15
15
- ![ ] ( public/image/start-http-server.jpg )
16
+ ![ start-http-server ] ( https://raw.githubusercontent.com/swoft-cloud/swoft/master/ public/image/start-http-server.jpg)
16
17
17
18
PHP 高性能微服务协程框架
18
19
Original file line number Diff line number Diff line change 1
1
<?php declare (strict_types=1 );
2
2
3
-
4
3
namespace App ;
5
4
6
-
7
5
use Swoft \SwoftApplication ;
8
6
9
7
/**
Original file line number Diff line number Diff line change 4
4
// Bootstrap
5
5
require_once __DIR__ . '/bootstrap.php ' ;
6
6
7
- \Swoole \Runtime::enableCoroutine ();
8
-
9
7
Swoole \Coroutine::set ([
10
8
'max_coroutine ' => 300000 ,
11
9
]);
12
10
13
11
// Run application
14
- (new \App \Application ())->run ();
12
+ (new \App \Application ())->run ();
Original file line number Diff line number Diff line change 24
24
"swoft/rpc-client" : " ~2.0.0" ,
25
25
"swoft/rpc-server" : " ~2.0.0" ,
26
26
"swoft/websocket-server" : " ~2.0.0" ,
27
- "swoft/tcp" : " ~2.0.0" ,
28
27
"swoft/tcp-server" : " ~2.0.0" ,
29
28
"swoft/apollo" : " ~2.0.0" ,
30
29
"swoft/consul" : " ~2.0.0" ,
31
30
"swoft/limiter" : " ~2.0.0" ,
32
- "swoft/breaker" : " ~2.0.0"
31
+ "swoft/breaker" : " ~2.0.0" ,
32
+ "swoft/devtool" : " ~2.0.0"
33
33
},
34
34
"require-dev" : {
35
35
"swoft/swoole-ide-helper" : " dev-master" ,
36
- "phpunit/phpunit" : " ^7.5" ,
37
- "swoft/devtool" : " ~2.0.0"
36
+ "phpunit/phpunit" : " ^7.5"
38
37
},
39
38
"autoload" : {
40
39
"psr-4" : {
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ services:
15
15
- " 18307:18307"
16
16
- " 18308:18308"
17
17
volumes :
18
- - ./:/var/www
18
+ - ./:/var/www/swoft
19
19
# - ./tmp/ng-conf:/etc/nginx
20
20
# - ./tmp/logs:/var/log
21
21
@@ -27,7 +27,7 @@ services:
27
27
ports :
28
28
- " 13306:3306"
29
29
volumes :
30
- - ./tmp /data/mysql:/var/lib/mysql
30
+ - ./runtime /data/mysql:/var/lib/mysql
31
31
restart : always
32
32
33
33
redis :
You can’t perform that action at this time.
0 commit comments