原文链接: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这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.