chobie / php-uv

libuv php extension
183 stars 21 forks source link

OOP Interface. #15

Open chobie opened 12 years ago

chobie commented 12 years ago

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

gplanchat commented 11 years ago

Hello,

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

Thanks

Greg

chobie commented 11 years ago

@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.

gplanchat commented 11 years ago

@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