原文链接:https://rdnote.cn/posts/PHP_Composer_usegae_and_useful_package.html
Composer 是 PHP5 以上 的一个依赖管理工具。它允许你申明项目所依赖的代码库,它会在你的项目中为你安装他们。 Composer 不是一个包管理器。是的,它涉及 "packages" 和 "libraries",但它在每个项目的基础上进行管理,在你项目的某个目录中(例如 vendor )进行安装。默认情况下它不会在全局安装任何东西。因此,这仅仅是一个依赖管理。
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
或者:
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php composer-setup.php --install-dir=/usr/local/bin --filename=composer
然后执行:
#composer -V
#Composer version 1.2.4
这样就说明 Composer 安装成功。
关于 Compsoer 的其他,请查看 https://getcomposer.org/doc/
slim/slim
, Slim 框架。访问:https://packagist.org/packages/slim/slimyiisoft/yii2
, Yii2 框架。访问:https://packagist.org/packages/yiisoft/yii2vrana/notorm
, ORM 框架。访问:https://packagist.org/packages/vrana/notormzf1/zend-db
, ZF1 的数据库封装,很好使用。访问:https://packagist.org/packages/zf1/zend-dbilluminate/database
,全功能的数据访问框架。访问:https://packagist.org/packages/illuminate/databasemongodb/mongodb
, Mongodb 数据库驱动。访问:https://packagist.org/packages/mongodb/mongodbpredis/predis
, Redis 数据库访问,支持 PHP 和 HHVM 。访问:https://packagist.org/packages/predis/predisgabordemooij/redbean
。另一个 ORM 类。访问:https://packagist.org/packages/gabordemooij/redbeanguzzlehttp/guzzle
, HTTP 客户端,很强大。访问:https://packagist.org/packages/guzzlehttp/guzzlermccue/requests
,另一个 HTTP 客户端。访问:https://packagist.org/packages/rmccue/requestsnategood/httpful
,对 REST 友好的 HTTP 客户端。访问:https://github.com/nategood/httpfulphp-curl-class/php-curl-class
,基于 curl 的 HTTP 访问请求。访问:https://github.com/php-curl-class/php-curl-classdanielstjules/stringy
,很强大的字符串处理。访问:https://packagist.org/packages/danielstjules/stringycebe/markdown
,高效的 Markdown 解析库。访问:https://packagist.org/packages/cebe/markdownmichelf/php-markdown
, PHP 的 markdown 库。访问:https://packagist.org/packages/michelf/php-markdownparagonie/random_compat
,随机字符串生成。访问:https://packagist.org/packages/paragonie/random_compathashids/hashids
,生成不重复的随机字符串。访问:https://packagist.org/packages/hashids/hashidsramsey/uuid
,生成 UUID ,支持 V1,3,4,5 等版本。访问:https://packagist.org/packages/ramsey/uuidwyrihaximus/html-compress
。 HTML 压缩,去掉空格,行等。访问:https://packagist.org/packages/wyrihaximus/html-compresssabre/uri
。 Url 解析类。访问:https://packagist.org/packages/sabre/uriua-parser/uap-php
, UserAgent 解析类。访问:https://packagist.org/packages/ua-parser/uap-phpjwage/purl
。 URL 管理类。访问:https://packagist.org/packages/jwage/purltwig/twig
,高效的摸模板引擎。访问:https://packagist.org/packages/twig/twigsmarty/smarty
,Smarty 模板引擎。访问:https://packagist.org/packages/smarty/smartyleague/flysystem
,很强大的文件操作,支持 S3 等。访问:https://packagist.org/packages/league/flysystemcodeguy/upload
,上传类。访问:https://packagist.org/packages/codeguy/uploadfuelphp/upload
,上传类。访问:https://packagist.org/packages/fuelphp/uploaddoctrine/cache
,强大的 Cache 类。访问:https://packagist.org/packages/doctrine/cachezendframework/zend-cache
, ZF 的 cache 类。访问:https://packagist.org/packages/zendframework/zend-cacheilluminate/cache
。 laravel 的 cache 类。访问:https://packagist.org/packages/illuminate/cacheimagine/imagine
,图片处理类。访问:https://packagist.org/packages/imagine/imagineintervention/image
,强大的图片处理类。访问:https://packagist.org/packages/intervention/imagekosinix/grafika
,很好用的图片处理类。访问:https://packagist.org/packages/kosinix/grafikagregwar/image
,图片处理。访问:https://packagist.org/packages/gregwar/imageaferrandini/phpqrcode
,二维码生成。访问:https://packagist.org/packages/aferrandini/phpqrcodegregwar/captcha
,很好使用的验证码生成类。访问:https://packagist.org/packages/gregwar/captchagoogle/recaptcha
, google 的验证码类。访问:https://packagist.org/packages/google/recaptchageoip2/geoip2
, GEOIP 类。访问:https://packagist.org/packages/geoip2/geoip2willdurand/geocoder
, Geo 类库。访问:https://packagist.org/packages/willdurand/geocoderfzaninotto/faker
,一些有用的函数处理。访问:https://packagist.org/packages/fzaninotto/fakerlstrojny/functional-php
,一些有用的 PHP 函数。访问:https://packagist.org/packages/lstrojny/functional-phpmoneyphp/money
,货币适配处理。访问:https://packagist.org/packages/moneyphp/moneyngfw/recipe
,一些有用的函数。访问:https://packagist.org/packages/ngfw/recipejimmiw/php-time-ago
,很人性的时间戳格式化。访问:https://packagist.org/packages/jimmiw/php-time-agonesbot/carbon
,简单的日期处理库。访问:https://packagist.org/packages/nesbot/carbondefuse/php-encryption
,加密解密类。访问:https://packagist.org/packages/defuse/php-encryptionphpseclib/phpseclib
,加密解密类。访问:https://packagist.org/packages/phpseclib/phpseclibpasswordlib/passwordlib
,密码生成类。访问:https://packagist.org/packages/passwordlib/passwordlibswiftmailer/swiftmailer
,很好用的邮件发送。访问:https://packagist.org/packages/swiftmailer/swiftmailerphpmailer/phpmailer
,全功能的邮件发送类。访问:https://packagist.org/packages/phpmailer/phpmailerhbattat/verifyemail
,邮件地址真实性验证。访问:https://packagist.org/packages/hbattat/verifyemailphp-amqplib/php-amqplib
, RabbitMQ 类库。访问:https://packagist.org/packages/php-amqplib/php-amqplibtracy/tracy
,很帮的调试工具。访问:https://packagist.org/packages/tracy/tracyfilp/whoops
,错误调试工具,访问:https://packagist.org/packages/filp/whoopshautelook/phpass
,密码生成类。访问:https://packagist.org/packages/hautelook/phpasslusitanian/oauth
, Oauth1,2 类库。访问:https://packagist.org/packages/lusitanian/oauthget-stream/stream
,一个 Stream 类库。访问:https://packagist.org/packages/get-stream/stream 1
mx1700 2017-02-13 21:12:44 +08:00 via Android
不错,整理的很全面,收藏
|
2
mingyun 2017-02-13 23:13:56 +08:00
laravel +1
|
3
abc123ccc 2017-02-14 09:23:59 +08:00
收藏一下,不错
|
4
97dog 2017-02-14 09:59:42 +08:00
手工复制下来。
|
5
miaotaizi 2017-02-14 10:19:22 +08:00 via iPhone
扯这些真的没啥用,还不如来点实际的,比如如何使用 composer 镜像,或者好的镜像服务器之类……
|
6
assad OP 整理一下,使用起来更方便的
|
7
assad OP 更新啦!!!
|