<i id='lZcCA'><tr id='lZcCA'><dt id='lZcCA'><q id='lZcCA'><span id='lZcCA'><b id='lZcCA'><form id='lZcCA'><ins id='lZcCA'></ins><ul id='lZcCA'></ul><sub id='lZcCA'></sub></form><legend id='lZcCA'></legend><bdo id='lZcCA'><pre id='lZcCA'><center id='lZcCA'></center></pre></bdo></b><th id='lZcCA'></th></span></q></dt></tr></i><div id='lZcCA'><tfoot id='lZcCA'></tfoot><dl id='lZcCA'><fieldset id='lZcCA'></fieldset></dl></div>
  1. <legend id='lZcCA'><style id='lZcCA'><dir id='lZcCA'><q id='lZcCA'></q></dir></style></legend>
    <tfoot id='lZcCA'></tfoot>

      <small id='lZcCA'></small><noframes id='lZcCA'>

        <bdo id='lZcCA'></bdo><ul id='lZcCA'></ul>

    1. 我是否需要一个框架来在 PHP 中构建 REST API?

      Do I need a framework to build a REST API in PHP?(我是否需要一个框架来在 PHP 中构建 REST API?)

      <tfoot id='ZgPbX'></tfoot>

      <small id='ZgPbX'></small><noframes id='ZgPbX'>

        <tbody id='ZgPbX'></tbody>

      <legend id='ZgPbX'><style id='ZgPbX'><dir id='ZgPbX'><q id='ZgPbX'></q></dir></style></legend>
        <i id='ZgPbX'><tr id='ZgPbX'><dt id='ZgPbX'><q id='ZgPbX'><span id='ZgPbX'><b id='ZgPbX'><form id='ZgPbX'><ins id='ZgPbX'></ins><ul id='ZgPbX'></ul><sub id='ZgPbX'></sub></form><legend id='ZgPbX'></legend><bdo id='ZgPbX'><pre id='ZgPbX'><center id='ZgPbX'></center></pre></bdo></b><th id='ZgPbX'></th></span></q></dt></tr></i><div id='ZgPbX'><tfoot id='ZgPbX'></tfoot><dl id='ZgPbX'><fieldset id='ZgPbX'></fieldset></dl></div>
            <bdo id='ZgPbX'></bdo><ul id='ZgPbX'></ul>

                本文介绍了我是否需要一个框架来在 PHP 中构建 REST API?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我对 PHP 相当陌生(大约 8 个月).我正在构建一个 Web 应用程序,它几乎已准备好进行测试.我现在才开始考虑制作该应用程序的移动版本需要做什么.

                I am fairly new to PHP (about 8 months). I am building a web app, which is almost ready for beta. I am only now starting to think about what I would need to do to make a mobile version of the app.

                据我了解,我应该构建一个 REST API(如果我错了,请纠正我).我目前没有为我的网络应用程序使用 PHP 框架.我可以做?

                As I understand, I should be building a REST API (please correct me if I'm wrong). I am currently NOT using a PHP framework for my web app. Should I be?

                我现在应该开始使用框架以便更轻松地实现我的 API 吗?或者我可以在没有任何框架的情况下构建我的 API?

                Should I now begin using a framework so that I could more easily implement my API? Or can I build my API without any framework at all?

                推荐答案

                简短回答不,你不需要一个框架来实现你的目标.

                SHORT ANSWER No, you don't need a framework to achieve your goal.

                但是如果您使用框架来管理您的 API,这将变得非常容易.我建议你选择一个轻量级的框架,也许你也可以轻松地将你的 web 应用程序转换为框架,让一个应用程序"返回两个不同的事物"(网络内容和 API).

                BUT it will be really easier if you use a framework to manage your API. I suggest you to go for a lightweight framework and maybe you can convert easily your webapp to the framework too, having one "app" to return two different "things" (web stuff & API).

                看看 Laravel, 基于 Laravel 4 的 REST API 或流行的列表 php rest api 框架,可以用来构建一个.

                Take a look at Laravel, Laravel 4 based REST API or a list of popular php rest api frameworks that can be used to build one.

                这篇关于我是否需要一个框架来在 PHP 中构建 REST API?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
                PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
                mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)
                      <bdo id='BNaez'></bdo><ul id='BNaez'></ul>
                      1. <legend id='BNaez'><style id='BNaez'><dir id='BNaez'><q id='BNaez'></q></dir></style></legend>
                        <i id='BNaez'><tr id='BNaez'><dt id='BNaez'><q id='BNaez'><span id='BNaez'><b id='BNaez'><form id='BNaez'><ins id='BNaez'></ins><ul id='BNaez'></ul><sub id='BNaez'></sub></form><legend id='BNaez'></legend><bdo id='BNaez'><pre id='BNaez'><center id='BNaez'></center></pre></bdo></b><th id='BNaez'></th></span></q></dt></tr></i><div id='BNaez'><tfoot id='BNaez'></tfoot><dl id='BNaez'><fieldset id='BNaez'></fieldset></dl></div>
                          <tbody id='BNaez'></tbody>

                        <tfoot id='BNaez'></tfoot>

                          <small id='BNaez'></small><noframes id='BNaez'>