WEB開發框架:LMLPHP

jopen 10年前發布 | 18K 次閱讀 LMLPHP PHP開發

LMLPHP是一款可愛滴WEB開發框架。 它擁有體積小,純面向對象,MVC架構,強大的路由,強大的Debug工具, 代碼安全,使用方便,自動更新等優點。 它基于MIT(http://mit-license.org/)開源協議,可以免費使用。.載入LMLPHP

LMLPHP采用自主研發的代碼壓縮技術,將代碼壓縮成約22KB大小的lml.min.php文件,并使用自動更新機制,定時更新框架。使用時只需在項目入口處載入如下代碼即可:
<?php
function getRemoteLmlPhp(){
    
$cache_filename 'lml.min.php';
    
$remotelib 'http://pro8091d8.pic12.websiteonline.cn/upload/lmlphp-release-2014-08-27-v1.txt';
    if( 
file_exists$cache_filename ) ) {
        
$cachemtime filemtime($cache_filename);
        if( 
$cachemtime 86400 time() ){
            require 
$cache_filename;
            return;
        }
        
$header get_headers($remotelib);
        foreach (
$header as $k){
            if( 
preg_match('/^Last-Modified:/i'$k) ){
                
$lastmtime strtotime(preg_replace('/^Last-Modified:/i'''$k));
                break;
            }
        }
        if( 
$lastmtime <= $cachemtime ){
            
touch($cache_filename);
            require 
$cache_filename;
            return;
        }
    }
    
$code file_get_contents$remotelib );
    
file_put_contents($cache_filename$code);
    eval(
'?>'.$code);
}
getRemoteLmlPhp();

項目主頁:http://www.baiduhome.net/lib/view/home/1411438046000

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!