samsonos/php_compressor 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

samsonos/php_compressor

Composer 安装命令:

composer require samsonos/php_compressor

包简介

SamsonPHP automatic code compressor|generator|optimizer

README 文档

README

Latest Stable Version Build Status Code Coverage Code Climate Total Downloads Scrutinizer Code Quality Stories in Ready

Exclusive module which differs this PHP framework among all others,

Introduction

SamsonPHP is designed to be very extensible and uses DRY principle as it's core idea so you don't have to download each module in your every project(web-application), you can just save one copy of each module in your file system and set path to it in index.php

Main goal

The introductory part perfectly fits for development environment but what to do whith production when you need to upload your project to outer server? As usual, in all modern PHP frameworks you must copy all the files, from all the modules used by your project into one folder and download it to server, but wait, SamsonPHP was not designed for this kind of things! It was designed for you - for web-developer!

You just connect Comressor module to your project in index.php and enter /compressor url from your browser and that's it, you got automaticly minified, combined, optimized version of your web-application at few seconds.

Compressor automaticly supports PHP 5.2 for old corporate web serververs, dispites namespaces, required class order, it analyzes and generates perfect PHP code, plus it uses optimisation for speed imporvements such as:

  • saving core snapshot, no more loading for each request
  • removing unnesesary code from core and modules using special comments //[PHPCOMPRESSOR(remove,start)], //[PHPCOMPRESSOR(remove,end)]
  • preprocessing templates for speed
  • minifying views and saving them as variables using <<EOT approach
  • copying all images, docs, and all other resources preserving module structure

Compressor generates one php file - index.php, in the end you get the posiible variant of your web-application for production

egorov@samsonos.com

统计信息

  • 总下载量: 4.86k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 2
  • 依赖项目数: 4
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 2
  • Forks: 7
  • 开发语言: PHP

其他信息

  • 授权协议: Open
  • 更新时间: 2014-04-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固