centos 安装 swoole_framework 框架

composer require "matyhtf/swoole_framework"

 运行以上命令

Using version ^1.20 for matyhtf/swoole_framework
./composer.json has been created
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 6 installs, 0 updates, 0 removals
  - Installing psr/log (1.0.2): Downloading (100%)         
    The Process class relies on proc_open, which is not available on your PHP installation.
    The archive may contain identical file names with different capitalization (which fails on case insensitive filesystems)
    Unzip with unzip command failed, falling back to ZipArchive class
  - Installing symfony/debug (v4.0.6): Downloading (100%)         
    The Process class relies on proc_open, which is not available on your PHP installation.
    The archive may contain identical file names with different capitalization (which fails on case insensitive filesystems)
    Unzip with unzip command failed, falling back to ZipArchive class
  - Installing symfony/polyfill-mbstring (v1.7.0): Downloading (100%)         
    The Process class relies on proc_open, which is not available on your PHP installation.
    The archive may contain identical file names with different capitalization (which fails on case insensitive filesystems)
    Unzip with unzip command failed, falling back to ZipArchive class
  - Installing symfony/console (v3.4.6): Downloading (100%)         
    The Process class relies on proc_open, which is not available on your PHP installation.
    The archive may contain identical file names with different capitalization (which fails on case insensitive filesystems)
    Unzip with unzip command failed, falling back to ZipArchive class
  - Installing filp/whoops (2.1.14): Downloading (100%)         
    The Process class relies on proc_open, which is not available on your PHP installation.
    The archive may contain identical file names with different capitalization (which fails on case insensitive filesystems)
    Unzip with unzip command failed, falling back to ZipArchive class
  - Installing matyhtf/swoole_framework (1.20.5): Downloading (100%)         
    The Process class relies on proc_open, which is not available on your PHP installation.
    The archive may contain identical file names with different capitalization (which fails on case insensitive filesystems)
    Unzip with unzip command failed, falling back to ZipArchive class
symfony/console suggests installing symfony/event-dispatcher ()
symfony/console suggests installing symfony/lock ()
symfony/console suggests installing symfony/process ()
filp/whoops suggests installing symfony/var-dumper (Pretty print complex values better with var-dumper available)
filp/whoops suggests installing whoops/soap (Formats errors as SOAP responses)
Writing lock file
Generating autoload files

 ok 完成

查看:

[root@VM_27_0_centos swooletest]# ls
composer.json  composer.lock  http_server.php  server.php  timer_tick.php  udp_server.php  vendor  ws_server.php

 可以看到 vendor 文件夹 至于为什么不直接看到 swoole_framework 框架 可以查看有关composer文档

[root@VM_27_0_centos swooletest]# tree -L 3
.
|-- composer.json
|-- composer.lock
|-- http_server.php
|-- server.php
|-- timer_tick.php
|-- udp_server.php
|-- vendor
|   |-- autoload.php
|   |-- composer
|   |   |-- autoload_classmap.php
|   |   |-- autoload_files.php
|   |   |-- autoload_namespaces.php
|   |   |-- autoload_psr4.php
|   |   |-- autoload_real.php
|   |   |-- autoload_static.php
|   |   |-- ClassLoader.php
|   |   |-- installed.json
|   |   `-- LICENSE
|   |-- filp
|   |   `-- whoops
|   |-- matyhtf
|   |   `-- swoole_framework
|   |-- psr
|   |   `-- log
|   `-- symfony
|       |-- console
|       |-- debug
|       `-- polyfill-mbstring
`-- ws_server.php

 OK 有了 咱们把这个移动到访问目录,在这里说一下 大家也可以直接去git 上下载zip 包 解压https://github.com/matyhtf/framework

原文地址:https://www.cnblogs.com/buxiangxin/p/8625049.html