du7133 2010-07-20 00:58
浏览 45
已采纳

如何从PHP框架访问REST数据源?

We are looking to build a PHP web application to manage data that is available only through a 3rd party REST like interface.

We would like to use an existing PHP framework to do this, we're considering cakephp and codeigniter, but are open to other options.

We expect the biggest problem will be creating models that utilise the REST API as a data source instead of a local database.

  • 写回答

3条回答 默认 最新

  • douquqiang1513 2010-07-20 08:59
    关注

    I've written a base ReST datasource plugin for CakePHP and am using it in lots of other plugins that interact with ReSTful APIs. Plugins I've released so far are YahooGeoPlanet and bit.ly and I'm also currently working on ones for Google Apis (YouTube and Analytics), Twitter, Twitpic and Facebook. They use the CakePHP's excellent HttpSocket class that deceze mentions.

    Have a look at those CakePHP plugins and you should be able to see how simple but powerful they are.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥15 stm32开发clion时遇到的编译问题
  • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)
  • ¥15 Vue3地图和异步函数使用
  • ¥15 C++ yoloV5改写遇到的问题
  • ¥20 win11修改中文用户名路径
  • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入
  • ¥15 用土力学知识进行土坡稳定性分析与挡土墙设计
  • ¥70 PlayWright在Java上连接CDP关联本地Chrome启动失败,貌似是Windows端口转发问题
  • ¥15 帮我写一个c++工程
  • ¥30 Eclipse官网打不开,官网首页进不去,显示无法访问此页面,求解决方法