9个开发人员应该知道的PHP库

作者: Kevin 分类: php框架与应用 发布时间: 2016-01-21 05:43

9个开发人员应该知道的PHP库大多都是国外的资源,不过有了这些PHP库的支持,大家今后进行开发一定能加快速度,不会进行简单的重复劳动。

1. ReCAPTCHA

The reCAPTCHA 库让你可以为网站创建高级的CAPTCHA系统,这个系统其实是用来生成验证信息的,甚至包括语音验证,下图就是个好例子。

当然还有reCAPTCHA 服务可以使用,其提供易用的免费API,值得在你的网站试试。

The reCAPTCHA library allows you to integrate an advanced CAPTCHA system on your website, which helps keep spam bots from posting on your website. The visual CAPTCHA also includes a helpful audio feature.In addition to the reCAPTCHA service, the library also includes an API for the “Mailhide” service which hides emails from spammers.The API is free and easy to implement on your site and also gives back to the community as it translates scanned books.

NoteBlog498)this.width=498;’ onmousewheel = ‘javascript:return big(this)’ style=”WIDTH: 455px” src=”http://blog.1v2d.com/wp-content/uploads/2015/12/20130904094623357.jpg” goog_docs_charindex=”1150″ alt=”9个开发人员应该知道的PHP库”> 

介绍 Akismet

3. Services_JSON

JSON是人类能容易理解的信息传递格式。不过如果你并未使用5.2.0以后版本的php(从那以后php有了JSON官方支持),那么就应该试试这个库。

JSON is a handy format for transmitting human readable data. Not everyone has made the move to PHP5 which has included JSON support since version 5.2.0. This small library enables you to implement JSON functionality into your own applications if you are not using a recent version of PHP.

NoteBlog498)this.width=498;’ onmousewheel = ‘javascript:return big(this)’ style=”WIDTH: 257px” src=”http://blog.1v2d.com/wp-content/uploads/2015/12/20130904094623338.png” goog_docs_charindex=”1955″ alt=”9个开发人员应该知道的PHP库”> 

下载 Smarty | 观看文档

5. pChart

pChart是极其有名的数据图形库。它能为数据展示提供各种美丽的图表。其实使用php的人都一定会碰到使用它的情况。

In addition to displaying text data in your application, it can also be useful to show data in a more visual format. This can be done with a slew of options like pie charts and bar graphs. pChart is a script that allows you to create charts and graphs from SQL queries or manually provided details. The script is baked by GD to create the images. There is also a main focus on the aesthetics; so it creates some beautiful work.

NoteBlog498)this.width=498;’ onmousewheel = ‘javascript:return big(this)’ style=”WIDTH: 449px” src=”http://blog.1v2d.com/wp-content/uploads/2015/12/20130904094623855.png” goog_docs_charindex=”2836″ alt=”9个开发人员应该知道的PHP库”> 

下载 SimplePie | 查看文档为独特的RSS Feeds拓展SimplePie 

7. XML-RPC PHP Library

有时你需要使用XML-RPC技术去和其他网站交互,那么试试这个XML-RPC PHP 库吧。

Applications sometimes use functionality to “ping” other sites when an action has occurred (known as trackbacks). This is done by using a protocol called XML-RPC. The XML-RPC PHP library also allows you to integrate the functionality into your website.

NoteBlog498)this.width=498;’ onmousewheel = ‘javascript:return big(this)’ style=”WIDTH: 563px” src=”http://blog.1v2d.com/wp-content/uploads/2015/12/20130904094623464.png” goog_docs_charindex=”3555″ alt=”9个开发人员应该知道的PHP库”> 

下载 Amazon S3 PHP Class

9. PHPMailer

大多数web应用都在使用php的mail()函数。PHPMailer让你更加灵活地处理Email的发出,不但支持任何格式,还可以加入附件并自定义header。

Most applications send out an email in some form, but usually rely on the basic php mail() function. PHPMailer is an existing powerful class that allows you to send different types of emails – from basic text to rich formatted emails. These emails can also include attachments or custom headers.

NoteBlog

64 − 56 =

更多阅读
标签云