9個開發人員應該知道的PHP庫_PHP教程

來源:互聯網
上載者:User
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.

498)this.width=498;' onmousewheel = 'javascript:return big(this)' style="WIDTH: 327px" alt=ReCAPTCHA src="http://www.bkjia.com/uploadfile/2013/0904/20130904094623768.png" goog_docs_charindex="672">

下載 ReCAPTCHA | 獲得 API Key | 文檔

2. Akismet

Akismet 是個供小網站使用的免費服務,用來修改規範將加入資料庫的評論(防止惡意評論)。這個庫一直在改善。

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.

498)this.width=498;' onmousewheel = 'javascript:return big(this)' style="WIDTH: 455px" alt=Akismet src="http://www.bkjia.com/uploadfile/2013/0904/20130904094623357.jpg" goog_docs_charindex="1150">

介紹 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.

498)this.width=498;' onmousewheel = 'javascript:return big(this)' style="WIDTH: 404px" alt=JSON src="http://www.bkjia.com/uploadfile/2013/0904/20130904094623255.png" goog_docs_charindex="1583">

查看 Services_JSON

4. Smarty

Smarty就是鼎鼎大名的官方模版庫了。它提供了不少有用的功能。其實使用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.

498)this.width=498;' onmousewheel = 'javascript:return big(this)' style="WIDTH: 257px" alt=Smarty src="http://www.bkjia.com/uploadfile/2013/0904/20130904094623338.png" goog_docs_charindex="1955">

下載 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.

498)this.width=498;' onmousewheel = 'javascript:return big(this)' style="WIDTH: 599px" alt=pChart src="http://www.bkjia.com/uploadfile/2013/0904/20130904094623839.png" goog_docs_charindex="2493">

下載 pChart | 查看文檔| View Demos

6. SimplePie

SimplePie 讓你輕鬆提取內容(好比RSS feeds)。它能和多種語言互動,也能處理各種格式的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.

498)this.width=498;' onmousewheel = 'javascript:return big(this)' style="WIDTH: 449px" alt=SimplePie src="http://www.bkjia.com/uploadfile/2013/0904/20130904094623855.png" goog_docs_charindex="2836">

下載 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.

498)this.width=498;' onmousewheel = 'javascript:return big(this)' style="WIDTH: 231px" alt=XML-RPC src="http://www.bkjia.com/uploadfile/2013/0904/20130904094623978.png" goog_docs_charindex="3185">

下載 XML-RPC PHP | 查看文檔

8. Amazon S3

Amazon有名的雲端運算平台叫做“S3”。這裡就有Amazon S3 庫 讓你不用任何附加工具就可以使用雲,上傳大量資料檔案。

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.

498)this.width=498;' onmousewheel = 'javascript:return big(this)' style="WIDTH: 563px" alt="Amazon S3" src="http://www.bkjia.com/uploadfile/2013/0904/20130904094623464.png" goog_docs_charindex="3555">

下載 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.

498)this.width=498;' onmousewheel = 'javascript:return big(this)' style="WIDTH: 245px" alt="Sending Mail" src="http://www.bkjia.com/uploadfile/2013/0904/20130904094623856.png" goog_docs_charindex="3980">

下載 PHPMailer | 查看文檔

原文標題:9個你應該知道的PHP庫

連結:http://www.cnblogs.com/biko-zc/archive/2009/09/10/1563964.html


http://www.bkjia.com/PHPjc/446593.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/446593.htmlTechArticle9個開發人員應該知道的PHP庫大多都是國外的資源,不過有了這些PHP庫的支援,大家今後進行開發一定能加快速度,不會進行簡單的重複勞動...

  • 相關文章

    聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.