• This repository has been archived on 29/Jan/2020
  • Stars
    star
    159
  • Rank 228,520 (Top 5 %)
  • Language
    PHP
  • License
    BSD 3-Clause "New...
  • Created almost 6 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Swoole support for Expressive applications

zend-expressive-swoole

Repository abandoned 2019-12-31

This repository has moved to mezzio/mezzio-swoole.

Build Status Coverage Status

This library provides the support of Swoole into an Expressive application. This means you can execute your Expressive application using Swoole directly from the command line.

Installation

Run the following to install this library:

$ composer require zendframework/zend-expressive-swoole

Configuration

After installing zend-expressive-swoole, you will need to first enable the component, and then optionally configure it.

We recommend adding a new configuration file to your autoload directory, config/autoload/swoole.local.php. To begin with, use the following contents:

<?php

use Zend\Expressive\Swoole\ConfigProvider;

return array_merge((new ConfigProvider())(), []);

The above will setup the Swoole integration for your application.

By default, Swoole executes the HTTP server with host 127.0.0.1 on port 8080. You can change these values via configuration. Assuming you have the above, modify it to read as follows:

<?php

use Zend\Expressive\Swoole\ConfigProvider;

return array_merge((new ConfigProvider())(), [
    'zend-expressive-swoole' => [
        'swoole-http-server' => [
            'host' => 'insert hostname to use here',
            'port' => 80, // use an integer value here
        ],
    ],
]);

Expressive skeleton 3.1.0 and later

If you have built your application on the 3.1.0 or later version of the Expressive skeleton, you do not need to instantiate and invoke the package's ConfigProvider, as the skeleton supports it out of the box.

You will only need to provide any additional configuration of the HTTP server.

Execute

Once you have performed the configuration steps as outlined above, you can run an Expressive application with Swoole using the following command:

$ ./vendor/bin/zend-expressive-swoole start

Call the command without arguments to get a list of available commands, and use the help meta-argument to get help on individual commands:

$ ./vendor/bin/zend-expressive-swoole help start

Documentation

Browse the documentation online at https://docs.zendframework.com/zend-expressive-swoole/

Support

More Repositories

1

zendframework

Official Zend Framework repository
5,521
star
2

zend-code

PHP
1,687
star
3

zend-eventmanager

Implement event systems, signal slots, intercepting filters, and observers.
PHP
1,643
star
4

zend-diactoros

PSR-7 HTTP Message implementation
PHP
1,561
star
5

ZendSkeletonApplication

Skeleton application for zend-mvc projects
PHP
1,521
star
6

zend-expressive

PSR-15 middleware in minutes!
PHP
710
star
7

zend-stdlib

Stdlib component from Zend Framework
PHP
384
star
8

zf1

This project reached its end-of-life on 2016-09-28. Contains conversion of ZF1 subversion repo to git, from version 15234 forward, and only containing master and release-1.12 branches and 1.12 tags.
PHP
362
star
9

zend-escaper

Escaper component from Zend Framework
PHP
332
star
10

zend-developer-tools

Module for developer and debug tools for working with the ZF2 MVC layer.
PHP
325
star
11

zend-stratigility

Middleware for PHP built on top of PSR-7 and PSR-15
PHP
235
star
12

ZendSkeletonModule

Sample skeleton module for use with the ZF2 MVC layer
PHP
208
star
13

zf2-documentation

Zend Framework 2 documentation sources
191
star
14

modules.zendframework.com

Home for ZF2 module distribution
PHP
190
star
15

zend-diagnostics

Universal set of diagnostic tests for PHP applications.
PHP
189
star
16

zend-servicemanager

ServiceManager component from Zend Framework
PHP
188
star
17

ZFTool

Utility module for maintaining modular Zend Framework 2 applications.
PHP
188
star
18

zend-validator

Validator component from Zend Framework
PHP
181
star
19

zend-feed

Feed component from Zend Framework
PHP
167
star
20

zend-hydrator

Object hydrators and array extraction
PHP
157
star
21

zend-http

Http component from Zend Framework
PHP
134
star
22

zend-uri

Uri component from Zend Framework
PHP
117
star
23

zend-loader

Loader component from Zend Framework
PHP
116
star
24

zend-mvc

Mvc component from Zend Framework
PHP
105
star
25

zend-json

Json component from Zend Framework
PHP
103
star
26

zend-db

Db component from Zend Framework
PHP
101
star
27

zend-mail

Mail component from Zend Framework
PHP
95
star
28

zend-config

Config component from Zend Framework
PHP
90
star
29

zend-crypt

Cryptographic component from Zend Framework
PHP
89
star
30

ZendPdf

PHP
88
star
31

zf-web

Sources for the Zend Framework website
HTML
78
star
32

zend-soap

Soap component from Zend Framework
PHP
75
star
33

zend-filter

Filter component from Zend Framework
PHP
69
star
34

zend-cache

PHP
69
star
35

zend-form

Form component from Zend Framework
PHP
69
star
36

ZendSearch

PHP
67
star
37

zend-i18n

I18n component from Zend Framework
PHP
65
star
38

zend-inputfilter

InputFilter component from Zend Framework
PHP
64
star
39

