承接 mvccore/packager 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

mvccore/packager

Composer 安装命令:

composer require mvccore/packager

包简介

Library to pack any type of app into PHAR archive or any MvcCore app into single PHP super fast result file.

README 文档

README

Latest Stable Version License PHP Version

Features

  • pack PHP MvcCore application into single PHP file
  • pack any PHP application into PHAR archive

Installation

composer require mvccore/packager

Configuration

  • directory with whole app source to pack (/development/...)
  • result index.php file where to store packed result
  • no needs to define PHP scripts order anymore - automatic order detecting by reading PHP scripts
  • exclude patterns by regular expressions to exclude any files or folders from app source
  • string replacements applied on every packed PHP file before minimalization
  • minimalizing PHTML templates
  • minimalizing PHP scripts
  • PHP packing has now 4 options, how implemented file system wrapping functions could behave:
    • strict package mode (\Packager_Php::FS_MODE_STRICT_PACKAGE) (everything is only possible to get from index.php, very fast for specific application types in IIS/PHP/op_cache)
    • strict hard drive mode (\Packager_Php::FS_MODE_STRICT_HDD) (no file system wrapping functions)
    • php library mode (\Packager_Php::FS_MODE_PHP_LIBRARY) (no file system wrapping functions, no PHP code replacements except namespace merge)
    • preserve php package mode (\Packager_Php::FS_MODE_PRESERVE_PACKAGE) (first there is check if it is possible to get anything from index.php, then from hard drive)
    • preserve hard drive mode (\Packager_Php::FS_MODE_PRESERVE_HDD) (first there is check if it is possible to get anything from hard drive, then from index.php)
  • there are implemented those file system wrapping functions and constants:
    • __DIR__ and __FILE__
    • require_once();, include_once();, require();, include();
    • new DirectoryIterator();, new SplFileInfo();
    • readfile();, file_get_contents();
    • file_exists();, is_file();, is_dir();, mkdir(), filemtime();, filesize();
    • simplexml_load_file();, parse_ini_file();, md5_file();
  • possibility to define which file system wrapping functions should be keeped and not wrapped
  • for PHP packing - possibility to define files by extension how to store them inside index.php result
    • pure text
    • php code
    • binary
    • gzipped content
    • base64 encoded content

Examples

统计信息

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

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2017-01-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固