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