php-uv icon indicating copy to clipboard operation
php-uv copied to clipboard

OOP Interface.

Open chobie opened this issue 13 years ago • 3 comments

robust OOP interface (close connections automatically when error happened ...etc)

chobie avatar Jul 17 '12 16:07 chobie

Hello,

Is there any spec, rfc or any plan about the OOP API?

Thanks

Greg

gplanchat avatar Feb 12 '13 14:02 gplanchat

@gplanchat hi, I don't have any plan yet. adding OOP interface is big cost to maintain wrapper extension as open source library usually change function signature and structure. pure PHP is able to wrap non OOP code. so i hope someone wrap this extension.

chobie avatar Feb 12 '13 23:02 chobie

@chobie I couldn't give any useful help on implementing an OOP interface in an extension, but I wrote the beginning of a library using php-uv in PHP5.4 and inspired by node.js : https://github.com/gplanchat/php-io

Here is an usage example : https://gist.github.com/gplanchat/4991211

gplanchat avatar Feb 19 '13 23:02 gplanchat