Join 4,000+ others and never miss out on new tips, tutorials, and more.
Latest version:
pecl install openswoole-22.1.2 | composer require openswoole/core:22.1.5
OpenSwoole Util provides a few util functions.
OpenSwoole\Util::getVersion
OpenSwoole\Util::getCPUNum
OpenSwoole\Util::getLocalIp
OpenSwoole\Util::getLocalMac
OpenSwoole\Util::getLastErrorCode
OpenSwoole\Util::getErrorMessage
OpenSwoole\Util::errorCode
OpenSwoole\Util::clearError
OpenSwoole\Util::log
OpenSwoole\Util::hashcode
OpenSwoole\Util::mimeTypeAdd
OpenSwoole\Util::mimeTypeSet
OpenSwoole\Util::mimeTypeDel
OpenSwoole\Util::mimeTypeGet
OpenSwoole\Util::mimeTypeList
OpenSwoole\Util::mimeTypeExists
OpenSwoole\Util::setProcessName
OpenSwoole\Util::setAio