for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace QiniuRtc;
final class Config
{
const SDK_VERSION = '1.0.0';
const SDK_USER_AGENT = 'Rtc-sdk-php';
public $USE_HTTPS = false;
public $RTCAPI_HOST = 'http://rtc.qiniuapi.com';
public $RTCAPI_VERSION = 'v3'; //连麦版本号
protected static $_instance = null;
protected function __construct()
}
protected function __clone()
public static function getInstance()
if (!(self::$_instance instanceof self)) {
self::$_instance = new self();
return self::$_instance;
public function __get($property)
if (property_exists(self::getInstance(), $property)) {
return self::getInstance()->$property;
} else {
return null;
public function __set($property, $value)
self::getInstance()->$property = $value;
return self::getInstance();