composer
安装
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
常用包
Web FrameWorks
- slim/slim, Slim 框架。访问:https://packagist.org/packages/slim/slim
- yiisoft/yii2, Yii2 框架。访问:https://packagist.org/packages/yiisoft/yii2
Database
- vrana/notorm, ORM 框架。访问:https://packagist.org/packages/vrana/notorm
- zf1/zend-db, ZF1 的数据库封装,很好使用。访问:https://packagist.org/packages/zf1/zend-db
- illuminate/database,全功能的数据访问框架。访问:https://packagist.org/packages/illuminate/database
- mongodb/mongodb, Mongodb 数据库驱动。访问:https://packagist.org/packages/mongodb/mongodb
- predis/predis, Redis 数据库访问,支持 PHP 和 HHVM 。访问:https://packagist.org/packages/predis/predis
- gabordemooij/redbean。另一个 ORM 类。访问:https://packagist.org/packages/gabordemooij/redbean
Networks
- guzzlehttp/guzzle, HTTP 客户端,很强大。访问:https://packagist.org/packages/guzzlehttp/guzzle
- rmccue/requests,另一个 HTTP 客户端。访问:https://packagist.org/packages/rmccue/requests
- nategood/httpful,对 REST 友好的 HTTP 客户端。访问:https://github.com/nategood/httpful
- php-curl-class/php-curl-class,基于 curl 的 HTTP 访问请求。访问:https://github.com/php-curl-class/php-curl-class
String
- danielstjules/stringy,很强大的字符串处理。访问:https://packagist.org/packages/danielstjules/stringy
- cebe/markdown,高效的 Markdown 解析库。访问:https://packagist.org/packages/cebe/markdown
- michelf/php-markdown, PHP 的 markdown 库。访问:https://packagist.org/packages/michelf/php-markdown
- paragonie/random_compat,随机字符串生成。访问:https://packagist.org/packages/paragonie/random_compat
- hashids/hashids,生成不重复的随机字符串。访问:https://packagist.org/packages/hashids/hashids
- ramsey/uuid ,生成 UUID ,支持 V1,3,4,5 等版本。访问:https://packagist.org/packages/ramsey/uuid
- wyrihaximus/html-compress。 HTML 压缩,去掉空格,行等。访问:https://packagist.org/packages/wyrihaximus/html-compress
- sabre/uri。 Url 解析类。访问:https://packagist.org/packages/sabre/uri
- ua-parser/uap-php, UserAgent 解析类。访问:https://packagist.org/packages/ua-parser/uap-php
- jwage/purl。 URL 管理类。访问:https://packagist.org/packages/jwage/purl
Temppate
- Twig ,twig/twig,高效的摸模板引擎。访问:https://packagist.org/packages/twig/twig
- Smarty,smarty/smarty,Smarty 模板引擎。访问:https://packagist.org/packages/smarty/smarty
Files
- league/flysystem,很强大的文件操作,支持 S3 等。访问:https://packagist.org/packages/league/flysystem
- codeguy/upload,上传类。访问:https://packagist.org/packages/codeguy/upload
- fuelphp/upload,上传类。访问:https://packagist.org/packages/fuelphp/upload
Caching
- doctrine/cache,强大的 Cache 类。访问:https://packagist.org/packages/doctrine/cache
- zendframework/zend-cache, ZF 的 cache 类。访问:https://packagist.org/packages/zendframework/zend-cache
- illuminate/cache。 laravel 的 cache 类。访问:https://packagist.org/packages/illuminate/cache
Image
- imagine/imagine,图片处理类。访问:https://packagist.org/packages/imagine/imagine
- intervention/image,强大的图片处理类。访问:https://packagist.org/packages/intervention/image
- kosinix/grafika,很好用的图片处理类。访问:https://packagist.org/packages/kosinix/grafika
- gregwar/image,图片处理。访问:https://packagist.org/packages/gregwar/image
- aferrandini/phpqrcode,二维码生成。访问:https://packagist.org/packages/aferrandini/phpqrcode
Captcha
- gregwar/captcha,很好使用的验证码生成类。访问:https://packagist.org/packages/gregwar/captcha
- google/recaptcha, google 的验证码类。访问:https://packagist.org/packages/google/recaptcha
GEO
- geoip2 ,geoip2/geoip2, GEOIP 类。访问:https://packagist.org/packages/geoip2/geoip2
- geocoder ,willdurand/geocoder, Geo 类库。访问:https://packagist.org/packages/willdurand/geocoder
Tools
- fzaninotto/faker,一些有用的函数处理。访问:https://packagist.org/packages/fzaninotto/faker
- lstrojny/functional-php,一些有用的 PHP 函数。访问:https://packagist.org/packages/lstrojny/functional-php
- moneyphp/money,货币适配处理。访问:https://packagist.org/packages/moneyphp/money
- ngfw/recipe,一些有用的函数。访问:https://packagist.org/packages/ngfw/recipe
Date
- jimmiw/php-time-ago,很人性的时间戳格式化。访问:https://packagist.org/packages/jimmiw/php-time-ago
- nesbot/carbon,简单的日期处理库。访问:https://packagist.org/packages/nesbot/carbon
Secure
- defuse/php-encryption,加密解密类。访问:https://packagist.org/packages/defuse/php-encryption
- phpseclib/phpseclib,加密解密类。访问:https://packagist.org/packages/phpseclib/phpseclib
- passwordlib/passwordlib,密码生成类。访问:https://packagist.org/packages/passwordlib/passwordlib
- swiftmailer/swiftmailer,很好用的邮件发送。访问:https://packagist.org/packages/swiftmailer/swiftmailer
- phpmailer/phpmailer,全功能的邮件发送类。访问:https://packagist.org/packages/phpmailer/phpmailer
- hbattat/verifyemail,邮件地址真实性验证。访问:https://packagist.org/packages/hbattat/verifyemail
Queue
- php-amqplib/php-amqplib, RabbitMQ 类库。访问:https://packagist.org/packages/php-amqplib/php-amqplib
Debug
- tracy/tracy,很帮的调试工具。访问:https://packagist.org/packages/tracy/tracy
- filp/whoops,错误调试工具,访问:https://packagist.org/packages/filp/whoops
Other
- hautelook/phpass,密码生成类。访问:https://packagist.org/packages/hautelook/phpass
- lusitanian/oauth, Oauth1,2 类库。访问:https://packagist.org/packages/lusitanian/oauth
- get-stream/stream,一个 Stream 类库。访问:https://packagist.org/packages/get-stream/stream