Pear(PHP Extension and Application Repository), 作为PHP开发者,我工作大半年后才知道这个东西...不知道是我太菜,还是真的是推广的不行,还是确实不好用...
按理下面的体验方式应该很棒啊(或者说很多扩展都需要另外配置configure参数?)
pecl info redis
pecl install redis
pecl unisntall redis
我之前长期都是到github
找扩展源码仓库,clone下来,phpize,configure(可能部分需要配置参数),make,make install(可选)...
按理说应该远不止602
个包,难道是审核比较严格吗?我搜索了下流行的(Pecl是有swoole的)。swoole
和Phalcon
貌似都找不到。
大家知道是什么原因吗?
===== 补充下 =====
之前问的有点问题,应该是Pecl(301)和Pear(602),难兄难弟,Pear可能是被Composer抢占市场了。Pecl可能写的人太少了吧。
PECL stands for PHP Extension Community Library, it has extensions written in C, that can be loaded into PHP to provide additional functionality. You need to have administrator rights, a C compiler and associated toolchain to install those extensions.
PEAR is PHP Extension and Application Repository, it has libraries and code written IN php. Those you can simply download, install and include in your code.
阿波罗的战车