1. Go to this page and download the library: Download linzening/devtools library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
linzening / devtools example snippets
use linzening\devtools\CacheLock; //Lock进程锁
$lock = new CacheLock('id_5');
$lock->lock(); //加锁
$lock->unlock(); //解锁
// 输出模板
public function html($page='deny'){
// $page in deny,deving,holiday,notice,starting,temporary,upgrade-browser
return \linzening\devtools\Template::template($page);
}
$r = new \linzening\devtools\Request();
$ip = $r->get_client_ip(0,true,'HTTP_X_FORWARDED_FOR');
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.