第 5 章 PECL :: The PHP Extension Community Library

简介:

5.1. pecl 命令

5.1.1. version

# pecl help version
PEAR Version: 1.10.1
PHP Version: 5.6.16
Zend Engine Version: 2.6.0
Running on: Linux iZ62u09t59qZ 3.10.0-229.11.1.el7.x86_64 #1 SMP Thu Aug 6 01:06:18 UTC 2015 x86_64			
			

查看模块版本

# php -dextension=pthreads.so --ri pthreads | grep Version
Version => 2.0.10			
			

5.1.2. list

5.1.2.1. 查看已经安装的扩展

列出已经安装的扩展

# pecl list
Installed packages, channel pecl.php.net:
=========================================
Package  Version State
pthreads 2.0.10  stable
				

5.1.2.2. 列出扩展文件列表

# pecl list pthreads
Installed Files For pthreads
============================
Type Install Path
doc  /srv/php-5.6.16/lib/php/doc/pthreads/examples/Benchmark.php
doc  /srv/php-5.6.16/lib/php/doc/pthreads/examples/CallAnyFunction.php
doc  /srv/php-5.6.16/lib/php/doc/pthreads/examples/Fetch.php
doc  /srv/php-5.6.16/lib/php/doc/pthreads/examples/KeepAliveSession.php
doc  /srv/php-5.6.16/lib/php/doc/pthreads/examples/Mutexes.php
doc  /srv/php-5.6.16/lib/php/doc/pthreads/examples/MySQLi.php
doc  /srv/php-5.6.16/lib/php/doc/pthreads/examples/NewSynchronization.php
doc  /srv/php-5.6.16/lib/php/doc/pthreads/examples/Notifications.php
doc  /srv/php-5.6.16/lib/php/doc/pthreads/examples/ObjectsAsParameters.php
doc  /srv/php-5.6.16/lib/php/doc/pthreads/examples/Objects.php
doc  /srv/php-5.6.16/lib/php/doc/pthreads/examples/Pooling.php
doc  /srv/php-5.6.16/lib/php/doc/pthreads/examples/Scope.php
doc  /srv/php-5.6.16/lib/php/doc/pthreads/examples/SelectiveInheritance.php
doc  /srv/php-5.6.16/lib/php/doc/pthreads/examples/SharingResources.php
doc  /srv/php-5.6.16/lib/php/doc/pthreads/examples/SimpleWebRequest.php
doc  /srv/php-5.6.16/lib/php/doc/pthreads/examples/Singleton.php
doc  /srv/php-5.6.16/lib/php/doc/pthreads/examples/SocketServer.php
doc  /srv/php-5.6.16/lib/php/doc/pthreads/examples/SQLWorker.php
doc  /srv/php-5.6.16/lib/php/doc/pthreads/examples/StackableArray.php
doc  /srv/php-5.6.16/lib/php/doc/pthreads/examples/Stacking.php
doc  /srv/php-5.6.16/lib/php/doc/pthreads/examples/stub.php
test /srv/php-5.6.16/lib/php/test/pthreads/tests/binding.phpt
test /srv/php-5.6.16/lib/php/test/pthreads/tests/callstatic-etc.phpt
test /srv/php-5.6.16/lib/php/test/pthreads/tests/chunk.phpt
test /srv/php-5.6.16/lib/php/test/pthreads/tests/class-defaults.phpt
test /srv/php-5.6.16/lib/php/test/pthreads/tests/closures-as-members.phpt
test /srv/php-5.6.16/lib/php/test/pthreads/tests/complex-statics.phpt
test /srv/php-5.6.16/lib/php/test/pthreads/tests/complex-statics-set-null.phpt
test /srv/php-5.6.16/lib/php/test/pthreads/tests/conditions.phpt
test /srv/php-5.6.16/lib/php/test/pthreads/tests/constants.phpt
test /srv/php-5.6.16/lib/php/test/pthreads/tests/corrupted-resources.phpt
test /srv/php-5.6.16/lib/php/test/pthreads/tests/counting-members.phpt
test /srv/php-5.6.16/lib/php/test/pthreads/tests/detach.phpt
test /srv/php-5.6.16/lib/php/test/pthreads/tests/doc-comments.phpt
test /srv/php-5.6.16/lib/php/test/pthreads/tests/exception-handler.phpt
test /srv/php-5.6.16/lib/php/test/pthreads/tests/foreign-private-members.phpt
test /srv/php-5.6.16/lib/php/test/pthreads/tests/functions.phpt
test /srv/php-5.6.16/lib/php/test/pthreads/tests/global-constants.phpt
test /srv/php-5.6.16/lib/php/test/pthreads/tests/globals.phpt
test /srv/php-5.6.16/lib/php/test/pthreads/tests/global-voodoo.phpt
test /srv/php-5.6.16/lib/php/test/pthreads/tests/gone.phpt
test /srv/php-5.6.16/lib/php/test/pthreads/tests/graceful-fatalities.phpt
test /srv/php-5.6.16/lib/php/test/pthreads/tests/included-files.phpt
test /srv/php-5.6.16/lib/php/test/pthreads/tests/includeme.inc
test /srv/php-5.6.16/lib/php/test/pthreads/tests/ini.phpt
test /srv/php-5.6.16/lib/php/test/pthreads/tests/interface.phpt
test /srv/php-5.6.16/lib/php/test/pthreads/tests/interfaces.phpt
test /srv/php-5.6.16/lib/php/test/pthreads/tests/isset-empty-compat.phpt
test /srv/php-5.6.16/lib/php/test/pthreads/tests/isset-unset.phpt
test /srv/php-5.6.16/lib/php/test/pthreads/tests/killed-info.phpt
test /srv/php-5.6.16/lib/php/test/pthreads/tests/legacy-ctor.phpt
test /srv/php-5.6.16/lib/php/test/pthreads/tests/merging-members.phpt
test /srv/php-5.6.16/lib/php/test/pthreads/tests/merging-range.phpt
test /srv/php-5.6.16/lib/php/test/pthreads/tests/mutex.phpt
test /srv/php-5.6.16/lib/php/test/pthreads/tests/norefs.phpt
test /srv/php-5.6.16/lib/php/test/pthreads/tests/normalize-members.phpt
test /srv/php-5.6.16/lib/php/test/pthreads/tests/normal-reads.phpt
test /srv/php-5.6.16/lib/php/test/pthreads/tests/null-member-crash.phpt
test /srv/php-5.6.16/lib/php/test/pthreads/tests/oomethods.phpt
test /srv/php-5.6.16/lib/php/test/pthreads/tests/objects-from-closures.phpt
test /srv/php-5.6.16/lib/php/test/pthreads/tests/pools-default.phpt
test /srv/php-5.6.16/lib/php/test/pthreads/tests/pools.phpt
test /srv/php-5.6.16/lib/php/test/pthreads/tests/runtime-inheritance.phpt
test /srv/php-5.6.16/lib/php/test/pthreads/tests/selective-inheritance.phpt
test /srv/php-5.6.16/lib/php/test/pthreads/tests/shift-pop.phpt
test /srv/php-5.6.16/lib/php/test/pthreads/tests/shutdown-handler.phpt
test /srv/php-5.6.16/lib/php/test/pthreads/tests/stack-by-reference-pass.phpt
test /srv/php-5.6.16/lib/php/test/pthreads/tests/stack-by-reference.phpt
test /srv/php-5.6.16/lib/php/test/pthreads/tests/stateful-fatalities.phpt
test /srv/php-5.6.16/lib/php/test/pthreads/tests/staticmethods.phpt
test /srv/php-5.6.16/lib/php/test/pthreads/tests/static-resolution.phpt
test /srv/php-5.6.16/lib/php/test/pthreads/tests/statics.phpt
test /srv/php-5.6.16/lib/php/test/pthreads/tests/statics-thorn-in-other-side.phpt
test /srv/php-5.6.16/lib/php/test/pthreads/tests/synchronization.phpt
test /srv/php-5.6.16/lib/php/test/pthreads/tests/thorn-in-side.phpt
test /srv/php-5.6.16/lib/php/test/pthreads/tests/thread.phpt
test /srv/php-5.6.16/lib/php/test/pthreads/tests/trait-aliases.phpt
test /srv/php-5.6.16/lib/php/test/pthreads/tests/unset-defaults.phpt
test /srv/php-5.6.16/lib/php/test/pthreads/tests/waiting-timeouts.phpt
test /srv/php-5.6.16/lib/php/test/pthreads/tests/wait.phpt
doc  /srv/php-5.6.16/lib/php/doc/pthreads/LICENSE
doc  /srv/php-5.6.16/lib/php/doc/pthreads/README.md
src  /srv/php-5.6.16/lib/php/extensions/no-debug-zts-20131226/pthreads.so

				

