Skip to content

docs(symfony): document the API Platform CLI installer#2256

Merged
soyuka merged 1 commit into
api-platform:4.3from
soyuka:cli-distro
Jun 15, 2026
Merged

docs(symfony): document the API Platform CLI installer#2256
soyuka merged 1 commit into
api-platform:4.3from
soyuka:cli-distro

Conversation

@soyuka

@soyuka soyuka commented Feb 24, 2026

Copy link
Copy Markdown
Member

Targets the 4.3 branch. Builds on the CLI-installer docs already on 4.3, adding the pieces that were missing or inaccurate.

Linked to api-platform/api-platform#2980

What changed

symfony/caddy.md (main change)

The page documented a single-domain Caddy → PWA proxy (route {}, @pwa, PWA_UPSTREAM) as the default, but the CLI does not configure that — it ships symfony-docker's Caddyfile and runs the Next.js PWA standalone (pnpm dev on :3000, cross-origin via CORS). Rewritten so it:

  • describes the Caddyfile actually shipped (api/frankenphp/Caddyfile: FrankenPHP worker, @phpRoute, Mercure + Vulcain);
  • documents the Hydra + Mercure Link header as injected by the CLI through CADDY_SERVER_EXTRA_DIRECTIVES in compose.yaml;
  • moves single-domain API + PWA serving into an opt-in section (reachability → route {} ordering → @pwa matcher), kept for users who want it on top of a scaffolded project.

symfony/index.md

core/getting-started.md

  • the Symfony quick-start now uses the CLI: api-platform my-project --framework=symfony.

laravel/index.md

  • adds a tip showing the CLI can scaffold a Laravel project: api-platform my-project --framework=laravel.
@soyuka soyuka changed the base branch from 4.2 to main February 24, 2026 16:26
Comment thread symfony/index.md Outdated
API Platform is shipped with a [Docker](https://docker.com) definition that makes it easy to get a containerized development
environment up and running. If you do not already have Docker on your computer, it's the right time to [install it](https://docs.docker.com/get-docker/).
# Or download the binary directly (macOS / Linux)
curl -sL "https://github.com/api-platform/api-platform/releases/latest/download/api-platform_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/' | sed 's/aarch64/arm64/').tar.gz" | tar xz -C /usr/local/bin

This comment was marked as resolved.

@soyuka soyuka changed the title Cli distro Jun 15, 2026
@soyuka soyuka changed the base branch from main to 4.3 June 15, 2026 08:46
Rework the Symfony getting-started and Caddy guides around the new
`api-platform` CLI (api-platform/installer) instead of the legacy distribution.

- symfony/index.md: install the CLI as a static binary or via
  `composer global require api-platform/installer`; scaffold with
  `api-platform <name> --framework=symfony` (there is no `new` subcommand).
  Document the standalone Next.js PWA model (runs on :3000, talks to the API
  cross-origin via CORS) instead of a containerized single-domain PWA. Mention
  `--with-agents` (generates AGENTS.md / CLAUDE.md).
- symfony/caddy.md: describe the Caddyfile actually shipped by symfony-docker
  (FrankenPHP worker, @phproute) and the Hydra+Mercure Link header injected
  through CADDY_SERVER_EXTRA_DIRECTIVES. Move the single-domain API+PWA proxy
  (route{}, @pwa, PWA_UPSTREAM) into an opt-in section.
- core/getting-started.md, laravel/index.md: use `api-platform <name>`
  (drop the non-existent `new` subcommand).
@soyuka soyuka merged commit b7e0b15 into api-platform:4.3 Jun 15, 2026
3 checks passed
@soyuka soyuka deleted the cli-distro branch June 15, 2026 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants