All Projects → mezzio → Mezzio Swoole

mezzio / Mezzio Swoole

Licence: bsd-3-clause
Swoole support for Mezzio

Projects that are alternatives of or similar to Mezzio Swoole

Cloudsplaining
Cloudsplaining is an AWS IAM Security Assessment tool that identifies violations of least privilege and generates a risk-prioritized report.
Stars: ✭ 1,057 (+1932.69%)
Mutual labels:  hacktoberfest
Ts Postgres
Non-blocking PostgreSQL client for Node.js written in TypeScript.
Stars: ✭ 51 (-1.92%)
Mutual labels:  hacktoberfest
React Tracking
🎯 Declarative tracking for React apps.
Stars: ✭ 1,062 (+1942.31%)
Mutual labels:  hacktoberfest
Cliwrap
Library for running command line processes
Stars: ✭ 1,057 (+1932.69%)
Mutual labels:  hacktoberfest
R6 Operator Counters
A website with a graph visualisation of how operators counter each other in Rainbow Six Siege.
Stars: ✭ 51 (-1.92%)
Mutual labels:  hacktoberfest
Js Api Client
Typeform API js client
Stars: ✭ 51 (-1.92%)
Mutual labels:  hacktoberfest
Synfig
This is the Official source code repository of the Synfig project
Stars: ✭ 1,056 (+1930.77%)
Mutual labels:  hacktoberfest
Cm
Emacs' compilation-mode-like TUI application
Stars: ✭ 52 (+0%)
Mutual labels:  hacktoberfest
Beginner Level Android Studio Apps
A repository for Hacktoberfest conducted by Digital Ocean. Star the repository if you find it interesting.
Stars: ✭ 51 (-1.92%)
Mutual labels:  hacktoberfest
Awesome Android Kotlin Apps
👓 A curated list of awesome android kotlin apps by open-source contributors.
Stars: ✭ 1,058 (+1934.62%)
Mutual labels:  hacktoberfest
Logidze
Database changes log for Rails
Stars: ✭ 1,060 (+1938.46%)
Mutual labels:  hacktoberfest
Lingua Franca
Mycroft's multilingual text parsing and formatting library
Stars: ✭ 51 (-1.92%)
Mutual labels:  hacktoberfest
Emotecollector
Collects emotes from other servers for use by people who don't have Nitro
Stars: ✭ 51 (-1.92%)
Mutual labels:  hacktoberfest
Siler
⚡ Flat-files and plain-old PHP functions rockin'on as a set of general purpose high-level abstractions.
Stars: ✭ 1,056 (+1930.77%)
Mutual labels:  hacktoberfest
Lvm
Development repository for lvm Chef cookbook
Stars: ✭ 51 (-1.92%)
Mutual labels:  hacktoberfest
Redux Query
A library for managing network state in Redux
Stars: ✭ 1,055 (+1928.85%)
Mutual labels:  hacktoberfest
Golang Combinations
Golang library which provide an algorithm to generate all combinations out of a given string array.
Stars: ✭ 51 (-1.92%)
Mutual labels:  hacktoberfest
Doctest Js
Run JSDoc style doc examples as tests within your test suite
Stars: ✭ 52 (+0%)
Mutual labels:  hacktoberfest
Puppet Selinux
Puppet Module to manage SELinux on RHEL machines
Stars: ✭ 51 (-1.92%)
Mutual labels:  hacktoberfest
Gau
Fetch known URLs from AlienVault's Open Threat Exchange, the Wayback Machine, and Common Crawl.
Stars: ✭ 1,060 (+1938.46%)
Mutual labels:  hacktoberfest

mezzio-swoole

Build Status Coverage Status

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

Installation

Run the following to install this library:

$ composer require mezzio/mezzio-swoole

Configuration

After installing mezzio-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 Mezzio\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 Mezzio\Swoole\ConfigProvider;

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

Mezzio skeleton 3.1.0 and later

If you have built your application on the 3.1.0 or later version of the Mezzio 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 Mezzio application with Swoole via the laminas-cli integration:

$ ./vendor/bin/laminas mezzio:swoole:start

Call the laminas command without arguments to get a list of available commands, looking for those that begin with mezzio:swoole:, and use the help meta-argument to get help on individual commands:

$ ./vendor/bin/laminas help mezzio:swoole:start

Documentation

Browse the documentation online at https://docs.mezzio.dev/mezzio-swoole/

Support

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].