php - 为什么作为官方的扩展仓库,Pear只有602个包?

查看:120
本文介绍了php - 为什么作为官方的扩展仓库,Pear只有602个包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问 题

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个包,难道是审核比较严格吗?我搜索了下流行的swoolePhalcon貌似都找不到。(Pecl是有swoole的)。

大家知道是什么原因吗?

===== 补充下 =====

之前问的有点问题,应该是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.

解决方案

swoole有的呀!pecl install swoole 就可以的!

这篇关于php - 为什么作为官方的扩展仓库,Pear只有602个包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