Module
β οΈ This page was initialized by AI translation and may contain outdated or inaccurate information. If there are inaccuracies, please submit changes to correct these errors Correct
introduceβ
All ripple support libraries are under the Co
namespace and are divided according to the modules to which they belong.
Currently, the support libraries have the following modules:
Co\Net
network operation moduleCo\IO
stream resource operation moduleCo\System
system operation moduleCo\Util
tool moduleCo\Plugin
plug-in moduleCo\Coroutine
coroutine module
You can access the support library and use it in the following ways, such as
use \Co\IO;
$fileUtil = IO::File();
$fileUtil->getContent('file.txt');
Also supports chain calls such as
$channel = \Co\IO::Channel()->open('master');
$channel->send('hello world');