zend-mime

Mime component from Zend Framework
PHP
62
star
40

zend-log

Log component from Zend Framework
PHP
62
star
41

zend-permissions-acl

PHP
60
star
42

zend-math

Math component from Zend Framework
PHP
54
star
43

zend-barcode

Barcode component from Zend Framework
PHP
53
star
44

maintainers

Contributors and maintainers information for Zend Framework.
PHP
50
star
45

zend-problem-details

Provides Problem Details for HTTP APIs (RFC 7807) support for PSR-7 applications.
PHP
50
star
46

zend-server

Server component from Zend Framework
PHP
49
star
47

ZendService_Apple_Apns

PHP
49
star
48

zend-view

View component from Zend Framework
PHP
49
star
49

zend-console

Console component from Zend Framework
PHP
48
star
50

zend-httphandlerrunner

Execute PSR-15 RequestHandlerInterface instances and emit responses they generate.
PHP
46
star
51

zend-di

Di component from Zend Framework
PHP
46
star
52

zend-component-installer

Composer post-package-(un)install scripts for modules and components.
PHP
46
star
53

zend-serializer

Serializer component from Zend Framework
PHP
45
star
54

zend-modulemanager

ModuleManager component from Zend Framework
PHP
44
star
55

zend-permissions-rbac

Create and query role-based access controls.
PHP
44
star
56

zend-authentication

Authentication component from Zend Framework
PHP
44
star
57

zend-config-aggregator

Aggregate and merge configuration from a variety of sources.
PHP
44
star
58

zend-psr7bridge

PSR-7 <-> zend-http message conversions
PHP
43
star
59

zend-session

Manage and preserve session data, a logical complement of cookie data, across multiple page requests by the same client.
PHP
42
star
60

zf3-web

Website of Zend Framework 3
PHP
39
star
61

zend-expressive-hal

Hypertext Application Language implementation for PHP and PSR-7
PHP
37
star
62

zend-paginator

Paginate collections of data from arbitrary sources.
PHP
36
star
63

zend-expressive-authentication-oauth2

OAuth2 (server) authentication middleware for PSR-7 applications.
PHP
35
star
64

zend-coding-standard

Zend Framework Coding Standard
35
star
65

zend-expressive-helpers

Helper classes for Expressive
PHP
33
star
66

zend-router

Standalone routing implementation for HTTP and console requests
PHP
32
star
67

zend-expressive-tooling

Migration and development tooling for Expressive
PHP
32
star
68

zend-text

Text component from Zend Framework
PHP
31
star
69

zend-expressive-fastroute

FastRoute integration for Expressive
PHP
31
star
70

ZendXml

Utility library for XML usage and best practices in PHP
PHP
31
star
71

tutorials

Tutorials for Zend Framework
30
star
72

zend-ldap

Ldap component from Zend Framework
PHP
30
star
73

zend-dom

Dom component from Zend Framework
PHP
30
star
74

ZendService_Amazon

PHP
29
star
75

ZendGData

PHP
29
star
76

ZendService_Google_Gcm

Implementation for ZF2 of a GCM 3rd party server (http://developer.android.com/guide/google/gcm/)
PHP
29
star
77

zend-expressive-router

Router subcomponent for Expressive
PHP
28
star
78

ZF2Package

HTML
28
star
79

zend-captcha

Captcha component from Zend Framework
PHP
27
star
80

zend-expressive-session

Session middleware for PSR-7 applications
PHP
27
star
81

zend-expressive-twigrenderer

Twig integration for Expressive
PHP
25
star
82

ZendService_Twitter

PHP OOP wrapper for the Twitter API
PHP
23
star
83

zend-expressive-authorization

Authorization middleware for PSR-7 applications and Expressive
PHP
22
star
84

zend-expressive-authentication

Authentication middleware for Expressive and PSR-7 applications
PHP
21
star
85

zend-i18n-resources

Translation resources for zend-i18n
PHP
20
star
86

zend-navigation

Navigation component from Zend Framework
PHP
20
star
87

zend-expressive-template

Template subcomponent for Expressive
PHP
20
star
88

ZendOAuth

PHP
19
star
89

zend-test

Test component from Zend Framework
PHP
18
star
90

zend-memory

Memory component from Zend Framework
PHP
18
star
91

zend-xmlrpc

XmlRpc component from Zend Framework
PHP
17
star
92

component-split

Script/utilities for splitting ZF2 components into their own repositories.
PHP
17
star
93

zend-expressive-flash

Flash messages for PSR-7 applications using zend-expressive-session
PHP
16
star
94

zf1-extras

"Extras" repository from Zend Framework 1.x, containing jQuery integration, console forking, and Firebird DB adapter
PHP
15
star
95

zend-xml2json

PHP
15
star
96

ZendQueue

PHP
14
star
97

zend-file

File component from Zend Framework
PHP
14
star
98

zend-debug

Debug component from Zend Framework
PHP
13
star
99

zf-mkdoc-theme

MkDocs theme and gh-pages automation scripts for ZF documentation
HTML
13
star
100

zend-expressive-session-ext

PHP ext-session persistence adapter for zend-expressive-session.
PHP
12
star