定制 axute/paerius 二次开发

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

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

axute/paerius

Composer 安装命令:

composer require axute/paerius

包简介

Bundles your vendor directory into a PHP Archive (PHAR)

README 文档

README

Bundles your vendor directory into a single PHP Archive (PHAR).

Requirements

php.ini edit phar settings:

; http://php.net/phar.readonly
phar.readonly = Off
; http://php.net/phar.require-hash
phar.require_hash = Off

Installation

Add Pmt to your project using Composer:

composer require axute/paerius

Files that will be deleted

See Paerius.php at class fields for files that will be deleted (in vendor path).

Usage

Run the binary to create/update your PHAR file:

php vendor/bin/paerius

Compression

Files in phar archive will be tried to compress.

PHP Extension is required (optionaly).

force special compression (bz2/gz/none)

default is bzip2 (if installed, fallback gzip if installed, fallback none)

bzip2 < gzip < none

php vendor/bin/paerius bz

php vendor/bin/paerius gz

php vendor/bin/paerius none

A new file named vendor.phar will be added to your working directory (project root). Update your bootstrap to include ./vendor.phar instead of vendor/autoload.php and you're good to go.

$autoload = require_once __DIR__ . DIRECTORY_SEPARATOR . 'vendor.phar';
$autoload->addPsr4('[YOUR NAMESPACE]',__DIR__.DIRECTORY_SEPARATOR.'src');

Automate

To generate vendor.phar automaticly, add the following lines to your composer.json

"scripts": {
    "post-install-cmd": "vendor/bin/paerius",
    "post-update-cmd": "vendor/bin/paerius"
}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-03-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固