m6w6/pharext
最新稳定版本:v4.1.4
Composer 安装命令:
composer create-project m6w6/pharext
包简介
Package PHP extensions as self-installing PHARs
关键字:
README 文档
README
Distribute your PHP extension as self-installable phar executable. See https://pharext.org
About
You don't need this package to install any *.ext.phar extension packages,
just run them with php:
$ ./pecl_http-2.4.2.ext.phar
For a compressed phar, or if the execute permission bit got lost somehow:
$ php pecl_http-2.4.2.ext.phar.gz
Command help:
$ ./pecl_http-2.4.2.ext.phar -h
Yields:
pharext v3.0.0 (c) Michael Wallner <mike@php.net>
Usage:
$ ./pecl_http-2.4.2.ext.phar [-hvqs] [-p|-n|-c|-i <arg>]
-h|--help Display help
-v|--verbose More output
-q|--quiet Less output
-p|--prefix <arg> PHP installation prefix if phpize is not in $PATH, e.g. /opt/php7
-n|--common-name <arg> PHP common program name, e.g. php5 or zts-php [php]
-c|--configure <arg> Additional extension configure flags, e.g. -c --with-flag
-s|--sudo [<arg>] Installation might need increased privileges [sudo -S %s]
-i|--ini <arg> Activate in this php.ini instead of loaded default php.ini
--signature Show package signature
--license Show package license
--name Show package name
--date Show package release date
--release Show package release version
--version Show pharext version
--enable-propro [<arg>] Whether to enable property proxy support [yes]
--enable-raphf [<arg>] Whether to enable raphf support [yes]
--with-http-zlib-dir [<arg>] Where to find zlib [/usr]
--with-http-libcurl-dir [<arg>] Where to find libcurl [/usr]
--with-http-libevent-dir [<arg>] Where to find libevent [/usr]
If your installation destination needs escalated permissions, have a look at the --sudo option:
Installing propro-1.0.1.ext.phar ...
Running phpize ...
Running configure ...
Running make ...
Running make install ...
Running INI activation ...
Extension already activated ...
Successfully installed propro-1.0.1.ext.phar!
Installing raphf-1.0.5.ext.phar ...
Running phpize ...
Running configure ...
Running make ...
Running make install ...
Running INI activation ...
Extension already activated ...
Successfully installed raphf-1.0.5.ext.phar!
Installing pecl_http-2.4.2.ext.phar ...
Running phpize ...
Running configure ...
Running make ...
Running make install ...
Running INI activation ...
Extension already activated ...
Successfully installed pecl_http-2.4.2.ext.phar!
Prerequisites
The usual tools you need to build a PHP extension:
- php, phpize and php-config
- make, cc and autotools
A network connection is not needed.
Extension maintainers
Download the pharext binary of the latest release.
Be aware that you need the public key to run official pharext releases.
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5x9bwisjDBDV/bwDiju2
Ebx4kPir32WwT3+hxV0/qAPclA1WsrpcUJ7BChk+Rlz8ujOcyENTidgI1vj3oUpo
/P9XlLQOSrJHYz+AOg7qwhTe89xIJspS4gHHiXUAmxz0TyCNMbOyrLcjP5CmZdll
n+e3HP8Kfipr4XyWBhsKbdYUZ8Ga6IeFMYzNqCzWazcOasdCpsablmyrfCaZoJ0l
bFald0nF3/YoeYgo3fWb4Md9Xf/grpz8Ocqyq4OY49Vb0/p8FMwzBV6vbVh/eAV/
jrP7L40Jw97nSBrP/5nK8Ylc5BayVRq/HhT3kLMC//zvPjb8xz3ZgVTQrwWTF3Zy
+wIDAQAB
-----END PUBLIC KEY-----
Place it as pharext.pubkey in the same directory where the pharext binary is located. IF you cloned the repository or installed pharext through composer, it is already at the right location.
Please have a look at the wiki, to learn how to use the pharext installer to package self-installing PHP extensions.
m6w6/pharext 适用场景与选型建议
m6w6/pharext 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 97 次下载、GitHub Stars 达 60, 最近一次更新时间为 2015 年 03 月 04 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「package」 「extension」 「install」 「phar」 「ext」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 m6w6/pharext 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 m6w6/pharext 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 m6w6/pharext 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Install Plugin for NetCommons3
A custom URL rule class for Yii 2 which allows to create translated URL rules
The Yii2 extension uses jQuery jquery.carousel-1.1.min.js and makes image carousel from php array of structure defined.
TYPO3 CMS extension to create gallery content element with preset crop ratios and pagination
UI Kit 3 Extension for Yii2
Adds more BBCode
统计信息
- 总下载量: 97
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 60
- 点击次数: 16
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-2-Clause
- 更新时间: 2015-03-04