2017 © Pedro Peláez
 

project pharext

Package PHP extensions as self-installing PHARs

image

m6w6/pharext

Package PHP extensions as self-installing PHARs

  • Sunday, October 9, 2016
  • by m6w6
  • Repository
  • 5 Watchers
  • 49 Stars
  • 51 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 12 Versions
  • 0 % Grown

The README.md

pharext

Join the chat at https://gitter.im/pharext/pharext, (*1)

Distribute your PHP extension as self-installable phar executable. See https://pharext.org, (*2)

About

You don't need this package to install any *.ext.phar extension packages, just run them with php:, (*3)

$ ./pecl_http-2.4.2.ext.phar

For a compressed phar, or if the execute permission bit got lost somehow:, (*4)

$ php pecl_http-2.4.2.ext.phar.gz

Command help:, (*5)

$ ./pecl_http-2.4.2.ext.phar -h

Yields:, (*6)

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:, (*7)

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, (*8)

A network connection is not needed., (*9)

Extension maintainers

Download the pharext binary of the latest release., (*10)

Be aware that you need the public key to run official pharext releases., (*11)

-----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., (*12)

Please have a look at the wiki, to learn how to use the pharext installer to package self-installing PHP extensions., (*13)

The Versions

09/10 2016

dev-master

9999999-dev

Package PHP extensions as self-installing PHARs

  Sources   Download

BSD-2-Clause

extension phar install package ext

03/09 2015

v4.1.1

4.1.1.0

Package PHP extensions as self-installing PHARs

  Sources   Download

BSD-2-Clause

extension phar install package ext

03/09 2015

v4.1.0

4.1.0.0

Package PHP extensions as self-installing PHARs

  Sources   Download

BSD-2-Clause

extension phar install package ext

20/05 2015

v4.0.0

4.0.0.0

Package PHP extensions as self-installing PHARs

  Sources   Download

BSD-2-Clause

extension phar install package ext

08/04 2015

v3.0.1

3.0.1.0

Package PHP extensions as self-installing PHARs

  Sources   Download

BSD-2-Clause

extension phar install package ext

30/03 2015

v3.0.0

3.0.0.0

Package PHP extensions as self-installing PHARs

  Sources   Download

BSD-2-Clause

extension phar install package ext

10/03 2015

v2.0.1

2.0.1.0

Package PHP extensions as self-installing PHARs

  Sources   Download

BSD-2-Clause

extension phar install package ext

09/03 2015

v2.0.0

2.0.0.0

Package PHP extensions as self-installing PHARs

  Sources   Download

BSD-2-Clause

extension phar install package ext

06/03 2015

v1.1.0

1.1.0.0

Package PHP extensions as self-installing PHARs

  Sources   Download

BSD-2-Clause

extension phar install package ext

04/03 2015

v1.0.3

1.0.3.0

Package PHP extensions as self-installing PHARs

  Sources   Download

BSD-2-Clause

extension phar install package ext

04/03 2015

v1.0.1

1.0.1.0

Package PHP extensions as self-installing PHARs

  Sources   Download

BSD-2-Clause

extension phar install package ext

04/03 2015

v1.0.0

1.0.0.0

Package PHP extensions as self-installing PHARs

  Sources   Download

BSD-2-Clause

extension phar install package ext