5.1.3. install

安装扩展

# pecl install pthreads			
			

5.1.4. search

# pecl search amqp
Retrieving data...0%
Matched packages, channel pecl.php.net:
=======================================
Package Stable/(Latest) Local
amqp    1.6.1 (stable)        Communicate with any AMQP compliant server			
			




原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。

目录
相关文章
|
9月前
|
Linux PHP
Linux环境下安装pecl工具,PHP扩展便捷安装
Linux环境下安装pecl工具,PHP扩展便捷安装
380 0
|
XML PHP 数据库
PHP扩展模块Pecl、Pear以及Perl的区别是什么?底层原理是什么?
PHP扩展模块Pecl、Pear以及Perl的区别是什么?底层原理是什么?
121 0
|
Ubuntu Linux PHP
安装PECL(包括PHP5以及PHP7),涵盖常用操作系统
安装PECL(包括PHP5以及PHP7),涵盖常用操作系统
128 0
|
PHP
php pecl设置代理,php pear设置代理
php pecl设置代理,php pear设置代理
266 0
|
NoSQL PHP Redis
通过php脚本刷pecl扩展安装次数
通过php脚本刷pecl扩展安装次数
64 0
|
PHP
pecl自动配置php.ini
pecl自动配置php.ini
90 0
PHP:使用pecl安装 swoole
PHP:使用pecl安装 swoole
564 0
|
存储 安全 关系型数据库
如何在Xampp中安装PHP GD(GD Graphics Library)
如何在Xampp中安装PHP GD(GD Graphics Library)
920 0
|
测试技术 网络性能优化 PHP
simps/mqtt v1.1.2 版本发布,首个支持 MQTT v5.0 协议的 PHP library
在此版本中支持了 auth 类型和上个版本中未支持属性,这也意味着 MQTT v5.0 的协议已经支持完毕,后面的版本也就剩下 Bug 修复和代码优化了
288 0
|
安全 PHP
Mac下使用pecl安装PHP的swoole扩展实践
我记得之前用brew安装的PHP,再使用pecl很方便就可以安装swoole,于是我把自带的PHP卸载然后重新使用brew安装,并且安装了pecl,在通过pecl安装了swoole扩展,把这个安装过程记录下来,方便下次使用吧
580 0