定制 letron/optimizer 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

letron/optimizer

Composer 安装命令:

composer require letron/optimizer

包简介

An optimizer for the Mako framework.

README 文档

README

Command line task for the Mako framework that compiles classes into a single file to reduce the ammount of file includes required to process a request.

How do I use it?

First you'll have to register the package with your Mako application. This is done by adding letron\optimizer\OptimizerPackage to the list of packages in your app/config/application.php file.

Then you'll need to add the following lines to the index.php file (right after the part where it requires the init file).

if(file_exists(MAKO_APPLICATION_PATH . '/storage/compiled.php'))
{
	include MAKO_APPLICATION_PATH . '/storage/compiled.php';
}

You can then execute the compile action of the optimizer compiler.

php reactor optimizer.compile

php reactor optimizer.compiler --strip-comments

If you want to clear the compiled files then you can do so by executing the clear action of the optimizer compiler.

php reactor optimizer.clear

How much faster does it get?

That depends on a lot of factors so the easiest way to find out is to try for yourself.

统计信息

  • 总下载量: 38
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2014-05-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固