NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #721 most downloaded on Packagist
Build a fully-featured hypermedia or GraphQL API in minutes!
Latest stable
v5.0.6
Last release 16 days ago
06 Nov 2026
Release timing varies
gaps range from 8 days to 2 months
Nearly every release is documented
notes for 58 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
11 years old
403 releases · first in 2015
Drag across the ruler to compare, or tap a release to open it.
fix(graphql): update existing object on nested input id by @soyuka in https://github.com/api-platform/core/pull/8786
Full Changelog: https://github.com/api-platform/core/compare/v5.0.5...v5.0.6
Your coding agent can read these notes before it upgrades. Set up the MCP server →
IriConverterParameterProvider that declares a filter now receives the stateOptions entity instead of the object-mapped resource (#8802). This fixes IriFilter on mapped resources, but a custom filter written against the mapped DTO now gets the entity. Restore the previous value with extraProperties: ['map_resource' => true] on the parameter.fix(openapi): remove webhooks and jsonSchemaDialect from 3.0.0 documents by @abp002 in https://github.com/api-platform/core/pull/8722
Full Changelog: https://github.com/api-platform/core/compare/v5.0.4...v5.0.5
API Platform 5.0.5 contains every change shipped in v4.4.6, plus the changes below.
fix(state): avoid deprecated PartialDenormalizationException::getErrors() by @dualfroz in https://github.com/api-platform/core/pull/8663
Full Changelog: https://github.com/api-platform/core/compare/v5.0.3...v5.0.4
API Platform 5.0.4 contains every change shipped in v4.4.5, plus the changes below.
BelongsTo or MorphTo relation (nullable foreign key column) is now typed as nullable, so it accepts null on write and clears the relation (#8664). This changes the generated docs for every nullable BelongsTo: JSON Schema and OpenAPI mark it nullable, and GraphQL drops the ! on these fields, inputs included.api-platform/doctrine-common now requires symfony/property-access (#8687).fix(symfony): avoid deprecated translation command probe by @tacman in https://github.com/api-platform/core/pull/8627
Full Changelog: https://github.com/api-platform/core/compare/v5.0.2...v5.0.3
API Platform 5.0.3 contains every change shipped in v4.4.4 except the revert of #8600 (#8637): 5.0 keeps documenting filterless array query parameters as both key and key[], now guarded against key[][], plus the changes below.
test: fix phpunit 13 and ApiTestCase deprecation reds on 5.0 by @soyuka in https://github.com/api-platform/core/pull/8610
Full Changelog: https://github.com/api-platform/core/compare/v5.0.1...v5.0.2
API Platform 5.0.2 contains every change shipped in v4.4.3, plus the changes below.
deserialize: true on a method other than POST, PUT or PATCH (for example GET or DELETE) now gets a requestBody and an input JSON Schema in the OpenAPI document. This can change your generated schema, so clients generated from it or snapshot tests of it can differ. It is acceptable in 5.0, but it was reverted from 4.4 because a schema change must not ship in a patch release.fix: name deprecated option in message by @soyuka in https://github.com/api-platform/core/pull/8545
Full Changelog: https://github.com/api-platform/core/compare/v5.0.0...v5.0.1
API Platform 5.0.1 contains every change shipped in v4.4.1 and v4.4.2, plus the fixes below.
feat(metadata): allow extending the Link attribute by @soyuka in https://github.com/api-platform/core/pull/8536
Full Changelog: https://github.com/api-platform/core/compare/v5.0.0-beta.2...v5.0.0
API Platform 5.0 contains every change shipped in v4.4.0, plus the removals and breaking changes below.
422 with a ConstraintViolation payload instead of 400 with a hydra:Error payload (#8211, #8389). Properties without constraint metadata still return 400. This shipped in the 4.4 betas and was moved to 5.0; there is no configuration flag, but the behaviour can be disabled by overriding the api_platform.state.denormalization_violation_factory service.ApiPlatform\Symfony\Bundle\Test\ApiTestCase and its helpers now live in the new api-platform/test package; the classes in the old namespace are deprecated and will be removed in 6.0 (#7887).^7.4 || ^8.0; support for 6.4 is dropped.feat: support the HTTP QUERY method by @soyuka in https://github.com/api-platform/core/pull/8531
Full Changelog: https://github.com/api-platform/core/compare/v5.0.0-beta.1...v5.0.0-beta.2
api-platform/doctrine-orm now requires doctrine/orm ^2.17 || ^3.3 and doctrine/doctrine-bundle ^2.11.1 || ^3.1, as in 4.4.Also contains v4.4.0-beta.2 and v4.4.0-beta.3 changes.
ci: drop distribution release dispatch by @soyuka in https://github.com/api-platform/core/pull/8500
Full Changelog: https://github.com/api-platform/core/compare/v5.0.0-alpha.3...v5.0.0-beta.1
use_iri_as_id now defaults to false instead of resolving to true with a deprecation, as announced in #8327. The data.id member carries the resource identifier and the IRI moves to data.links.self. Set api_platform.jsonapi.use_iri_as_id to true (Symfony) or 'jsonapi' => ['use_iri_as_id' => true] in config/api-platform.php (Laravel) to keep the previous payload.ApiPlatform\State\Provider\DeserializeProvider no longer accepts a Symfony\Contracts\Translation\TranslatorInterface as its fourth constructor argument, as announced by the deprecation added in 4.4. Denormalization violations and their translation are handled by DenormalizationViolationFactoryInterface, which moves from the fifth to the fourth position. Anyone constructing the provider by hand, or overriding the api_platform.state_provider.deserialize service definition, must drop the translator argument. api-platform/state no longer requires symfony/translation-contracts.Request::getContentType() fallbacks (#8517)@beta stability flag (for example "api-platform/state": "^5.0@beta") instead of @alpha. Installing a 5.0 component no longer pulls a 5.0 alpha of its siblings.api-platform/test is published for the first time: ApiTestCase moves out of api-platform/symfony into its own package (#7887), required as a dev dependency (#8527).ApiPlatform\Symfony\Bundle\ArgumentResolver\CompatibleValueResolverInterface is removed. It aliased either ValueResolverInterface or the Symfony 6 ArgumentValueResolverInterface depending on which existed; since the Symfony floor is ^7.4, only the former can be installed, and Symfony 8 dropped the latter altogether. PayloadArgumentResolver now implements ValueResolverInterface directly.FilterInterface::getDescription() removal is deferred to 6.0 (#8513); it stays deprecated in 5.0.Also contains v4.4.0-beta.1 changes.
test(state): mark the deprecated serializer-aware provider test by @soyuka in https://github.com/api-platform/core/pull/8426
Full Changelog: https://github.com/api-platform/core/compare/v5.0.0-alpha.2...v5.0.0-alpha.3
api-platform/metadata ^5.0.0-alpha.3. Their filters instantiate ApiPlatform\OpenApi\Model\Parameter, which the metadata component only guards behind a class_exists() check from that version on, so an older metadata makes them fatal on an install without api-platform/openapi./contexts/Error and /contexts/ConstraintViolationList are no longer special-cased to the base context; they are built like any other resource context, since exceptions have been resources since 3.2 (#8402).SerializerContextBuilder no longer injects uri_variables into the serialization context — URI variables are parsed by the serializer processor instead (#8402).Also contains v4.4.0-alpha.4 changes.
feat!: remove deprecated APIs scheduled for 5.0
symfony/* ^7.4 || ^8.0 across all components; drop support for Symfony 6.4 and 7.0–7.3 (#8397)@experimental APIs (Elasticsearch, State parameter providers, PropertyAwareFilterInterface, Laravel); @experimental kept only on MCP (#8365)Nothing published for this version
fix(graphql): update existing object on nested input id by @soyuka in https://github.com/api-platform/core/pull/8786
Full Changelog: https://github.com/api-platform/core/compare/v4.4.6...v4.4.7
fix(openapi): remove webhooks and jsonSchemaDialect from 3.0.0 documents by @abp002 in https://github.com/api-platform/core/pull/8722
Full Changelog: https://github.com/api-platform/core/compare/v4.4.5...v4.4.6
fix(state): avoid deprecated PartialDenormalizationException::getErrors() by @dualfroz in https://github.com/api-platform/core/pull/8663
Full Changelog: https://github.com/api-platform/core/compare/v4.4.4...v4.4.5
fix(symfony): avoid deprecated translation command probe by @tacman in https://github.com/api-platform/core/pull/8627
Full Changelog: https://github.com/api-platform/core/compare/v4.4.3...v4.4.4
fix(jsonschema): groups on non-resource class by @soyuka in https://github.com/api-platform/core/pull/8594
Full Changelog: https://github.com/api-platform/core/compare/v4.4.2...v4.4.3
ci: migrate mercure tests to protocol 1.0 by @soyuka in https://github.com/api-platform/core/pull/8566
Full Changelog: https://github.com/api-platform/core/compare/v4.4.1...v4.4.2
fix: name deprecated option in message by @soyuka in https://github.com/api-platform/core/pull/8545
Full Changelog: https://github.com/api-platform/core/compare/v4.4.0...v4.4.1
feat(metadata): allow extending the Link attribute by @soyuka in https://github.com/api-platform/core/pull/8536
Full Changelog: https://github.com/api-platform/core/compare/v4.4.0-beta.3...v4.4.0
withCredentials option to Swagger UI (#8197)422 response for denormalization errors introduced in the 4.4 betas (#8211) has been moved to 5.0. 4.4.0 keeps the 4.3 behaviour: a plain type error on a constrained property returns 400 with a hydra:Error payload. Invalid backed enum values and collect_denormalization_errors mode still return 422, as they did in 4.3.^7.4 || ^8.0 across all components; support for 6.4 is dropped (#8397).api-platform/doctrine-orm requires doctrine/orm ^2.17 || ^3.3. The PARTIAL DQL grammar is absent from 3.0.0 through 3.2.3, so the fetch_partial option was silently a no-op on those versions.doctrine/doctrine-bundle moves to ^2.11.1 || ^3.1. 2.11.0 passes $reportFieldsWhereDeclared to AttributeDriver, which doctrine/orm 3 rejects.fix(doctrine): raise orm floor to ^3.3 by @soyuka in https://github.com/api-platform/core/pull/8534
Full Changelog: https://github.com/api-platform/core/compare/v4.4.0-beta.2...v4.4.0-beta.3
api-platform/doctrine-orm now requires doctrine/orm ^2.17 || ^3.3. The PARTIAL DQL grammar is absent from 3.0.0 through 3.2.3, so the fetch_partial option was silently a no-op on those versions.doctrine/doctrine-bundle moves to ^2.11.1 || ^3.1. 2.11.0 passes $reportFieldsWhereDeclared to AttributeDriver, which doctrine/orm 3 rejects.feat: support the HTTP QUERY method by @soyuka in https://github.com/api-platform/core/pull/8531
Full Changelog: https://github.com/api-platform/core/compare/v4.4.0-beta.1...v4.4.0-beta.2
api-platform/state now requires api-platform/metadata ^4.4.0-beta.2. ParameterProvider reads HttpOperation::METHOD_QUERY, which was introduced in that version.ci: drop distribution release dispatch by @soyuka in https://github.com/api-platform/core/pull/8500
Full Changelog: https://github.com/api-platform/core/compare/v4.4.0-alpha.4...v4.4.0-beta.1
@beta stability flag (for example "api-platform/state": "^4.4@beta") instead of @alpha. Installing a 4.4 component no longer pulls a 4.4 alpha of its siblings.Also contains v4.3.19 changes.
test(state): mark the deprecated serializer-aware provider test by @soyuka in https://github.com/api-platform/core/pull/8426
Full Changelog: https://github.com/api-platform/core/compare/v4.4.0-alpha.3...v4.4.0-alpha.4
api-platform/metadata ^4.4.0-alpha.4. Their filters instantiate ApiPlatform\OpenApi\Model\Parameter, which the metadata component only guards behind a class_exists() check from that version on, so an older metadata makes them fatal on an install without api-platform/openapi.Also contains v4.3.18 changes.
fix(state): correct composer "conflicts" key to "conflict"
symfony/* ^7.4 || ^8.0 across all components; drop support for Symfony 6.4 and 7.0–7.3 (#8397)@experimental APIs (Elasticsearch, State parameter providers, PropertyAwareFilterInterface, Laravel ParameterValidatorProvider); @experimental now kept only on MCP (#8398)symfony/* ^7.4 || ^8.0 across all components; drop support for Symfony 6.4 and 7.0–7.3 (#8397)@experimental APIs (Elasticsearch, State parameter providers, PropertyAwareFilterInterface, Laravel); @experimental kept only on MCP (#8365)test(serializer): skip union-collection IRI test on legacy property-info by @soyuka in https://github.com/api-platform/core/pull/8355
Full Changelog: https://github.com/api-platform/core/compare/v4.4.0-alpha.1...v4.4.0-alpha.2
api-platform/metadata ^4.4@alpha so inter-package dependencies resolve to 4.4 (fixes a broken composer require api-platform/laravel install where SortFilterInterface was missing)ci: trim phpunit-components matrix and merge fail-deprecation by @soyuka in https://github.com/api-platform/core/pull/8214
withCredentials option to Swagger UI by @cay89 in https://github.com/api-platform/core/pull/8197Full Changelog: https://github.com/api-platform/core/compare/v4.3.14...v4.4.0-alpha.1
withCredentials option to Swagger UI (#8197)ci: test 4.3 on Symfony 6.4 by @soyuka in https://github.com/api-platform/core/pull/8607
Full Changelog: https://github.com/api-platform/core/compare/v4.3.20...v4.3.21
fix(symfony): hide graphiql link when graphql is disabled by @ousamabenyounes in https://github.com/api-platform/core/pull/8576
Full Changelog: https://github.com/api-platform/core/compare/v4.3.19...v4.3.20
ci: drop distribution release dispatch by @soyuka in https://github.com/api-platform/core/pull/8500
Full Changelog: https://github.com/api-platform/core/compare/v4.3.18...v4.3.19
type into anyOf branches for wider client compatibility (#8522)test(state): mark the deprecated serializer-aware provider test by @soyuka in https://github.com/api-platform/core/pull/8426
Full Changelog: https://github.com/api-platform/core/compare/v4.3.17...v4.3.18
security (Symfony) and policies (Laravel), so unauthorized items are filtered out of tools/list and resources/list instead of only failing at call time (#8435).mcp/sdk ^0.8 and symfony/mcp-bundle ^0.13.fix(doctrine): fetch_data=false reference for stateOptions resources by @bendavies in https://github.com/api-platform/core/pull/8387
Full Changelog: https://github.com/api-platform/core/compare/v4.3.16...v4.3.17
fix(jsonschema): respect readableLink for resource-typed properties on non-resource parents by @wuchen90 in https://github.com/api-platform/core/pull/
Full Changelog: https://github.com/api-platform/core/compare/v4.3.15...v4.3.16
fix(serializer): accept union-typed IRI collections on denormalization by @soyuka in https://github.com/api-platform/core/pull/8339
Full Changelog: https://github.com/api-platform/core/compare/v4.3.14...v4.3.15
fix(mcp): support mcp/sdk 0.6 ResourceDefinition in Loader by @soyuka in https://github.com/api-platform/core/pull/8302
Full Changelog: https://github.com/api-platform/core/compare/v4.3.13...v4.3.14
fix(elasticsearch): coerce document _id to declared int identifier type by @soyuka in https://github.com/api-platform/core/pull/8296
Full Changelog: https://github.com/api-platform/core/compare/v4.3.12...v4.3.13
Fixes CVE-2026-54164 (GHSA-9rjg-x2p2-h68h) — type confusion: relation IRIs were not type-checked, so a writable relation could be assigned a resource…
Fixes CVE-2026-54164 (GHSA-9rjg-x2p2-h68h) — type confusion: relation IRIs were not type-checked, so a writable relation could be assigned a resource of the wrong type.
Full Changelog: https://github.com/api-platform/core/compare/v4.3.11...v4.3.12
fix(jsonschema): don't leak operation deprecation onto sub-schemas by @soyuka in https://github.com/api-platform/core/pull/8289
Full Changelog: https://github.com/api-platform/core/compare/v4.3.10...v4.3.11
PATCH: an embedded @id on a nested writable relation now replaces the currently-linked relation when it points to a different resource. A dangling embedded @id now returns a 400 instead of being silently ignored (it previously mutated the existing relation in place). See #8274.fix(swagger): fix SwaggerUI CSS override by @vincentchalamon in https://github.com/api-platform/core/pull/8245
Full Changelog: https://github.com/api-platform/core/compare/v4.3.9...v4.3.10
fix(test): capture streamedresponse body in test client response by @soyuka in https://github.com/api-platform/core/pull/8235
Full Changelog: https://github.com/api-platform/core/compare/v4.3.8...v4.3.9
ErrorProvider: fix typo in _api_operation_nme by @Maxcastel in https://github.com/api-platform/core/pull/7637
Full Changelog: https://github.com/api-platform/core/compare/v4.3.7...v4.3.8
fix(openapi): include jsonapi collection schema by @Will-thom in https://github.com/api-platform/core/pull/8190
Full Changelog: https://github.com/api-platform/core/compare/v4.3.6...v4.3.7
fix(serializer): translate PropertyAccess type mismatches to NotNormalizableValueException by @soyuka in https://github.com/api-platform/core/pull/796
Full Changelog: https://github.com/api-platform/core/compare/v4.3.5...v4.3.6
chore: allow doctrine/collections ^v3 by @soyuka in https://github.com/api-platform/core/pull/7947
Full Changelog: https://github.com/api-platform/core/compare/v4.3.4...v4.3.5
refactor(metadata): use logic from ResourceClassInfoTrait by @Maxcastel in https://github.com/api-platform/core/pull/7928
ResourceClassInfoTrait::isResourceClass() is always true by @Maxcastel in https://github.com/api-platform/core/pull/7924Full Changelog: https://github.com/api-platform/core/compare/v4.3.3...v4.3.4
ResourceClassInfoTrait::isResourceClass() is always true (#7924)fix(state): do not map to input class in ObjectMapperProvider by @soyuka in https://github.com/api-platform/core/pull/7892
Full Changelog: https://github.com/api-platform/core/compare/v4.3.2...v4.3.3
chore(laravel): expand version constraints for Laravel 13 support by @soyuka in https://github.com/api-platform/core/pull/7860
Full Changelog: https://github.com/api-platform/core/compare/v4.3.1...v4.3.2
cs: typo in deprecation message for 'xkey' config by @melany-mai in https://github.com/api-platform/core/pull/7851
Full Changelog: https://github.com/api-platform/core/compare/v4.3.0...v4.3.1
Introduce api-platform/mcp component
api-platform/mcp component (#7703)isGranted is now evaluated before the provider, preventing unnecessary database queries on unauthorized requests (#7500)ne (not equal) operator (#7814)caseSensitive option for PartialSearchFilter (#7675)SkipAutoconfigure attribute for Laravel (#7467)Allow and Accept-Post response headers (#6917)gen_id global configuration option (#7775)@type with output and itemUriTemplate: uses the resource class name instead of the output DTO class nameproperty (#7681): throws InvalidArgumentException if missing (unless you use a :property placeholder)@id uses #ShortName (#7771): replaces schema.org type URIs — clients should expect class @id and property range changesenable_scalar: false if unwantedSee the full changelog with all bug fixes and detailed upgrade notes on the 4.3 branch CHANGELOG.md.
Full Changelog: https://github.com/api-platform/core/compare/v4.2.21...v4.3.0
SkipAutoconfigure attribute (#7467)@type with output and itemUriTemplate: When using output with itemUriTemplate on a collection operation, the JSON-LD @type now uses the resource class name instead of the output DTO class name for semantic consistency with itemUriTemplate behavior. Update any client code that relies on the DTO class name in @type.property (#7681): Doctrine parameter-based filters (ExactFilter, IriFilter, PartialSearchFilter, UuidFilter) now throw InvalidArgumentException if the property attribute is missing. If you have filter parameters without an explicit property, you must either add one or use the :property placeholder in your parameter name.$classMetadata->markReadOnly()) will no longer expose PUT and PATCH operations. Clients sending PUT/PATCH to these resources will receive a 404. If you need write operations on readonly entities, explicitly define them in your ApiResource attribute.@id now always uses #ShortName (#7771): Hydra documentation classes now consistently use #ShortName as their @id instead of schema.org type URIs (e.g. schema:Product). This resolves class identifier collisions when multiple resources shared the same semantic type, which previously caused api-doc-parser conflation. Semantic types configured via types are now exposed through rdfs:subClassOf. Clients should expect class @id and property range changes in the Hydra documentation if resources had custom types configured.isGranted evaluated before provider (#7500): Security expressions are now evaluated before the state provider runs. Expressions that do not reference the object variable will be checked earlier (at the pre_read stage), improving security by preventing unnecessary database queries on unauthorized requests. Expressions that reference object still wait for the provider to resolve the entity. Review any security expressions that relied on provider side-effects running before authorization.Allow and Accept-Post headers per the Linked Data Platform specification. These are informational headers that help clients discover API capabilities and should not break existing integrations.?ui=scalar. To disable it, set enable_scalar: false in your API Platform configuration.fix(odm): partial pagination limit the documents entering $facet by @divine in https://github.com/api-platform/core/pull/7822
Full Changelog: https://github.com/api-platform/core/compare/v4.3.0-beta.1...v4.3.0-beta.2
fix(serializer): apply API Platform name converter to input/output DTOs by @soyuka in https://github.com/api-platform/core/pull/7779
Full Changelog: https://github.com/api-platform/core/compare/v4.3.0-alpha.2...v4.3.0-beta.1
fix(jsonld): restore item_uri_template @type resolution after 4.2 merge by @soyuka in https://github.com/api-platform/core/pull/7764
Hydra class @id now always uses #ShortName (#7771): Hydra documentation classes now consistently use #ShortName as their @id instead of schema.org type URIs (e.g. schema:Product). This properly resolves class identifier collisions when multiple resources shared the same semantic type, which previously caused api-doc-parser conflation. Semantic types configured via types are now exposed through rdfs:subClassOf. Clients should expect class @id and property range changes in the Hydra documentation if resources had custom types configured.
Full Changelog: https://github.com/api-platform/core/compare/v4.3.0-alpha.1...v4.3.0-alpha.2
feat(mcp): introduce api-platform/mcp component
SkipAutoconfigure attribute (#7467)output with itemUriTemplate on a collection operation, the JSON-LD @type will now use the resource class name instead of the output DTO class name for semantic consistency with itemUriTemplate behavior.Full Changelog: https://github.com/api-platform/core/compare/v4.2.16...v4.3.0-alpha.1
Fixes CVE-2026-54164 (GHSA-9rjg-x2p2-h68h) — type confusion: relation IRIs were not type-checked, so a writable relation could be assigned a resource…
Fixes CVE-2026-54164 (GHSA-9rjg-x2p2-h68h) — type confusion: relation IRIs were not type-checked, so a writable relation could be assigned a resource of the wrong type.
Full Changelog: https://github.com/api-platform/core/compare/v4.2.25...v4.2.26
ErrorProvider: fix typo in _api_operation_nme by @Maxcastel in https://github.com/api-platform/core/pull/7637
Full Changelog: https://github.com/api-platform/core/compare/v4.2.24...v4.2.25
fix(state): do not map to input class in ObjectMapperProvider by @soyuka in https://github.com/api-platform/core/pull/7892
Full Changelog: https://github.com/api-platform/core/compare/v4.2.23...v4.2.24
chore: remove annotation namespaces by @soyuka in https://github.com/api-platform/core/pull/7861
Full Changelog: https://github.com/api-platform/core/compare/v4.2.22...v4.2.23
cs: typo in deprecation message for 'xkey' config by @melany-mai in https://github.com/api-platform/core/pull/7851
Full Changelog: https://github.com/api-platform/core/compare/v4.2.21...v4.2.22
20ced5fca fix(laravel): clear SkolemIriConverter state between requests
fix(openapi): allow Operations to override global options in getPaginationParameters by @jamesisaac in https://github.com/api-platform/core/pull/7807
Full Changelog: https://github.com/api-platform/core/compare/v4.2.19...v4.2.20
One column per quarter.