搜尋
首頁php教程php手册9个开发人员应该知道的PHP库

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


陳述
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn

熱AI工具

Undresser.AI Undress

Undresser.AI Undress

人工智慧驅動的應用程序,用於創建逼真的裸體照片

AI Clothes Remover

AI Clothes Remover

用於從照片中去除衣服的線上人工智慧工具。

Undress AI Tool

Undress AI Tool

免費脫衣圖片

Clothoff.io

Clothoff.io

AI脫衣器

AI Hentai Generator

AI Hentai Generator

免費產生 AI 無盡。

熱門文章

R.E.P.O.能量晶體解釋及其做什麼(黃色晶體)
3 週前By尊渡假赌尊渡假赌尊渡假赌
R.E.P.O.最佳圖形設置
3 週前By尊渡假赌尊渡假赌尊渡假赌
R.E.P.O.如果您聽不到任何人,如何修復音頻
3 週前By尊渡假赌尊渡假赌尊渡假赌
WWE 2K25:如何解鎖Myrise中的所有內容
4 週前By尊渡假赌尊渡假赌尊渡假赌

熱工具

SublimeText3 Mac版

SublimeText3 Mac版

神級程式碼編輯軟體(SublimeText3)

DVWA

DVWA

Damn Vulnerable Web App (DVWA) 是一個PHP/MySQL的Web應用程序,非常容易受到攻擊。它的主要目標是成為安全專業人員在合法環境中測試自己的技能和工具的輔助工具,幫助Web開發人員更好地理解保護網路應用程式的過程,並幫助教師/學生在課堂環境中教授/學習Web應用程式安全性。 DVWA的目標是透過簡單直接的介面練習一些最常見的Web漏洞,難度各不相同。請注意,該軟體中

SublimeText3漢化版

SublimeText3漢化版

中文版,非常好用

mPDF

mPDF

mPDF是一個PHP庫,可以從UTF-8編碼的HTML產生PDF檔案。原作者Ian Back編寫mPDF以從他的網站上「即時」輸出PDF文件,並處理不同的語言。與原始腳本如HTML2FPDF相比,它的速度較慢,並且在使用Unicode字體時產生的檔案較大,但支援CSS樣式等,並進行了大量增強。支援幾乎所有語言,包括RTL(阿拉伯語和希伯來語)和CJK(中日韓)。支援嵌套的區塊級元素(如P、DIV),

EditPlus 中文破解版

EditPlus 中文破解版

體積小,語法高亮,不支援程式碼提示功能