Git Product home page Git Product logo

laravel-octane-test's Introduction

Laravel Octane Workerman

Discussions

访问地址 https://laravel-workerman-bbs.hecs.iwnweb.com/

Todos

  • [ ] Support Workerman v5
  • add make Events command
  • add make Socket Command
  • add make CustomProcess command
  • add global setRegisterAddress of API method

Screenshot

Start the laravel project through gatewayworker to make the development of laravel in the Internet of Things more convenient. Fetch and communicate with different gateways via API.

See the Websocket Gateway and API signal communication Screenshot

image

image

image

image

image

Installing

$ composer config repositories.0 vcs https://github.com/mouyong/laravel-octane-workerman

# support workerman:gateway and workerman:http command install from https://github.com/mouyong/laravel-octane-workerman
$ composer require jie-anthony/laravel-octane-workerman:dev-gatewayworker -vvv

# just support octane:workerman command, install from https://github.com/JieAnthony/laravel-octane-workerman
$ composer require jie-anthony/laravel-octane-workerman -vvv

Configuration

php artisan vendor:publish --provider="Laravel\Octane\OctaneServiceProvider"
php artisan vendor:publish --provider="JieAnthony\LaravelOctaneWorkerman\WorkermanGatewayWorkerServiceProvider"

configuration edit in config/workerman.php

Command parameter

option default
host 0.0.0.0
port 8000
max-requests 10000
mode start
watch

mode options : ( start / daemon / stop )

Useage

php artisan workerman:gateway --port=9502 --host=0.0.0.0 start
php artisan workerman:gateway --port=9502 --host=0.0.0.0 daemon
php artisan workerman:gateway start
php artisan workerman:gateway daemon
php artisan workerman:gateway reload
php artisan workerman:gateway stop
php artisan workerman:gateway status

php artisan workerman:gateway-make-sockets Sockets
php artisan workerman:gateway-make-events Events
php artisan workerman:gateway-make-custom-process CustomProcess

webman plugin useage

Documentation

websockets

The tcp ddos-proxy-http address

ws://127.0.0.1:7000/ws

location /ws {
    # the websocket address with http protocol
    proxy_pass http://127.0.0.1:7200;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection 'Upgrade';
}

Thanks

Contact

Join QQ Group laravel-octane-gatewayworker 650057913

laravel-octane-gatewayworker 群聊二维码

License

MIT

laravel-octane-test's People

Contributors

mouyong avatar jieanthony avatar laradocs avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.