GitPedia

Demo

Demo app for the API Platform framework

From api-platform·Updated June 19, 2026·View on GitHub·

This application is a demonstration for the [API Platform Framework](https://api-platform.com/). Try it online at . The project is written primarily in PHP, distributed under the MIT License license, first published in 2016. Key topics include: api, api-platform, demo, hacktoberfest, kubernetes.

Latest release: v4.3.14
June 19, 2026View Changelog →
<h1 align="center"> <a href="https://api-platform.com"> <img width="400" height="400" src="https://api-platform.com/images/zeus.svg" alt="API Platform"> <br />API Platform - Demo </a> </h1>

This application is a demonstration for the API Platform Framework.
Try it online at https://demo.api-platform.com.

GitHub Actions
GitHub Actions

Install

Read the official "Getting Started" guide.

$ git clone https://github.com/api-platform/demo.git
$ cd demo
$ docker compose up --wait

You can now go to https://localhost

Authentication and usage:

  • Admin: the credentials are shown on https://localhost/admin You can create a Book with https://openlibrary.org/books/OL2055137M.json as value for Book Reference
  • API:
    • endpoints without the /admin prefix are public and can be called without further step
    • endpoints with the /admin prefix require an authentication: open https://localhost/docs then check the “openid” option under “Scopes” and click on “Authorize”. If you are not yet logged in on the API then log in with the credentials, and finally click on “Close”. You can now perform authenticated requests through the API, like listing books on GET /admin/books

What Can I Find In This Demo?

This demo application contains several things you may be interested:

FeatureUsage
Bringing your Own ModelSearch usage
Model ScaffoldingSearch usage
Plugging the Persistence SystemSearch usage
Exposing Enums with API PlatformSearch usage
Validating DataSearch usage
Configuring OperationsSearch usage
Defining Which Operation to Use to Generate the IRISearch usage
SubresourcesSearch usage
Doctrine ORM FiltersSearch usage
Creating Custom Doctrine ORM FiltersSearch usage
Overriding Default OrderSearch usage
Changing the Number of Items per Page Client-side For a Specific ResourceSearch usage
Advanced serializationSearch usage
User SupportSearch usage
Custom Doctrine ORM ExtensionSearch usage
Custom State ProcessorSearch usage
Creating Async APIs using the Mercure ProtocolSearch usage
Advanced Authentication and Authorization RulesSearch usage
API TestingSearch usage
The AdminSearch usage
A Next.js Web AppSearch usage
Deploying to a Kubernetes ClusterSearch usage

Note: this demo application implements OpenID Connect Specification Support
(using Keycloak). See usage in API and
usage in PWA.

Contributing

Read the contributing guide

Credits

Created by Kévin Dunglas. Commercial support available
at Les-Tilleuls.coop.

Contributors

Showing top 12 contributors by commit count.

View all contributors on GitHub →

This article is auto-generated from api-platform/demo via the GitHub API.Last fetched: 6/22/2026