Home > PHP Framework > Laravel > Coroutine database query using Swoole in Laravel 5.6

Coroutine database query using Swoole in Laravel 5.6

藏色散人
Release: 2019-10-24 14:11:09
forward
3339 people have browsed it

Coroutine database query using Swoole in Laravel 5.6

##Installation

First, make sure you are using laravel 5.6

Then, you You need to rely on the kuaiapp/db package, which is used to implement the pseudo-PDO interface of Swoole\Coroutine\MySQL

composer require kuaiapp/db:v0.1 -vvv
Copy after login

Modify laravel/framework:"v5.6" to laravelfy/framework:v5.6.x-dev

composer require laravelfy/framework:v5.6.x-dev -vvv
Copy after login

Start in your laravel-swoole command and test the interface with database query.

such as laravel-s

php laravels start
Copy after login

At this point, the MYSQL coroutine transformation of your laravel project has been successful.

Reference

kuaiapp/db(https://github.com/Kuaiapp/swoole-pdo-wrapper)

laravelfy/framework(https ://github.com/laravelfy/framework)

For more Laravel related technical articles, please visit the L

aravel Framework Getting Started Tutorial column to learn!

The above is the detailed content of Coroutine database query using Swoole in Laravel 5.6. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
Composer cannot install laravel
From 1970-01-01 08:00:00
0
0
0
Laravel Space/laravel-backup cannot be installed
From 1970-01-01 08:00:00
0
0
0
Laravel 5.1 Login laravel comes with it No more
From 1970-01-01 08:00:00
0
0
0
Why thinkphp has better performance than laravel?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template