swoole / swoole-src

🚀 Coroutine-based concurrency library for PHP
https://www.swoole.com
Apache License 2.0
18.46k stars 3.16k forks source link

Plugin type system #2611

Open seeme-o opened 5 years ago

seeme-o commented 5 years ago

This is a feature request. Around a year ago I started using Swoole for custom projects. I have created a native Enet (https://github.com/lsalzman/enet) server extension and a WebRTC datachannel server extension for Swoole among others. I am currently looking at adding a mature and known C++ game engine to Swoole. This process would have been easier if native Swoole had a more comprehensive API that allowed it to be more extensible, and I would be more forthcoming with sharing the code if I didn't have to add it to the main Swoole repository.

seeme-o commented 5 years ago

I'm also playing with creating a Node.JS module for Swoole Channel and Table to allow Node.JS and PHP to share Channel objects and Table Objects.

seeme-o commented 5 years ago

It wouldn't be too hard to do the same thing in Java via JNI. Pocketmine is a perfect example of a mobile app that had over 10m PHP installs on mobile devices.

matyhtf commented 5 years ago

@need-sleep We are doing these things. We will provide C/C++ API later.