{"id":6525,"date":"2016-07-19T15:18:02","date_gmt":"2016-07-19T09:48:02","guid":{"rendered":"http:\/\/www.carmatec.com\/?p=6525"},"modified":"2022-09-27T09:09:20","modified_gmt":"2022-09-27T09:09:20","slug":"%e7%94%9f%e3%81%aephp%e3%81%a8php%e3%83%95%e3%83%ac%e3%83%bc%e3%83%a0%e3%83%af%e3%83%bc%e3%82%af","status":"publish","type":"post","link":"https:\/\/www.carmatec.com\/ja\/blog\/raw-php-vs-php-frameworks\/","title":{"rendered":"\u751f\u306e PHP \u3068 PHP \u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af"},"content":{"rendered":"<p>\u751f\u306ePHP vs <a href=\"https:\/\/www.carmatec.com\/ja\/%e6%8a%80%e8%a1%93%e3%82%92%e5%ad%a6%e3%81%b6\/%e3%82%a2%e3%82%b8%e3%83%a3%e3%82%a4%e3%83%ab%e3%82%a2%e3%83%97%e3%83%aa%e3%82%b1%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e9%96%8b%e7%99%ba%e3%81%ae%e3%81%9f%e3%82%81%e3%81%ae%e3%83%88%e3%83%83%e3%83%97ph\/\">PHP \u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af<\/a> \u306e\u9593\u3067\u71b1\u3044\u8b70\u8ad6\u304c\u4ea4\u308f\u3055\u308c\u3066\u3044\u308b\u3002 <a href=\"https:\/\/www.carmatec.com\/ja\/%e9%96%8b%e7%99%ba%e8%80%85%e3%82%92%e9%9b%87%e3%81%86\/php%e9%96%8b%e7%99%ba%e8%80%85%e3%82%92%e9%9b%87%e3%81%86\/\">PHP\u958b\u767a\u8005<\/a> \u4f55\u5e74\u3082\u306e\u9593\u3001\u751f\u306ePHP\u3092\u597d\u3080\u958b\u767a\u8005\u3082\u3044\u308c\u3070\u3001\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u597d\u3080\u958b\u767a\u8005\u3082\u3044\u308b\u3002\u751f\u306ePHP\u3068\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306b\u306f\u305d\u308c\u305e\u308c\u9577\u6240\u3068\u77ed\u6240\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u306e\u597d\u307f\u3068\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u8981\u6c42\u306b\u3088\u3063\u3066\u6c7a\u307e\u308a\u307e\u3059\u3002\u3082\u3057\u3042\u306a\u305f\u304c\u3069\u3061\u3089\u304b\u306e\u5074\u306b\u5c5e\u3057\u3066\u3044\u308b\u306e\u3067\u3042\u308c\u3070\u3001\u751f\u306ePHP\u3068\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306e\u9577\u6240\u3068\u77ed\u6240\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3066\u3001\u958b\u767a\u306e\u305f\u3081\u306b\u751f\u306ePHP\u304b\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306e\u3069\u3061\u3089\u304b\u3092\u9078\u3076\u969b\u306b\u3001\u60c5\u5831\u306b\u57fa\u3065\u3044\u305f\u6c7a\u5b9a\u3092\u4e0b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><strong>\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306e\u5229\u70b9\uff1a<\/strong><\/p>\n<ul>\n<li>\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306f\u3001\u30d3\u30b8\u30cd\u30b9\u30b3\u30fc\u30c9\u3092\u30e9\u30c3\u30d7\u3059\u308b\u305f\u3081\u306e\u4f59\u5206\u306a\u30ec\u30a4\u30e4\u30fc\u3092\u5c0e\u5165\u3059\u308b\u3053\u3068\u3067\u3001\u3088\u308a\u826f\u3044\u7ba1\u7406\u6027\u3068\u30c1\u30fc\u30e0\u3067\u306e\u5bb9\u6613\u306a\u4f5c\u696d\u6027\u3092\u63d0\u4f9b\u3059\u308b\u3002MVC\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u4f8b\u306b\u3068\u308c\u3070\u3001\u30c1\u30fc\u30e0\u306f\u30e2\u30c7\u30eb\u3001\u30d3\u30e5\u30fc\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u306e\u90e8\u5206\u3092\u5225\u3005\u306b\u4f5c\u696d\u3067\u304d\u308b\u3053\u3068\u304c\u7406\u89e3\u3067\u304d\u308b\u3060\u308d\u3046\u3002ORM\uff08\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30fb\u30ea\u30ec\u30fc\u30b7\u30e7\u30ca\u30eb\u30fb\u30de\u30c3\u30d4\u30f3\u30b0\uff09\u306f\u7c21\u5358\u306a\u30b9\u30b1\u30fc\u30e9\u30d3\u30ea\u30c6\u30a3\u3092\u63d0\u4f9b\u3059\u308b\u3002<\/li>\n<li>\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306f\u3001\u3042\u306a\u305f\u81ea\u8eab\u3092\u7c21\u5358\u306b\u3059\u308b\u305f\u3081\u306e\u30c4\u30fc\u30eb\u3084\u6a5f\u80fd\u3092\u63d0\u4f9b\u3057\u3066\u304f\u308c\u308b\u3002\u305f\u3068\u3048\u3070\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u7a2e\u3001\u30d5\u30a9\u30fc\u30e0\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u30af\u30e9\u30b9\u3001\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u306a\u3069\u3067\u3059\u3002<\/li>\n<li>\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u306f\u3001\u3059\u3079\u3066\u304c\u5b9a\u7fa9\u6e08\u307f\u306e\u30b3\u30fc\u30c9\u3001\u30d8\u30eb\u30d1\u30fc\u3001\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30bb\u30c3\u30c8\u3068\u3057\u3066\u63d0\u4f9b\u3055\u308c\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u81ea\u5206\u3067\u30da\u30fc\u30b8\u5206\u5272\u3084\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u305f\u308a\u3001\u4ed6\u306e\u4eba\u306e\u30da\u30fc\u30b8\u5206\u5272\u3084\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u7d71\u5408\u3057\u305f\u308a\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306f\u7279\u5b9a\u306e\u6a19\u6e96\u306b\u5f93\u3063\u3066\u3044\u308b\u305f\u3081\u3001\u30b3\u30fc\u30c9\u304c\u3088\u308a\u6574\u7406\u3055\u308c\u3066\u3044\u308b\u3002\u305d\u306e\u4e0a\u3001\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306fMVC\u30d1\u30bf\u30fc\u30f3\u3092\u7d44\u7e54\u3057\u3066\u304a\u308a\u3001\u30b3\u30fc\u30c9\u306e\u78ba\u7387\u3092\u9664\u3044\u3066\u3001\u30b3\u30fc\u30c9\u30923\u3064\u306e\u30ab\u30c6\u30b4\u30ea\u30fc\u306b\u5206\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/li>\n<li>\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306e\u65b9\u304c\u512a\u308c\u3066\u3044\u308b\u306e\u306f\u3001\u307b\u3068\u3093\u3069\u3059\u3079\u3066\u304c\u63d0\u4f9b\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u91cf\u304c\u5c11\u306a\u304f\u3066\u6e08\u307f\u3001\u5fc3\u914d\u3059\u308b\u3053\u3068\u304c\u5c11\u306a\u3044\u304b\u3089\u3060\u3002<\/li>\n<li>\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306b\u306f\u901a\u5e38\u3001\u30b3\u30a2\u306b\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30af\u30e9\u30b9\u304c\u3042\u308a\u307e\u3059\u3002Input \u30af\u30e9\u30b9\u306e\u3044\u304f\u3064\u304b\u306e\u30e1\u30bd\u30c3\u30c9\u306f\u3001_POST \u3084\u305d\u306e\u4ed6\u306e\u30b0\u30ed\u30fc\u30d0\u30eb\u914d\u5217\u304b\u3089 XSS \u3092\u9664\u53bb\u3059\u308b\u30d5\u30e9\u30b0\u3092\u6301\u3063\u3066\u3044\u307e\u3059\u3002<\/li>\n<\/ul>\n<p><strong>\u30c7\u30e1\u30ea\u30c3\u30c8<\/strong><\/p>\n<ul>\n<li>\u7279\u5b9a\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306b\u306f\u7279\u5b9a\u306e\u5b66\u7fd2\u66f2\u7dda\u304c\u3042\u308b\u306e\u3067\u3001\u3082\u3063\u3068\u5b66\u3076\u5fc5\u8981\u304c\u3042\u308b\u3002<\/li>\n<li>\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306f\u751f\u306ePHP\u30b3\u30fc\u30c9\u3088\u308a\u3082\u9045\u3044\u3002<\/li>\n<\/ul>\n<p><strong>\u751f\u306ePHP\u30b3\u30fc\u30c9 \u30e1\u30ea\u30c3\u30c8<\/strong><\/p>\n<ul>\n<li>\u751f\u306ePHP\u306f\u81ea\u7531\u5ea6\u304c\u9ad8\u304f\u3001\u60f3\u50cf\u3068\u767a\u660e\u306e\u4f59\u5730\u304c\u5927\u304d\u3044\u3002<\/li>\n<li>\u3082\u3057\u30b3\u30fc\u30c9\u304c\u5c0f\u3055\u3051\u308c\u3070\u3001\u624b\u7d9a\u304d\u578bPHP\/PHP-RAW\u3092\u4f7f\u3046\u306e\u304c\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/li>\n<\/ul>\n<p><strong>\u30c7\u30e1\u30ea\u30c3\u30c8<\/strong><\/p>\n<ul>\n<li>\u3059\u3067\u306b\u66f8\u304b\u308c\u3066\u3044\u308b\u304b\u3082\u3057\u308c\u306a\u3044\u30b3\u30fc\u30c9\u3092\u305f\u304f\u3055\u3093\u66f8\u304f\u5fc5\u8981\u304c\u3042\u308b\u3002<\/li>\n<li>\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\uff08SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u3001XSS\uff09\u3001\u30b3\u30fc\u30c9\u306e\u69cb\u6210\u3001\u30d3\u30b8\u30cd\u30b9\u30ed\u30b8\u30c3\u30af\u3068\u30d3\u30e5\u30fc\u306e\u5206\u96e2\u306a\u3069\u3001\u8003\u616e\u3059\u3079\u304d\u3053\u3068\u306f\u4ed6\u306b\u3082\u3042\u308b\uff08\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u304c\u3059\u3067\u306b\u3084\u3063\u3066\u304f\u308c\u308b\uff09\u3002<\/li>\n<\/ul>\n<table style=\"width: 80%;\" border=\"\u201d1\u2033\">\n<tbody>\n<tr>\n<th>\u751f\u306ePHP\u306e\u5229\u70b9<\/th>\n<th>PHP\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306e\u5229\u70b9<\/th>\n<\/tr>\n<tr>\n<td>\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30aa\u30fc\u30d0\u30fc\u30d8\u30c3\u30c9\u304c\u306a\u304f\u3001\u3088\u308a\u9ad8\u901f\u3067\u67d4\u8edf\u6027\u304c\u9ad8\u3044<\/td>\n<td>\u8a73\u7d30\u304b\u3064\u660e\u78ba\u306a\u6587\u66f8\u5316\u306b\u3088\u308a\u3001\u30b3\u30fc\u30c9\u306e\u91cd\u8907\u3092\u6e1b\u3089\u3059<\/td>\n<\/tr>\n<tr>\n<td>\u30dd\u30fc\u30bf\u30d6\u30eb<\/td>\n<td>\u3088\u308a\u5b89\u5168\u306a\u65b9\u6cd5\u3068\u6697\u53f7\u5316<\/td>\n<\/tr>\n<tr>\n<td>\u4ed6\u4eba\u306e\u30eb\u30fc\u30eb\u3084\u6982\u5ff5\u306b\u7e1b\u3089\u308c\u306a\u3044<\/td>\n<td>\u7d44\u307f\u8fbc\u307f\u30e9\u30a4\u30d6\u30e9\u30ea\u3068\u30d8\u30eb\u30d1\u30fc<\/td>\n<\/tr>\n<tr>\n<td>\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3068\u306f\u7570\u306a\u308a\u3001\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u4f9d\u5b58\u3057\u306a\u3044<\/td>\n<td>\u7c21\u5358\u306a\u30a8\u30e9\u30fc\u51e6\u7406<\/td>\n<\/tr>\n<tr>\n<td>\u3042\u306a\u305f\u306e\u54f2\u5b66\u3001\u3042\u306a\u305f\u306e\u30b3\u30fc\u30c9<\/td>\n<td>\u7d4c\u9a13\u8c4a\u5bcc\u306a\u958b\u767a\u8005\u3092\u898b\u3064\u3051\u3084\u3059\u3044<\/td>\n<\/tr>\n<tr>\n<td>\u30e9\u30a4\u30bb\u30f3\u30b9\u306f\u81ea\u7531\u306b\u9078\u629e\u3067\u304d\u308b<\/td>\n<td>\u4fbf\u5229\u306a\u30af\u30e9\u30b9\u304c\u30d7\u30ea\u30ed\u30fc\u30c9\u3055\u308c\u3066\u3044\u308b<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u79c1\u305f\u3061\u306f\u3001\u69d8\u3005\u306a\u696d\u754c\u3067\u7d4c\u9a13\u3092\u7a4d\u3093\u3060\u3001\u7d4c\u9a13\u8c4a\u5bcc\u3067\u512a\u79c0\u306aPHP\u958b\u767a\u8005\u306e\u30c1\u30fc\u30e0\u3092\u6301\u3063\u3066\u3044\u307e\u3059\u3002\u79c1\u305f\u3061\u306e\u30c1\u30fc\u30e0\u306f\u3001\u3042\u306a\u305f\u306e\u76ee\u6a19\u3092\u9054\u6210\u3057\u3001\u3042\u306a\u305f\u306e\u30d3\u30b8\u30cd\u30b9\u306b\u7af6\u4e89\u529b\u3092\u4e0e\u3048\u308b\u305f\u3081\u306b\u71b1\u5fc3\u306b\u50cd\u3044\u3066\u3044\u307e\u3059\u3002\u79c1\u305f\u3061\u306f\u3001\u6700\u9ad8\u304b\u3064\u6700\u53e4\u306e <a href=\"http:\/\/www.carmatec.com\/ja\/\">PHP\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u958b\u767a\u4f1a\u793e<\/a> \u69d8\u3005\u306a\u696d\u754c\u3067\u7d4c\u9a13\u3092\u7a4d\u3093\u3067\u304d\u307e\u3057\u305f\u3002\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3084\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306e\u958b\u767a\u3092\u304a\u8003\u3048\u3067\u3057\u305f\u3089\u3001\u304a\u6c17\u8efd\u306b\u304a\u554f\u3044\u5408\u308f\u305b\u304f\u3060\u3055\u3044\u3002 <a href=\"http:\/\/www.carmatec.com\/ja\/%e3%81%8a%e5%95%8f%e3%81%84%e5%90%88%e3%82%8f%e3%81%9b\/\">\u304a\u554f\u3044\u5408\u308f\u305b<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>Raw PHP vs PHP Frameworks has been a hot cake of a discussion between PHP developers for years with some developers preferring raw PHP and others frameworks. Although both raw PHP and frameworks have their own advantages and disadvantages, it mostly comes down to workflow preferences and demands of the project. If you belong to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":30376,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-6525","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog"],"_links":{"self":[{"href":"https:\/\/www.carmatec.com\/ja\/wp-json\/wp\/v2\/posts\/6525","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.carmatec.com\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.carmatec.com\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.carmatec.com\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.carmatec.com\/ja\/wp-json\/wp\/v2\/comments?post=6525"}],"version-history":[{"count":0,"href":"https:\/\/www.carmatec.com\/ja\/wp-json\/wp\/v2\/posts\/6525\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.carmatec.com\/ja\/wp-json\/wp\/v2\/media\/30376"}],"wp:attachment":[{"href":"https:\/\/www.carmatec.com\/ja\/wp-json\/wp\/v2\/media?parent=6525"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.carmatec.com\/ja\/wp-json\/wp\/v2\/categories?post=6525"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.carmatec.com\/ja\/wp-json\/wp\/v2\/tags?post=6525"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}