提供 API 访问网站的框架?

2022-01-16 00:00:00 api rest frameworks php

我们有一个网站,我们希望提供对其他网站的基于 Web 的 API 访问.

We have a website that we want to provide web based API access to to other sites.

它最终可能会成为基于 REST 的 API,但我还不确定.它需要可从 Drupal 模块访问,但我们希望构建可扩展的 API,以便我们可以从其他环境(如 joomla、wordpress、其他非 php 语言等)访问站点的数据和功能.

It may end up being a REST based API, but I'm not sure yet. It needs to be accessible from a Drupal module, but we want to built the API to be scalable so that we can access the site's data and functionality from other environments such as joomla, wordpress, other non-php languages, etc.

我正在寻找一个强大/稳定的基于 PHP 的框架,它允许我创建这样的 API - 人们可以提出符合标准的东西吗?

I am looking for a robust/stable PHP based framework that allows me to create such APIs - can folks suggest something that meets the criteria?

推荐答案

我推荐 Zend REST 服务器 - 它功能强大、易于扩展,并且经常在社区寻找错误"中进行审查.

I'd recommend Zend REST Server - it's robust, easily extensible and frequently reviewed in community "bug hunts".

  • 这是 Zend 大师的教程
  • A入门指南
  • 另一个指南
  • 还有一个

相关文章