Home >Backend Development >PHP Tutorial >CrossPHP 153 released, lightweight PHP development framework

CrossPHP 153 released, lightweight PHP development framework

WBOY
WBOYOriginal
2016-07-29 09:09:591100browse

1.5.3 update instructions


1. New features

Add Rest::any(), match all request types

<code>$app = Cross\Core\Delegate::loadApp('web');

$rest = $app->rest();
$rest->any('/', function(){
    echo  'hi';
});
$rest->run();
</code>

2. Optimize

  1. RemoveDelegate::mRun(), by function The more powerful Delegate::rest()replaces

  2. ClosureContainer::isRegister()renamed to ClosureContainer::has()

  3. Rest is case-sensitive when matching URLs, and promotion is not carried out Performance under parameter matching

  4. ImageThumbWhen generating thumbnails, increase quality parameters

  5. Reduce static member variables in FrameBase and use anonymous function containers to pass parameters

  6. Optimize decryption with question marks BUG that parameters cause decryption failure

3. skeleton

admin default style changed to adminLTE

The above introduces the release of CrossPHP 153, a lightweight PHP development framework, including the content of generating thumbnails. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn