9個(gè)開(kāi)發(fā)人員應(yīng)該知道的PHP庫(kù)
9個(gè)開(kāi)發(fā)人員應(yīng)該知道的PHP庫(kù)大多都是國(guó)外的資源,不過(guò)有了這些PHP庫(kù)的支持,大家今后進(jìn)行開(kāi)發(fā)一定能加快速度,不會(huì)進(jìn)行簡(jiǎn)單的重復(fù)勞動(dòng)。
1. ReCAPTCHA
The reCAPTCHA 庫(kù)讓你可以為網(wǎng)站創(chuàng)建高級(jí)的CAPTCHA系統(tǒng),這個(gè)系統(tǒng)其實(shí)是用來(lái)生成驗(yàn)證信息的,甚至包括語(yǔ)音驗(yàn)證,下圖就是個(gè)好例子。
當(dāng)然還有reCAPTCHA 服務(wù)可以使用,其提供易用的免費(fèi)API,值得在你的網(wǎng)站試試。
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.
下載 ReCAPTCHA | 獲得 API Key | 文檔
2. Akismet
Akismet 是個(gè)供小站點(diǎn)使用的免費(fèi)服務(wù),用來(lái)修改規(guī)范將加入數(shù)據(jù)庫(kù)的評(píng)論(防止惡意評(píng)論)。這個(gè)庫(kù)一直在改善。
Akismet is a free service that can be used on most small sites - or used on larger sites for a small fee. The library works by comparing comments to a database of existing spam comments provided by other users. The library can then decide to flag the comment for moderation or allow it through. Everyday the library grows and the service improves.
介紹 Akismet
3. Services_JSON
JSON是人類(lèi)能容易理解的信息傳遞格式。不過(guò)如果你并未使用5.2.0以后版本的php(從那以后php有了JSON官方支持),那么就應(yīng)該試試這個(gè)庫(kù)。
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.
查看 Services_JSON
4. Smarty
Smarty就是鼎鼎大名的官方模版庫(kù)了。它提供了不少有用的功能。其實(shí)使用php的人都該瞧瞧。
Smarty is a template engine which was formally a sub-project of the PHP project. Smarty provides many powerful features such as loops, variables, and a great caching system. The library has many years under its belt and is nearing its version three release.
下載 Smarty | 觀看文檔
5. pChart
pChart是極其有名的數(shù)據(jù)圖形庫(kù)。它能為數(shù)據(jù)展示提供各種美麗的圖表。其實(shí)使用php的人都一定會(huì)碰到使用它的情況。
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.
下載 pChart | 查看文檔| View Demos
6. SimplePie
SimplePie 讓你輕松提取內(nèi)容(好比RSS feeds)。它能和多種語(yǔ)言交互,也能處理各種格式的feed。
SimplePie allows you to easily pull in syndicated content (like RSS feeds). It's also been integrated with a lot of different platforms and language sets; it should be able to deal almost any feed in a variety of ways.
下載 SimplePie | 查看文檔| 為獨(dú)特的RSS Feeds拓展SimplePie
7. XML-RPC PHP Library
有時(shí)你需要使用XML-RPC技術(shù)去和其他網(wǎng)站交互,那么試試這個(gè)XML-RPC PHP 庫(kù)吧。
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.
下載 XML-RPC PHP | 查看文檔
8. Amazon S3
Amazon有名的云計(jì)算平臺(tái)叫做“S3”。這里就有Amazon S3 庫(kù) 讓你不用任何附加工具就可以使用云,上傳大量數(shù)據(jù)文件。
Amazon provides a nice service to work in the cloud, called "S3". Nettuts+ even uses it to store the images seen in each article. There is a nice Amazon S3 library that doesn't require any third party tools and allows for large file uploads.
下載 Amazon S3 PHP Class
9. PHPMailer
大多數(shù)web應(yīng)用都在使用php的mail()函數(shù)。PHPMailer讓你更加靈活地處理Email的發(fā)出,不但支持任何格式,還可以加入附件并自定義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.
下載 PHPMailer | 查看文檔
原文標(biāo)題:9個(gè)你應(yīng)該知道的PHP庫(kù)
鏈接:http://www.cnblogs.com/biko-zc/archive/2009/09/10/1563964.html
【編輯推薦】
- 9月編程語(yǔ)言排行榜:PHP的歷史性突破
- 51CTO Web開(kāi)發(fā)專(zhuān)區(qū)
- 專(zhuān)題:PHP開(kāi)發(fā)基礎(chǔ)入門(mén)
- PHP 5.3.0發(fā)布 新增命名空間等多項(xiàng)特性
- PHP命名空間規(guī)則解析及高級(jí)功能