{"id":442,"date":"2013-07-02T17:22:40","date_gmt":"2013-07-02T09:22:40","guid":{"rendered":"https:\/\/yanjingang.com\/blog\/?p=442"},"modified":"2016-03-09T17:24:19","modified_gmt":"2016-03-09T09:24:19","slug":"20%e4%b8%aa%e5%ae%9e%e7%94%a8%e7%9a%84php%e5%ba%93","status":"publish","type":"post","link":"https:\/\/yanjingang.com\/blog\/?p=442","title":{"rendered":"20\u4e2a\u5b9e\u7528\u7684PHP\u5e93"},"content":{"rendered":"<p>PHP\u5f00\u53d1\u6280\u672f\u5728\u8fd9\u51e0\u5e74\u4f9d\u7136\u6bd4\u8f83\u706b\u70ed\uff0c\u4e5f\u6709\u8d8a\u6765\u8d8a\u591a\u7684\u5f00\u53d1\u8005\u52a0\u5165\u5230\u4e86PHP\u5f00\u53d1\u9635\u8425\uff0c\u5728\u590d\u6742\u7684\u6846\u67b6\u548c\u5197\u4f59\u7684\u4ee3\u7801\u9762\u524d\uff0c\u9009\u62e9\u5408\u9002\u7684PHP\u5e93\u5c31\u663e\u5f97 \u5c24\u4e3a\u91cd\u8981\uff0c\u4f18\u79c0\u7684PHP\u5e93\u53ef\u4ee5\u4e3a\u4f60\u8282\u7701\u5f88\u591a\u4ee3\u7801\u548c\u7f16\u7801\u65f6\u95f4\u3002<\/p>\n<p>\u4e0b\u9762\u662f\u4e00\u4e9b\u975e\u5e38\u6709\u7528\u7684PHP\u7c7b\u5e93\uff0c\u76f8\u4fe1\u4e00\u5b9a\u53ef\u4ee5\u4e3a\u4f60\u7684WEB\u5f00\u53d1\u63d0\u4f9b\u66f4\u597d\u548c\u66f4\u4e3a\u5feb\u901f\u7684\u65b9\u6cd5\u3002<\/p>\n<p><strong>\u56fe\u8868\u5e93<\/strong><\/p>\n<p>\u4e0b\u9762\u7684\u7c7b\u5e93\u53ef\u4ee5\u8ba9\u4f60\u5f88\u7b80\u7684\u521b\u5efa\u590d\u6742\u7684\u56fe\u8868\u548c\u56fe\u7247\u3002\u5f53\u7136\uff0c\u5b83\u4eec\u9700\u8981GD\u5e93\u7684\u652f\u6301\u3002<\/p>\n<ol>\n<li>pChart \u2013 \u4e00\u4e2a\u53ef\u4ee5\u521b\u5efa\u7edf\u8ba1\u56fe\u7684\u5e93\u3002<\/li>\n<li>Libchart \u2013 \u8fd9\u4e5f\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u7edf\u8ba1\u56fe\u5e93\u3002<\/li>\n<li>JpGraph \u2013 \u4e00\u4e2a\u9762\u5411\u5bf9\u8c61\u7684\u56fe\u7247\u521b\u5efa\u7c7b\u3002<\/li>\n<li>Open Flash Chart \u2013 \u8fd9\u662f\u4e00\u4e2a\u57fa\u4e8eFlash\u7684\u7edf\u8ba1\u56fe\u3002<\/li>\n<\/ol>\n<p><strong>RSS \u89e3\u6790<\/strong><\/p>\n<p>\u89e3\u91caRSS\u5e76\u662f\u4e00\u4ef6\u5f88\u5355\u8c03\u7684\u4e8b\u60c5\uff0c\u4e0d\u8fc7\u5e78\u597d\u4f60\u6709\u4e0b\u9762\u7684\u7c7b\u5e93\u53ef\u4ee5\u5e2e\u52a9\u4f60\u65b9\u4fbf\u5730\u8bfb\u53d6RSS\u7684Feed\u3002<\/p>\n<ol>\n<li>MagpieRSS \u2013 \u5f00\u6e90\u7684PHP\u7248RSS\u89e3\u6790\u5668\uff0c\u636e\u8bf4\u529f\u80fd\u5f3a\u5927\uff0c\u672a\u9a8c\u8bc1\u3002<\/li>\n<li>SimplePie \u2013 \u8fd9\u662f\u4e00\u4e2a\u975e\u5e38\u5feb\u901f\uff0c\u800c\u4e14\u6613\u7528\u7684RSS\u548cAtom \u89e3\u6790\u5e93\u3002<\/li>\n<\/ol>\n<p><strong>\u7f29\u7565\u56fe\u751f\u6210<\/strong><\/p>\n<ol>\n<li>phpThumb \u2013 \u529f\u80fd\u5f88\u5f3a\u5927\uff0c\u5982\u4f55\u5f3a\u5927\u8fd8\u662f\u81ea\u5df1\u53bb\u4f53\u4f1a\u5427\u3002<\/li>\n<\/ol>\n<p><strong>\u652f\u4ed8<\/strong><\/p>\n<p>\u4f60\u7684\u7f51\u7ad9\u9700\u8981\u5904\u7406\u652f\u4ed8\u65b9\u9762\u7684\u4e8b\u60c5\uff1f\u9700\u8981\u4e00\u4e2a\u548c\u652f\u4ed8\u7f51\u5173\u7684\u7a0b\u5e8f\uff1f\u4e0b\u9762\u8fd9\u4e2a\u7a0b\u5e8f\u53ef\u4ee5\u5e2e\u5230\u4f60\u3002<\/p>\n<ol>\n<li>PHP Payment Library \u2013 \u652f\u6301Paypal, Authorize.net\u00a0\u548c2Checkout (2CO)<\/li>\n<\/ol>\n<p><strong>OpenID<\/strong><\/p>\n<ol>\n<li>PHP-OpenID \u2013 \u652f\u6301OpenID\u7684\u4e00\u4e2aPHP\u5e93\u3002OpenID\u662f\u5e2e\u52a9\u4f60\u4f7f\u7528\u76f8\u540c\u7684\u7528\u6237\u540d\u548c\u53e3\u4ee4\u767b\u5f55\u4e0d\u540c\u7684\u7f51\u7ad9\u7684\u4e00\u79cd\u89e3\u51b3\u65b9\u6848\u3002\u5982\u679c\u4f60\u5bf9OpenID\u4e0d\u719f\u6089\u7684\u8bdd\uff0c\u4f60\u53ef\u4ee5\u5230\u8fd9\u91cc\u770b\u770b\uff1a<a href=\"http:\/\/openid.net.cn\/\" target=\"_blank\">http:\/\/openid.net.cn\/<\/a><\/li>\n<\/ol>\n<p><strong>\u6570\u636e\u4e3a\u62bd\u8c61\/\u5bf9\u8c61\u5173\u7cfb\u6620\u5c04ORM<\/strong><\/p>\n<ol>\n<li>ADOdb \u2013 \u6570\u636e\u5e93\u62bd\u8c61<\/li>\n<li>Doctrine \u2013 \u5bf9\u8c61\u5173\u7cfb\u6620\u5c04Object relational mapper (ORM)\u00a0\uff0c\u9700\u8981 PHP 5.2.3+ \u7248\u672c\uff0c\u4e00\u4e2a\u975e\u5e38\u5f3a\u5927\u7684database abstraction layer (DBAL).<\/li>\n<li>Propel \u2013 \u5bf9\u8c61\u5173\u7cfb\u6620\u5c04\u6846\u67b6- PHP5<\/li>\n<li>Outlet \u2013 \u4e5f\u662f\u5173\u4e8e\u5bf9\u8c61\u5173\u7cfb\u6620\u5c04\u7684\u4e00\u4e2a\u5de5\u5177\u3002<\/li>\n<\/ol>\n<p>\u6ce8\uff1a\u5bf9\u8c61\u5173\u7cfb\u6620\u5c04\uff08Object Relational Mapping\uff0c\u7b80\u79f0ORM\uff09\u662f\u4e00\u79cd\u4e3a\u4e86\u89e3\u51b3\u9762\u5411\u5bf9\u8c61\u4e0e\u5173\u7cfb\u6570\u636e\u5e93\u5b58\u5728\u7684\u4e92\u4e0d\u5339\u914d\u7684\u73b0\u8c61\u7684\u6280\u672f\u3002 \u7b80\u5355\u7684\u8bf4\uff0cORM\u662f\u901a\u8fc7\u4f7f\u7528\u63cf\u8ff0\u5bf9\u8c61\u548c\u6570\u636e\u5e93\u4e4b\u95f4\u6620\u5c04\u7684\u5143\u6570\u636e\uff0c\u5c06\u7a0b\u5e8f\u4e2d\u7684\u5bf9\u8c61\u81ea\u52a8\u6301\u4e45\u5316\u5230\u5173\u7cfb\u6570\u636e\u5e93\u4e2d\u3002\u672c\u8d28\u4e0a\u5c31\u662f\u5c06\u6570\u636e\u4ece\u4e00\u79cd\u5f62\u5f0f\u8f6c\u6362\u5230\u53e6\u5916\u4e00\u79cd\u5f62 \u5f0f\u3002 \u8fd9\u4e5f\u540c\u65f6\u6697\u793a\u8005\u989d\u5916\u7684\u6267\u884c\u5f00\u9500\uff1b\u7136\u800c\uff0c\u5982\u679cORM\u4f5c\u4e3a\u4e00\u79cd\u4e2d\u95f4\u4ef6\u5b9e\u73b0\uff0c\u5219\u4f1a\u6709\u5f88\u591a\u673a\u4f1a\u505a\u4f18\u5316\uff0c\u800c\u8fd9\u4e9b\u5728\u624b\u5199\u7684\u6301\u4e45\u5c42\u5e76\u4e0d\u5b58\u5728\u3002 \u66f4\u91cd\u8981\u7684\u662f\u7528\u4e8e\u63a7\u5236\u8f6c\u6362\u7684\u5143\u6570\u636e\u9700\u8981\u63d0\u4f9b\u548c\u7ba1\u7406\uff1b\u4f46\u662f\u540c\u6837\uff0c\u8fd9\u4e9b\u82b1\u8d39\u8981\u6bd4\u7ef4\u62a4\u624b\u5199\u7684\u65b9\u6848\u8981\u5c11\uff1b\u800c\u4e14\u5c31\u7b97\u662f\u9075\u5b88ODMG\u89c4\u8303\u7684\u5bf9\u8c61\u6570\u636e\u5e93\u4f9d\u7136\u9700\u8981\u7c7b\u7ea7\u522b\u7684\u5143 \u6570\u636e\u3002<\/p>\n<p><strong>PDF \u751f\u6210\u5668<\/strong><\/p>\n<ol>\n<li>FPDF \u2013 \u8fd9\u91cf\u4e00\u4e2a\u53ef\u4ee5\u8ba9\u4f60\u751f\u6210PDF\u7684\u7eafPHP\u7c7b\u5e93\u3002<\/li>\n<\/ol>\n<p><strong>Excel \u76f8\u5173<\/strong><\/p>\n<p>\u4f60\u7684\u7ad9\u70b9\u9700\u8981\u751f\u6210Excel\uff1f\u6ca1\u6709\u95ee\u9898\uff0c\u4e0b\u9762\u8fd9\u4e24\u4e2a\u7c7b\u5e93\u53ef\u4ee5\u8ba9\u4f60\u8f7b\u677e\u505a\u5230\u8fd9\u4e00\u70b9\u3002<\/p>\n<ol>\n<li>php-excel \u2013 \u8fd9\u662f\u4e00\u4e2a\u975e\u5e38\u7b80\u5355\u7684Excel\u6587\u4ef6\u751f\u6210\u7c7b\u3002<\/li>\n<li>PHP Excel Reader \u2013 \u53ef\u4ee5\u89e3\u6790\u5e76\u8bfb\u53d6XLS\u6587\u4ef6\u4e2d\u7684\u6570\u636e\u3002<\/li>\n<\/ol>\n<p><strong>E-Mail \u76f8\u5173<\/strong><\/p>\n<p>\u4e0d\u559c\u6b22PHP\u7684mail\u51fd\u6570\uff1f\u89c9\u5f97\u4e0d\u591f\u5f3a\u5927\uff1f\u4e0b\u9762\u7684PHP\u90ae\u4ef6\u76f8\u5173\u7684\u5e93\u7edd\u5bf9\u4e0d\u4f1a\u8ba9\u4f60\u5931\u671b\u3002<\/p>\n<ol>\n<li>Swift Mailer \u2013 \u514d\u8d39\u7684\u8d85\u591a\u529f\u80fd\u7684PHP\u90ae\u4ef6\u5e93\u3002<\/li>\n<li>PHPMailer \u2013 \u8d85\u5f3a\u5927\u7684\u90ae\u4ef6\u53d1\u9001\u7c7b\u3002<\/li>\n<\/ol>\n<p><strong>\u5355\u5143\u6d4b\u8bd5<\/strong><\/p>\n<p>\u5982\u679c\u4f60\u5728\u4f7f\u7528\u6d4b\u8bd5\u9a71\u52a8\u7684\u65b9\u6cd5\u5f00\u53d1\u4f60\u7684\u7a0b\u5e8f\uff0c\u4e0b\u9762\u7684\u7c7b\u5e93\u548c\u6846\u67b6\u7edd\u4f60\u80fd\u5e2e\u52a9\u4f60\u7684\u5f00\u53d1\u3002<\/p>\n<ol>\n<li>SimpleTest \u2013 \u4e00\u4e2aPHP\u7684\u5355\u5143\u6d4b\u8bd5\u548cWEB\u5f00\u53d1\u6d4b\u8bd5\u7684\u6846\u67b6\u3002<\/li>\n<li>PHPUnit \u2013 \u6765\u81eaxUnit \u5bb6\u65cf\uff0c\u63d0\u4f9b\u4e00\u4e2a\u6846\u67b6\u53ef\u4ee5\u8ba9\u4f60\u65b9\u4fbf\u5730\u8fdb\u884c\u5355\u5143\u6d4b\u8bd5\u7684\u6848\u4f8b\u5f00\u53d1\u3002\u5e76\u53ef\u975e\u5e38\u5bb9\u6613\u5730\u5206\u6790\u5176\u6d4b\u8bd5\u7ed3\u679c\u3002<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>PHP\u5f00\u53d1\u6280\u672f\u5728\u8fd9\u51e0\u5e74\u4f9d\u7136\u6bd4\u8f83\u706b\u70ed\uff0c\u4e5f\u6709\u8d8a\u6765\u8d8a\u591a\u7684\u5f00\u53d1\u8005\u52a0\u5165\u5230\u4e86PHP\u5f00\u53d1\u9635\u8425\uff0c\u5728\u590d\u6742\u7684\u6846\u67b6\u548c\u5197\u4f59\u7684\u4ee3\u7801\u9762\u524d\uff0c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[5,263],"_links":{"self":[{"href":"https:\/\/yanjingang.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/442"}],"collection":[{"href":"https:\/\/yanjingang.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yanjingang.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yanjingang.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yanjingang.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=442"}],"version-history":[{"count":0,"href":"https:\/\/yanjingang.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/442\/revisions"}],"wp:attachment":[{"href":"https:\/\/yanjingang.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=442"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yanjingang.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=442"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yanjingang.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=442"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}