Pear(PHP Extension and Application Repository), 作為PHP開發(fā)者,我工作大半年后才知道這個(gè)東西...不知道是我太菜,還是真的是推廣的不行,還是確實(shí)不好用...
按理下面的體驗(yàn)方式應(yīng)該很棒啊(或者說很多擴(kuò)展都需要另外配置configure參數(shù)?)
pecl info redis
pecl install redis
pecl unisntall redis
我之前長期都是到github找擴(kuò)展源碼倉庫,clone下來,phpize,configure(可能部分需要配置參數(shù)),make,make install(可選)...
按理說應(yīng)該遠(yuǎn)不止602個(gè)包,難道是審核比較嚴(yán)格嗎?我搜索了下流行的swoole和Phalcon貌似都找不到。(Pecl是有swoole的)。
大家知道是什么原因嗎?
===== 補(bǔ)充下 =====
之前問的有點(diǎn)問題,應(yīng)該是Pecl(301)和Pear(602),難兄難弟,Pear可能是被Composer搶占市場(chǎng)了。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.
- 1 回答
- 0 關(guān)注
- 411 瀏覽
添加回答
舉報(bào)
0/150
提交
取消