API Platform's Philosophy

In 25 years of PHP, the web changed dramatically and is now evolving faster than ever:

PHP の 25 年間で Web は劇的に変化し、今ではこれまで以上に急速に進化しています。

  • Thanks to awesome frontend technologies such as React or Vue.js, full-JavaScript Progressive Web Apps are becoming the standard.
    React や Vue.js などの優れたフロントエンド テクノロジのおかげで、フル JavaScript プログレッシブ Web アプリが標準になりつつあります。
  • Internet users spend more time on their mobile devices than on desktops: having a mobile-first website is mandatory and native mobile apps are a must-have.
    インターネット ユーザーは、デスクトップよりもモバイル デバイスに多くの時間を費やしています。モバイル ファーストの Web サイトは必須であり、ネイティブ モバイル アプリは必須です。
  • The semantic web and especially Linked Data is a reality: with the Schema.org initiative and new open web standards such as JSON-LD, search engines (among a bunch of other services and software) consume structured and machine-readable data at web scale. Not exposing such data decrease interoperability and search engine ranking/efficiency (think rich snippets).
    セマンティック Web、特に Linked Data は現実のものとなっています。Schema.org イニシアチブと、JSON-LD などの新しいオープン Web 標準により、検索エンジンは (他の多くのサービスやソフトウェアの中でも) 構造化された機械可読データを Web スケールで消費します。このようなデータを公開しないと、相互運用性と検索エンジンのランキング/効率が低下します (リッチ スニペットを考えてみてください)。
  • HTTP/2 and HTTP/3 dramatically improve the performance of web applications thanks to multiplexing, Server Push and their other new capabilities.
    HTTP/2 と HTTP/3 は、多重化、サーバー プッシュ、およびその他の新機能により、Web アプリケーションのパフォーマンスを劇的に向上させます。

PHP.net, Symfony, Facebook and many others have worked hard to improve and professionalize the PHP ecosystem. The PHP world has closed the gap with most backend solutions and is often more innovative and faster than them.

PHP.net、Symfony、Facebook、その他多くの企業が、PHP エコシステムの改善と専門化に尽力してきました。 PHP の世界は、ほとんどのバックエンド ソリューションとのギャップを埋めており、多くの場合、それらよりも革新的で高速です。

However in critical areas I've described previously, many things can be improved. Almost all existing solutions are still designed and documented to create websites the old way: a server generates then sends plain-old HTML documents to browsers.

ただし、以前に説明した重要な領域では、多くのことを改善できます。ほとんどすべての既存のソリューションは、依然として古い方法で Web サイトを作成するように設計され、文書化されています。つまり、サーバーがプレーンな古い HTML ドキュメントを生成し、ブラウザに送信します。

API Platform is a set of tools for building modern web projects. It is a framework for API-first projects built on top of Symfony components. Like other modern frameworks such as Laravel and Symfony, it's both a full-stack all-in-one framework and a set of independent PHP components and bundles that can be used separately.

API Platform は、最新の Web プロジェクトを構築するための一連のツールです。これは、Symfony コンポーネントの上に構築された API ファースト プロジェクト用のフレームワークです。Laravel や Symfony などの他の最新のフレームワークと同様に、フルスタックのオールインワン フレームワークであり、使用できる独立した PHP コンポーネントとバンドルのセットでもあります。別々に。

API Platform makes modern development easy and fun again:

API プラットフォームにより、最新の開発が再び簡単かつ楽しくなります。

  • Start by creating a web API exposing structured data that can be understood by any compliant client such as your apps but also search engines (JSON-LD with Schema.org vocabulary). This API is the central and unique entry point to access and modify data. It also encapsulates the whole business logic.
    アプリなどの準拠クライアントだけでなく、検索エンジン (Schema.org ボキャブラリーを使用した JSON-LD) も理解できる構造化データを公開する Web API を作成することから始めます。この API は、データにアクセスして変更するための中心的でユニークなエントリ ポイントです。また、ビジネス ロジック全体をカプセル化します。
  • Then create as many clients as you want using frontend technologies you love: a JavaScript webapp built with React or with Vue querying the API but also a native iOS or Android app, or even a desktop application. Clients only display data and forms.
    次に、好みのフロントエンド テクノロジを使用して、必要な数のクライアントを作成します。React または API をクエリする Vue で構築された JavaScript Web アプリだけでなく、ネイティブの iOS または Android アプリ、さらにはデスクトップ アプリケーションも作成できます。クライアントのみがデータとフォームを表示します。

See also the general design of the framework.

フレームワークの一般的な設計も参照してください。