2017 © Pedro Peláez
 

library swoole-http-server-bundle

Implements swoole php extension in symfony projects

image

andreybolonin/swoole-http-server-bundle

Implements swoole php extension in symfony projects

  • Friday, July 13, 2018
  • by andreybolonin
  • Repository
  • 1 Watchers
  • 1 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

run symfony in swoole, (*1)

1 install, (*2)

    composer require andreybolonin/swoole-http-server-bundle:dev-master

2 define commands in services.yaml, (*3)

    Swoole\HttpServerBundle\Command\RunCommand:
      tags:
          - { name: 'console.command', command: 'swoole:run' }

    Swoole\HttpServerBundle\Command\StatusCommand:
      tags:
          - { name: 'console.command', command: 'swoole:status' }

    Swoole\HttpServerBundle\Command\StopCommand:
      tags:
          - { name: 'console.command', command: 'swoole:stop' }

    Swoole\HttpServerBundle\Command\StartCommand:
      tags:
          - { name: 'console.command', command: 'swoole:start' }

2 swoole http server command, (*4)

    * bin/console swoole:run   --evn=dev
    * bin/console swoole:start --evn=prod
    * bin/console swoole:status
    * bin/console swoole:stop
    * bin/console swoole:reload

3 nginx proxy config, (*5)

    server {
        listen       80;
        server_name  youdomain.com;
        location / {
            proxy_connect_timeout 300;
            proxy_send_timeout 300;
            proxy_read_timeout 300;
            send_timeout 300;
            proxy_set_header X-Real-IP  $remote_addr;
            proxy_set_header Host $host;
            proxy_pass http://127.0.0.1:2345/;
            proxy_redirect off;
        }
    }

The Versions

13/07 2018

dev-master

9999999-dev

Implements swoole php extension in symfony projects

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar daodao97