Commit 4e1bb738 authored by Mattia Bernasconi's avatar Mattia Bernasconi

Aggiornato composer e README

parent 83cbe49a
......@@ -6,58 +6,55 @@ Event-driven PHP engine for running PHP Applications with [Swoole extension](htt
## Installation
<details>
<summary>Before using this library, you'll need Swoole extension</summary>
Installing using PECL:
```bash
pecl install swoole
```
Add `extension=swoole` (or `extension=swoole.so` for PHP < 7.2) to your `php.ini`
file for PHP CLI sapi:
```bash
echo "extension=swoole" | sudo tee --append `php -r 'echo php_ini_loaded_file();'`
```
Check if Swoole extension is loaded
```bash
php --ri swoole
```
You should see something like
```bash
swoole
swoole support => enabled
Version => 2.0.10
Author => tianfeng.han[email: mikan.tenny@gmail.com]
epoll => enabled
eventfd => enabled
timerfd => enabled
signalfd => enabled
cpu affinity => enabled
spinlock => enabled
rwlock => enabled
async http/websocket client => enabled
Linux Native AIO => enabled
pcre => enabled
mutex_timedlock => enabled
pthread_barrier => enabled
futex => enabled
Directive => Local Value => Master Value
swoole.aio_thread_num => 2 => 2
swoole.display_errors => On => On
swoole.use_namespace => On => On
swoole.fast_serialize => Off => Off
swoole.unixsock_buffer_size => 8388608 => 8388608
```
</details>
Before using this library, you'll need Swoole extension
Installing using PECL:
```bash
pecl install swoole
```
Add `extension=swoole` (or `extension=swoole.so` for PHP < 7.2) to your `php.ini`
file for PHP CLI sapi:
```bash
echo "extension=swoole" | sudo tee --append `php -r 'echo php_ini_loaded_file();'`
```
Check if Swoole extension is loaded
```bash
php --ri swoole
```
You should see something like
```bash
swoole
swoole support => enabled
Version => 2.0.10
Author => tianfeng.han[email: mikan.tenny@gmail.com]
epoll => enabled
eventfd => enabled
timerfd => enabled
signalfd => enabled
cpu affinity => enabled
spinlock => enabled
rwlock => enabled
async http/websocket client => enabled
Linux Native AIO => enabled
pcre => enabled
mutex_timedlock => enabled
pthread_barrier => enabled
futex => enabled
Directive => Local Value => Master Value
swoole.aio_thread_num => 2 => 2
swoole.display_errors => On => On
swoole.use_namespace => On => On
swoole.fast_serialize => Off => Off
swoole.unixsock_buffer_size => 8388608 => 8388608
```
Then proceed and install Swoole Engine library in your project with Composer:
......
......@@ -2,6 +2,13 @@
"name": "FLT/symfony-swoole",
"description": "Event-driven engine for running Symfony PHP with Swoole extension.",
"type": "library",
"authors" : [{
"name" : "Mattia Bernasconi",
"email" : "info@mattiabernasconi.it",
"homepage" : "https://www.mattiabernasconi.it",
"role" : "Owner"
}
],
"require": {
"symfony/console": "^4.0",
"php": ">=7.1",
......@@ -10,12 +17,6 @@
"require-dev": {
"phpunit/phpunit": "^6.1"
},
"authors": [
{
"name": "Mattia Bernasconi",
"homepage": "https://www.mattiabernasconi.it"
}
],
"autoload": {
"psr-4": {"FLT\\Swoole\\": "src/"}
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment