{"id":22947,"date":"2024-11-21T16:37:04","date_gmt":"2024-11-21T08:37:04","guid":{"rendered":"https:\/\/fwq.ai\/blog\/22947\/"},"modified":"2024-11-21T16:37:04","modified_gmt":"2024-11-21T08:37:04","slug":"%e6%80%8e%e4%b9%88%e7%9c%8b%e6%87%82thinkphp5%e9%a1%b9%e7%9b%ae","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/22947\/","title":{"rendered":"\u600e\u4e48\u770b\u61c2thinkphp5\u9879\u76ee"},"content":{"rendered":"<p>thinkphp 5\u662f\u4e00\u4e2a\u7b80\u5355\u6613\u5b66\uff0c\u529f\u80fd\u5f3a\u5927\u7684php\u5f00\u53d1\u6846\u67b6\uff0c\u5df2\u7ecf\u6210\u4e3a\u4e86\u4f17\u591aphp\u5f00\u53d1\u8005\u7684\u9996\u9009\u6846\u67b6\u4e4b\u4e00\u3002\u4f46\u662f\u5982\u4f55\u770b\u61c2thinkphp 5\u7684\u9879\u76ee\u5462\uff1f\u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u5c06\u63a2\u8ba8\u5982\u4f55\u66f4\u597d\u5730\u7406\u89e3thinkphp 5\u7684\u9879\u76ee\u4ee5\u53ca\u5982\u4f55\u66f4\u5feb\u5730\u638c\u63e1\u5b83\u3002<\/p>\n<p>\u4e00\u3001\u4e86\u89e3ThinkPHP 5\u7684\u76ee\u5f55\u7ed3\u6784<\/p>\n<p>\u5728\u5f00\u59cb\u5b66\u4e60\u4efb\u4f55\u4e00\u4e2a\u6846\u67b6\u4e4b\u524d\uff0c\u4e86\u89e3\u76ee\u5f55\u7ed3\u6784\u662f\u5341\u5206\u5fc5\u8981\u7684\u3002ThinkPHP 5\u7684\u76ee\u5f55\u7ed3\u6784\u76f8\u5bf9\u6765\u8bf4\u8fd8\u662f\u6bd4\u8f83\u6e05\u6670\u7684\u3002\u5f00\u53d1\u8005\u53ea\u9700\u8981\u4e86\u89e3\u5176\u4e2d\u7684\u6838\u5fc3\u76ee\u5f55\u7ed3\u6784\u5373\u53ef\u3002\u4e0b\u9762\u662fThinkPHP 5\u7684\u76ee\u5f55\u7ed3\u6784\uff1a<\/p>\n<pre>public            \u5c55\u793a\u7ed9\u7528\u6237\u7684\u9759\u6001\u6587\u4ef6\u76ee\u5f55\napplication      \u6a21\u5757\u6587\u4ef6\u5939\n\u251c\u2500index          \u524d\u53f0\u6a21\u5757\n\u2502  \u251c\u2500controller  \u63a7\u5236\u5668\n\u2502  \u251c\u2500model       \u6a21\u578b\n\u2502  \u2514\u2500view        \u6a21\u677f\n\u251c\u2500admin          \u540e\u53f0\u6a21\u5757\n\u2502  \u251c\u2500controller  \u63a7\u5236\u5668\n\u2502  \u251c\u2500model       \u6a21\u578b\n\u2502  \u2514\u2500view        \u6a21\u677f\n\u251c\u2500common         \u516c\u5171\u6a21\u5757\n\u2502  \u251c\u2500controller  \u63a7\u5236\u5668\n\u2502  \u251c\u2500model       \u6a21\u578b\n\u2502  \u2514\u2500view        \u6a21\u677f\nruntime          \u8fd0\u884c\u65f6\u76ee\u5f55\uff0c\u5b58\u653e\u65e5\u5fd7\u3001\u7f13\u5b58\u7b49\u8fd0\u884c\u65f6\u6587\u4ef6\nthinkphp         ThinkPHP\u6846\u67b6\u6838\u5fc3\u4ee3\u7801\u76ee\u5f55<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u4e8c\u3001\u638c\u63e1ThinkPHP 5\u7684\u8def\u7531<\/p>\n<p>\u5728ThinkPHP 5\u4e2d\uff0c\u8def\u7531\u529f\u80fd\u975e\u5e38\u5f3a\u5927\u3002\u638c\u63e1\u8def\u7531\u529f\u80fd\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u4eba\u5458\u66f4\u52a0\u7075\u6d3b\u5730\u914d\u7f6e\u7f51\u7ad9\u8bbf\u95ee\u8def\u5f84\u3002\u4f8b\u5982\uff0c\u6211\u4eec\u53ef\u4ee5\u50cf\u4e0b\u9762\u8fd9\u6837\u5728config\u6587\u4ef6\u5939\u4e0b\u7684route.php\u4e2d\u914d\u7f6e\u8def\u7531\uff1a<\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<pre>return [\n    'user\/:id'         =&amp;gt; 'user\/detail',        \/\/\u8bbf\u95ee\/user\/5\u7684\u65f6\u5019\u4f1a\u8df3\u8f6c\u5230user\u63a7\u5236\u5668\u7684detail\u65b9\u6cd5\n    'blog\/:year\/:month' =&amp;gt; 'blog\/archive',     \/\/\u8bbf\u95ee\/blog\/2019\/10\u7684\u65f6\u5019\u4f1a\u8df3\u8f6c\u5230blog\u63a7\u5236\u5668\u7684archive\u65b9\u6cd5\n    'list-&lt;id&gt;-&lt;page&gt;'  =&amp;gt; 'article\/index',     \/\/\u8bbf\u95ee\/list-10-2\u7684\u65f6\u5019\u4f1a\u8df3\u8f6c\u5230article\u63a7\u5236\u5668\u7684index\u65b9\u6cd5\n];&lt;\/page&gt;&lt;\/id&gt;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u4e09\u3001\u4e86\u89e3ThinkPHP 5\u7684\u63a7\u5236\u5668<\/p>\n<p>\u5728ThinkPHP 5\u4e2d\uff0c\u63a7\u5236\u5668\u662fMVC\u6846\u67b6\u4e2d\u7684C\uff08Controller\uff09\u90e8\u5206\u3002\u63a7\u5236\u5668\u662f\u5904\u7406\u8bf7\u6c42\u903b\u8f91\u7684\u5730\u65b9\uff0c\u901a\u5e38\u5728\u63a7\u5236\u5668\u4e2d\u8c03\u7528\u6a21\u578b\u548c\u89c6\u56fe\u7b49\u5176\u4ed6\u529f\u80fd\u5b9e\u73b0\u7279\u5b9a\u4e1a\u52a1\u903b\u8f91\u3002<\/p>\n<p>\u5728\u63a7\u5236\u5668\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528$request\u6765\u83b7\u53d6GET\u3001POST\u3001PUT\u7b49\u4f20\u9012\u7684\u53c2\u6570\uff0c\u4f7f\u7528$response\u6765\u8bbe\u7f6eHTTP\u54cd\u5e94\u5934\u548c\u5185\u5bb9\u3002\u4f8b\u5982\uff1a<\/p>\n<pre>namespace appindexcontroller;\n\nuse thinkController;\nuse thinkRequest;\n\nclass Index extends Controller\n{\n    public function index(Request $request)\n    {\n        $name = $request-&amp;gt;param('name');\n        $this-&amp;gt;assign('name', $name);\n        return $this-&amp;gt;fetch();\n    }\n}<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u56db\u3001\u5b66\u4e60ThinkPHP 5\u7684\u6a21\u578b<\/p>\n<p>\u5728ThinkPHP 5\u4e2d\uff0c\u6a21\u578b\u662fMVC\u6846\u67b6\u4e2d\u7684M\uff08Model\uff09\u90e8\u5206\u3002\u6a21\u578b\u662f\u7528\u6765\u64cd\u4f5c\u6570\u636e\u5e93\u7684\u3002\u901a\u8fc7\u6a21\u578b\uff0c\u6211\u4eec\u53ef\u4ee5\u5f88\u65b9\u4fbf\u5730\u5bf9\u6570\u636e\u5e93\u8fdb\u884c\u589e\u5220\u6539\u67e5\u64cd\u4f5c\u3002<\/p>\n<p>ThinkPHP 5\u7684\u6a21\u578b\u53ef\u4ee5\u901a\u8fc7ORM\u65b9\u5f0f\u8fdb\u884c\u64cd\u4f5c\u3002ORM\u662f&#8221;\u5bf9\u8c61-\u5173\u7cfb\u6620\u5c04&#8221;\u7684\u7f29\u5199\uff0c\u7528\u4e8e\u5b9e\u73b0\u5173\u7cfb\u578b\u6570\u636e\u5e93\u7684\u5bf9\u8c61\u5316\u64cd\u4f5c\u3002<\/p>\n<p>\u4e0b\u9762\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u6a21\u578b\u793a\u4f8b\uff1a<\/p>\n<pre>namespace appindexmodel;\n\nuse thinkModel;\n\nclass User extends Model\n{\n    public function getUserList()\n    {\n        return $this-&amp;gt;field('id,name,email')-&amp;gt;select();\n    }\n}<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u4e94\u3001\u7406\u89e3ThinkPHP 5\u7684\u89c6\u56fe<\/p>\n<p>\u5728ThinkPHP 5\u4e2d\uff0c\u89c6\u56fe\u662fMVC\u6846\u67b6\u4e2d\u7684V\uff08View\uff09\u90e8\u5206\u3002\u89c6\u56fe\u8d1f\u8d23\u663e\u793a\u6a21\u677f\u548c\u6570\u636e\u3002<\/p>\n<p>ThinkPHP 5\u7684\u89c6\u56fe\u901a\u5e38\u7528\u4e8e\u6784\u5efaHTML\u4ee3\u7801\u548c\u663e\u793a\u6570\u636e\u5e93\u4e2d\u83b7\u53d6\u7684\u4fe1\u606f\u3002\u89c6\u56fe\u901a\u5e38\u5b58\u50a8\u5728\u6a21\u5757\u7684view\u76ee\u5f55\u4e0b\u3002\u89c6\u56fe\u53ef\u4ee5\u4f7f\u7528{}\u6807\u8bb0\u8f93\u51fa\u53d8\u91cf\uff0c\u4f7f\u7528foreach\uff0cif\u7b49\u6807\u8bb0\u5b9e\u73b0\u903b\u8f91\u63a7\u5236\u3002<\/p>\n<p>\u516d\u3001\u4f7f\u7528ThinkPHP 5\u7684\u52a9\u624b\u51fd\u6570<\/p>\n<p>ThinkPHP 5\u5185\u7f6e\u4e86\u8bb8\u591a\u6709\u7528\u7684\u52a9\u624b\u51fd\u6570\uff0c\u53ef\u4ee5\u7528\u6765\u65b9\u4fbf\u5730\u5b8c\u6210\u8bb8\u591a\u5de5\u4f5c\u3002\u4f8b\u5982\uff1a<\/p>\n<p>input() \u52a9\u624b\u51fd\u6570\u7528\u6765\u83b7\u53d6\u7528\u6237\u8f93\u5165\u6570\u636e\uff0c\u5305\u62ec GET\u3001POST \u548c PUT \u7b49\u8bf7\u6c42\u65b9\u6cd5\u7684\u6570\u636e\u3002<\/p>\n<pre>$name = input('post.name');<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>config() \u52a9\u624b\u51fd\u6570\u7528\u6765\u83b7\u53d6\u7cfb\u7edf\u914d\u7f6e\uff0c\u4f8b\u5982\u6570\u636e\u5e93\u3001\u7f13\u5b58\u7b49\u914d\u7f6e\u3002<\/p>\n<pre>$database = config('database');<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>session() \u52a9\u624b\u51fd\u6570\u7528\u6765\u8bbe\u7f6e\u6216\u83b7\u53d6 Session \u503c\u3002<\/p>\n<pre>session('name', 'thinkphp');\n$name = session('name');<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u4e03\u3001\u638c\u63e1ThinkPHP 5\u7684\u7f13\u5b58\u673a\u5236<\/p>\n<p>\u7f13\u5b58\u662f\u524d\u7aef\u6216\u670d\u52a1\u5668\u5c06\u6570\u636e\u4e34\u65f6\u5b58\u50a8\u8d77\u6765\uff0c\u4ee5\u4fbf\u4e0b\u6b21\u8bbf\u95ee\u65f6\u80fd\u591f\u66f4\u5feb\u5730\u83b7\u53d6\u6570\u636e\u3002\u5728ThinkPHP 5\u4e2d\uff0c\u7f13\u5b58\u63d0\u4f9b\u4e86\u591a\u79cd\u5b58\u50a8\u65b9\u5f0f\uff0c\u5305\u62ec\u6587\u4ef6\u3001Memcache\u3001Redis\u7b49\u3002<\/p>\n<p>\u7f13\u5b58\u673a\u5236\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u4f18\u5316\u7a0b\u5e8f\u7684\u6027\u80fd\uff0c\u63d0\u9ad8\u8bbf\u95ee\u901f\u5ea6\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u7f13\u5b58\u793a\u4f8b\uff1a<\/p>\n<pre>use thinkCache;\n\n$cache = Cache::get('user_1');\nif (!$cache) {\n    $user_info = User::where('id', 1)-&amp;gt;find();\n    $cache = Cache::set('user_1', $user_info, 3600);\n}<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u4e0a\u9762\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u5c1d\u8bd5\u4ece\u7f13\u5b58\u4e2d\u83b7\u53d6\u7528\u6237\u4fe1\u606f\uff0c\u5982\u679c\u7f13\u5b58\u4e0d\u5b58\u5728\uff0c\u5219\u4ece\u6570\u636e\u5e93\u4e2d\u83b7\u53d6\u4fe1\u606f\uff0c\u5e76\u5c06\u5176\u5b58\u5165\u7f13\u5b58\u4e2d\u3002<\/p>\n<p>\u516b\u3001\u5b66\u4e60ThinkPHP 5\u7684\u9519\u8bef\u8c03\u8bd5<\/p>\n<p>\u5728\u5f00\u53d1\u8fc7\u7a0b\u4e2d\uff0c\u7ecf\u5e38\u4f1a\u9047\u5230\u7a0b\u5e8f\u51fa\u9519\u7684\u60c5\u51b5\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u9700\u8981\u53ca\u65f6\u7684\u627e\u5230\u9519\u8bef\u5e76\u89e3\u51b3\uff0c\u8fd9\u5c31\u9700\u8981\u8fd0\u7528ThinkPHP 5\u7684\u9519\u8bef\u8c03\u8bd5\u529f\u80fd\u3002<\/p>\n<p>\u5728ThinkPHP 5\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u914d\u7f6e\u6587\u4ef6\u6765\u5f00\u542f\/\u5173\u95ed\u9519\u8bef\u8c03\u8bd5\u3002\u5f53\u6211\u4eec\u5f00\u542f\u4e86\u8c03\u8bd5\u529f\u80fd\u65f6\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u5728\u9875\u9762\u4e0a\u8f93\u51fa\u9519\u8bef\u4fe1\u606f\u548c\u8c03\u7528\u6808\uff0c\u5e2e\u52a9\u6211\u4eec\u5206\u6790\u548c\u89e3\u51b3\u95ee\u9898\u3002\u4f8b\u5982\uff1a<\/p>\n<pre>\/\/\u5728config\u76ee\u5f55\u4e0b\u7684app.php\u6587\u4ef6\u4e2d\u914d\u7f6e\n'debug' =&amp;gt; true,<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u603b\u7ed3<\/p>\n<p>\u901a\u8fc7\u672c\u6587\u7684\u4ecb\u7ecd\uff0c\u6211\u4eec\u4e86\u89e3\u4e86\u5982\u4f55\u66f4\u597d\u5730\u7406\u89e3ThinkPHP 5\u7684\u9879\u76ee\u4ee5\u53ca\u5982\u4f55\u66f4\u5feb\u5730\u638c\u63e1\u5b83\u3002\u5f53\u7136\u8fd9\u53ea\u662f\u4e00\u4e2a\u5f00\u59cb\uff0c\u60f3\u8981\u5f7b\u5e95\u638c\u63e1ThinkPHP 5\uff0c\u5c31\u9700\u8981\u6211\u4eec\u4e0d\u65ad\u5b66\u4e60\u3001\u7814\u7a76\u3001\u5b9e\u8df5\u3002\u540c\u65f6\uff0c\u6211\u4eec\u4e5f\u8981\u5173\u6ce8\u5b98\u65b9\u6587\u6863\u548c\u793e\u533a\uff0c\u4e86\u89e3\u6700\u65b0\u7684\u6280\u672f\u548c\u5f00\u53d1\u52a8\u6001\uff0c\u4e0d\u65ad\u63d0\u9ad8\u81ea\u5df1\u7684\u7f16\u7a0b\u6c34\u5e73\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u600e\u4e48\u770b\u61c2thinkphp5\u9879\u76ee\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>thinkphp 5\u662f\u4e00\u4e2a\u7b80\u5355\u6613\u5b66\uff0c\u529f\u80fd\u5f3a\u5927\u7684php\u5f00\u53d1\u6846\u67b6\uff0c\u5df2\u7ecf\u6210\u4e3a\u4e86\u4f17\u591aphp\u5f00\u53d1\u8005\u7684\u9996\u9009\u6846\u67b6\u4e4b\u4e00\u3002\u4f46\u662f\u5982\u4f55\u770b\u61c2thinkphp 5\u7684\u9879\u76ee\u5462\uff1f\u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u5c06\u63a2\u8ba8\u5982\u4f55\u66f4\u597d\u5730\u7406\u89e3thinkphp 5\u7684\u9879\u76ee\u4ee5\u53ca\u5982\u4f55\u66f4\u5feb\u5730\u638c\u63e1\u5b83\u3002 \u4e00\u3001\u4e86\u89e3ThinkPHP 5\u7684\u76ee\u5f55\u7ed3\u6784 \u5728\u5f00\u59cb\u5b66\u4e60\u4efb\u4f55\u4e00\u4e2a\u6846\u67b6\u4e4b\u524d\uff0c\u4e86\u89e3\u76ee\u5f55\u7ed3\u6784\u662f\u5341\u5206\u5fc5\u8981\u7684\u3002ThinkPHP 5\u7684\u76ee\u5f55\u7ed3\u6784\u76f8\u5bf9\u6765\u8bf4\u8fd8\u662f\u6bd4\u8f83\u6e05\u6670\u7684\u3002\u5f00\u53d1\u8005\u53ea\u9700\u8981\u4e86\u89e3\u5176\u4e2d\u7684\u6838\u5fc3\u76ee\u5f55\u7ed3\u6784\u5373\u53ef\u3002\u4e0b\u9762\u662fThinkPHP 5\u7684\u76ee\u5f55\u7ed3\u6784\uff1a public \u5c55\u793a\u7ed9\u7528\u6237\u7684\u9759\u6001\u6587\u4ef6\u76ee\u5f55 application \u6a21\u5757\u6587\u4ef6\u5939 \u251c\u2500index \u524d\u53f0\u6a21\u5757 \u2502 \u251c\u2500controller \u63a7\u5236\u5668 \u2502 \u251c\u2500model \u6a21\u578b \u2502 \u2514\u2500view \u6a21\u677f \u251c\u2500admin \u540e\u53f0\u6a21\u5757 \u2502 \u251c\u2500controller \u63a7\u5236\u5668 \u2502 \u251c\u2500model \u6a21\u578b \u2502 \u2514\u2500view \u6a21\u677f \u251c\u2500common \u516c\u5171\u6a21\u5757 \u2502 \u251c\u2500controller \u63a7\u5236\u5668 \u2502 \u251c\u2500model \u6a21\u578b \u2502 \u2514\u2500view \u6a21\u677f runtime \u8fd0\u884c\u65f6\u76ee\u5f55\uff0c\u5b58\u653e\u65e5\u5fd7\u3001\u7f13\u5b58\u7b49\u8fd0\u884c\u65f6\u6587\u4ef6 thinkphp ThinkPHP\u6846\u67b6\u6838\u5fc3\u4ee3\u7801\u76ee\u5f55 \u767b\u5f55\u540e\u590d\u5236 \u4e8c\u3001\u638c\u63e1ThinkPHP 5\u7684\u8def\u7531 \u5728ThinkPHP 5\u4e2d\uff0c\u8def\u7531\u529f\u80fd\u975e\u5e38\u5f3a\u5927\u3002\u638c\u63e1\u8def\u7531\u529f\u80fd\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u4eba\u5458\u66f4\u52a0\u7075\u6d3b\u5730\u914d\u7f6e\u7f51\u7ad9\u8bbf\u95ee\u8def\u5f84\u3002\u4f8b\u5982\uff0c\u6211\u4eec\u53ef\u4ee5\u50cf\u4e0b\u9762\u8fd9\u6837\u5728config\u6587\u4ef6\u5939\u4e0b\u7684route.php\u4e2d\u914d\u7f6e\u8def\u7531\uff1a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-22947","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/22947","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=22947"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/22947\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=22947"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=22947"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=22947"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}