2017 © Pedro Peláez
 

library swoole_framework_libs

Encapsulating swoole's framework libs.

image

yaozhibo/swoole_framework_libs

Encapsulating swoole's framework libs.

  • Tuesday, May 15, 2018
  • by yaozhibo
  • Repository
  • 1 Watchers
  • 1 Stars
  • 14 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

swoole_framework_libs

This is a vendor base on swoole, to speed up laravel/lumen., (*1)

install

composer require yaozhibo/swoole_framework_libs

register

  • modify config/app.php
'providers' =>
[
.
.
.
\YSwoole\YSwooleHttpProvider::class,
\YSwoole\Providers\LaraServiceProvider::class
//if your app was biult in Lumen, \YSwoole\Providers\LumenServiceProvider::class instead.
.
.
.
]

publish

php artisan vendor:publish --provider="YSwoole\YSwooleHttpProvider"

config

  • modify http server ip and port in .env
SWOOLE_HTTP_HOST=ip       #default:0.0.0.0
SWOOLE_HTTP_PORT=port     #default:8333
SWOOLE_HTTP_DAEMONZE=true #default:false

db.connection

  • modify db connection in .env to enable mysql coroutine
DB_CONNECTION=swoole_mysql_coroutine

controller

if your php version is lower than 7.1, you need to use, (*2)

php artisan make:yscontroller

to generate controller, or you could not use controller to finish mysql operation., (*3)

The Versions

15/05 2018

dev-master

9999999-dev

Encapsulating swoole's framework libs.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Avatar yaozhibo

15/05 2018

1.0.0

1.0.0.0

Encapsulating swoole's framework libs.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Avatar yaozhibo