I can see that GD library is for images. But I can't see differences between PECL and PEAR. Both have authentication. What are the main differences between two? Why don't they combine them?
我可以看到GD库是用于图像的。但是我看不出果胶和梨的区别。都有认证。两者的主要区别是什么?为什么不把它们结合起来呢?
5 个解决方案
#1
208
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.
PECL表示PHP扩展社区库,它有用C编写的扩展,可以将这些扩展加载到PHP中,以提供附加功能。您需要拥有管理员权限、C编译器和相关的工具链来安装这些扩展。
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.
PEAR是PHP扩展和应用程序存储库,它有用PHP编写的库和代码。您可以简单地下载、安装和包含在您的代码中。
So, yes they are similar, but yet so different :)
是的,它们是相似的,但又如此不同
#2
4
pear is a php classes written in php Whereas pecl is extensions which not written in php and need compiling .
pear是用php编写的php类,而pecl是不使用php编写的扩展,需要编译。
#3
2
PECL is a repository of C extensions for PHP. Those extensions are usually installed via the pecl
command, which is an alias for pear
, with the default channel/repository set to pecl.php.net
.
PECL是PHP的一个C扩展库。这些扩展通常通过pecl命令(pear的别名)安装,默认的通道/存储库设置为pecl.php.net。
PEAR is multiple things:
梨是多个方面:
- The package installer (
pear
command) that is able to install packages from different channels (repositories), including pecl.php.net. Many consider composer the successor of the pear installer. - 包安装程序(pear命令),可以从不同的通道(储存库)安装包,包括pecl.php.net。许多人认为作曲家的梨安装。
- The package repository http://pear.php.net/packages.php with ~600 libraries. Many of them are composer-installable.
- 包存储库http://pear.php.net/packages.php,包含大约600个库。它们中的许多都是可组装的。
- A PHP coding standard that is available with PHP_CodeSniffer.
- PHP_CodeSniffer提供的PHP编码标准。
#4
1
PEAR as-such is not a coding standard. Instead PEAR "follows" a set coding standard that is encouraged within the PHP Community. This is however not the only coding standard that PHP users can follow, the ZF, for eg. recommends a slightly different standard.
梨本身并不是一种编码标准。相反,PEAR遵循的是PHP社区鼓励的一套编码标准。然而,这并不是PHP用户可以遵循的唯一编码标准,例如ZF。建议一个稍微不同的标准。
#5
0
PEAR is also a coding standard ;-) php_codesniffer (install via $pear install php_codesniffer ) is a tool that will scan your code and hilight where it deviates from that or any other supported coding standard.
PEAR也是一种编码标准;-)php_codesniffer(通过$ PEAR安装php_codesniffer)是一种工具,可以扫描您的代码和hilight,使其偏离该标准或任何其他受支持的编码标准。
#1
208
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.
PECL表示PHP扩展社区库,它有用C编写的扩展,可以将这些扩展加载到PHP中,以提供附加功能。您需要拥有管理员权限、C编译器和相关的工具链来安装这些扩展。
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.
PEAR是PHP扩展和应用程序存储库,它有用PHP编写的库和代码。您可以简单地下载、安装和包含在您的代码中。
So, yes they are similar, but yet so different :)
是的,它们是相似的,但又如此不同
#2
4
pear is a php classes written in php Whereas pecl is extensions which not written in php and need compiling .
pear是用php编写的php类,而pecl是不使用php编写的扩展,需要编译。
#3
2
PECL is a repository of C extensions for PHP. Those extensions are usually installed via the pecl
command, which is an alias for pear
, with the default channel/repository set to pecl.php.net
.
PECL是PHP的一个C扩展库。这些扩展通常通过pecl命令(pear的别名)安装,默认的通道/存储库设置为pecl.php.net。
PEAR is multiple things:
梨是多个方面:
- The package installer (
pear
command) that is able to install packages from different channels (repositories), including pecl.php.net. Many consider composer the successor of the pear installer. - 包安装程序(pear命令),可以从不同的通道(储存库)安装包,包括pecl.php.net。许多人认为作曲家的梨安装。
- The package repository http://pear.php.net/packages.php with ~600 libraries. Many of them are composer-installable.
- 包存储库http://pear.php.net/packages.php,包含大约600个库。它们中的许多都是可组装的。
- A PHP coding standard that is available with PHP_CodeSniffer.
- PHP_CodeSniffer提供的PHP编码标准。
#4
1
PEAR as-such is not a coding standard. Instead PEAR "follows" a set coding standard that is encouraged within the PHP Community. This is however not the only coding standard that PHP users can follow, the ZF, for eg. recommends a slightly different standard.
梨本身并不是一种编码标准。相反,PEAR遵循的是PHP社区鼓励的一套编码标准。然而,这并不是PHP用户可以遵循的唯一编码标准,例如ZF。建议一个稍微不同的标准。
#5
0
PEAR is also a coding standard ;-) php_codesniffer (install via $pear install php_codesniffer ) is a tool that will scan your code and hilight where it deviates from that or any other supported coding standard.
PEAR也是一种编码标准;-)php_codesniffer(通过$ PEAR安装php_codesniffer)是一种工具,可以扫描您的代码和hilight,使其偏离该标准或任何其他受支持的编码标准。