NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
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.
chore(symfony): doctrine controller_resolver.auto_mapping deprecation by @soyuka in https://github.com/api-platform/core/pull/6470
Full Changelog: https://github.com/api-platform/core/compare/v3.3.8...v3.3.9
Your coding agent can read these notes before it upgrades. Set up the MCP server →
feat(state): list all violations during query parameters validation by @deguif in https://github.com/api-platform/core/pull/6442
Full Changelog: https://github.com/api-platform/core/compare/v3.3.7...v3.3.8
These are enhancement to the experimental Parameter feature:
fix(state): provider as ParameterProviderInterface by @soyuka in https://github.com/api-platform/core/pull/6430
Full Changelog: https://github.com/api-platform/core/compare/v3.3.6...v3.3.7
chore(symfony): deprecations by @soyuka in https://github.com/api-platform/core/pull/6401
Full Changelog: https://github.com/api-platform/core/compare/v3.3.5...v3.3.6
Notes:
The patch at #6426 introduces a new validateAfterResolver option to mitigate the BC-break introduced in 3.3 that does the validation before calling the resolver:
new Mutation(
resolver: 'app.graphql.mutation_resolver.activity_log',
name: 'create',
validateAfterResolver: true,
validate: false
)
fix(symfony): documentation request _format by @soyuka in https://github.com/api-platform/core/pull/6390
Full Changelog: https://github.com/api-platform/core/compare/v3.3.4...v3.3.5
fix(symfony): store original data without clone by @soyuka in https://github.com/api-platform/core/pull/6367
Full Changelog: https://github.com/api-platform/core/compare/v3.3.3...v3.3.4
fix(symfony): no read should throw on wrong uri variables by @soyuka in https://github.com/api-platform/core/pull/6357
Full Changelog: https://github.com/api-platform/core/compare/v3.3.2...v3.3.3
fix(symfony): define use_symfony_listeners by @soyuka in https://github.com/api-platform/core/pull/6344
You can remove the event_listeners_backward_compatibility_layer flag and set use_symfony_listeners instead. The use_symfony_listeners should be true if you use controllers or if you rely on Symfony event listeners.
Note that now flags like read can be forced to true if you want to call a Provider even on POST operations. These are the rules we set up on runtime if no value has been set:
if (null === $operation->canValidate()) {
$operation = $operation->withValidate(!$request->isMethodSafe() && !$request->isMethod('DELETE'));
}
if (null === $operation->canRead()) {
$operation = $operation->withRead($operation->getUriVariables() || $request->isMethodSafe());
}
if (null === $operation->canDeserialize()) {
$operation = $operation->withDeserialize(\in_array($operation->getMethod(), ['POST', 'PUT', 'PATCH'], true));
}
Previously listeners did the checks before reading our flags and you could not force the values.
Full Changelog: https://github.com/api-platform/core/compare/v3.3.0...v3.3.1
Full Changelog: https://github.com/api-platform/core/compare/v3.3.0...v3.3.2
You can remove the event_listeners_backward_compatibility_layer flag and set use_symfony_listeners instead. The use_symfony_listeners should be true if you use controllers or if you rely on Symfony event listeners. Note that now flags like read can be forced to true if you want to call a Provider even on POST operations. These are the rules we set up on runtime if no value has been set:
if (null === $operation->canValidate()) {
$operation = $operation->withValidate(!$request->isMethodSafe() && !$request->isMethod('DELETE'));
}
if (null === $operation->canRead()) {
$operation = $operation->withRead($operation->getUriVariables() || $request->isMethodSafe());
}
if (null === $operation->canDeserialize()) {
$operation = $operation->withDeserialize(\in_array($operation->getMethod(), ['POST', 'PUT', 'PATCH'], true));
}
Previously listeners did the checks before reading our flags and you could not force the values.
When using GraphQl, with event_listeners_backward_compatibility_layer: true, mutation resolver gets called before validation, when using false (the future default) validation occurs on the user's input.
fix(symfony): define use_symfony_listeners by @soyuka in https://github.com/api-platform/core/pull/6344
You can remove the event_listeners_backward_compatibility_layer flag and set use_symfony_listeners instead. The use_symfony_listeners should be true if you use controllers or if you rely on Symfony event listeners.
Note that now flags like read can be forced to true if you want to call a Provider even on POST operations. These are the rules we set up on runtime if no value has been set:
if (null === $operation->canValidate()) {
$operation = $operation->withValidate(!$request->isMethodSafe() && !$request->isMethod('DELETE'));
}
if (null === $operation->canRead()) {
$operation = $operation->withRead($operation->getUriVariables() || $request->isMethodSafe());
}
if (null === $operation->canDeserialize()) {
$operation = $operation->withDeserialize(\in_array($operation->getMethod(), ['POST', 'PUT', 'PATCH'], true));
}
Previously listeners did the checks before reading our flags and you could not force the values.
Full Changelog: https://github.com/api-platform/core/compare/v3.3.0...v3.3.1
These namespaces are deprecated:
Read the API Platform 3.3 blog post for details on the 3.3 release.
getOperation Expression Language function on Mercure topics by @vincentchalamon in https://github.com/api-platform/core/pull/5854You can remove the event_listeners_backward_compatibility_layer flag and set use_symfony_listeners instead.
If you use controllers you should use:
api_platform:
use_symfony_listeners: true
The use_symfony_listeners should be true if you use controllers or if you rely on Symfony event listeners.
Note that now flags like read can be forced to true if you want to call a Provider even on POST operations. These are the rules we set up on runtime if no value has been set:
if (null === $operation->canValidate()) {
$operation = $operation->withValidate(!$request->isMethodSafe() && !$request->isMethod('DELETE'));
}
if (null === $operation->canRead()) {
$operation = $operation->withRead($operation->getUriVariables() || $request->isMethodSafe());
}
if (null === $operation->canDeserialize()) {
$operation = $operation->withDeserialize(\in_array($operation->getMethod(), ['POST', 'PUT', 'PATCH'], true));
}
Previously listeners did the checks before reading our flags and you could not force the values. You can now force an operation state, for example:
<?php
#[Delete(validate: true)]
#[Post(read: true)]
class Book {}
A new interface ApiPlatform\Serializer\TagCollectorInterface allows to collect cache tags (IRIs) during serialization instead of using API Platform defaults.
An experimental feature (#5290) gives the ability to use security on sub resource links.
These namespaces are deprecated:
ApiPlatform\ApiApiPlatform\ExceptionApiPlatform\ProblemApiPlatform\ActionApiPlatform\UtilMost of the classes have moved to ApiPlatform\Metadata.
Full Changelog: https://github.com/api-platform/core/compare/v3.2.22...v3.3.0
fix(guide): change deprecated ValidationException by @soyuka in https://github.com/api-platform/core/pull/6295
Full Changelog: https://github.com/api-platform/core/compare/v3.3.0-beta.1...v3.3.0-beta.2
23a9f2a7f fix(openapi): webhook has pathItem
The v3.3.0-beta.1 introduces a new QueryParameter attribute to improve the filtering system.
fix(hydra): remove dependency from ApiPlatform/Api dependency by @aegypius in https://github.com/api-platform/core/pull/6154
fix(hydra): remove dependency from ApiPlatform/Api dependency by @aegypius in https://github.com/api-platform/core/pull/6154
fix(graphql): Embedded nullable relations graphql by @Koenstell in https://github.com/api-platform/core/pull/6100
fix(symfony): reduce json-problem dependencies by @soyuka in https://github.com/api-platform/core/pull/6169
feat: Paginators for Doctrine Collection & Selectable by @priyadi in https://github.com/api-platform/core/pull/6153
feat(graphql): partial pagination for page based pagination by @xavierleune in https://github.com/api-platform/core/pull/6120
feat: improve ApiProperty::security using property name by @vincentchalamon in https://github.com/api-platform/core/pull/5853
feat(symfony): add getOperation Expression Language function on Mercure topics by @vincentchalamon in https://github.com/api-platform/core/pull/5854
Full Changelog: https://github.com/api-platform/core/compare/v3.3.0-alpha.1...v3.3.0-alpha.2
These namespaces are deprecated:
fix(serializer): fix TagCollector for JSONAPI and HAL format by @usu in https://github.com/api-platform/core/pull/6076
fix(graphql): use normalization context to get item from IRI by @bkosun in https://github.com/api-platform/core/pull/5915
fix(doctrine): constants case sensitive values by @soyuka in https://github.com/api-platform/core/pull/6066
feat(serializer): collect cache tags using a TagCollector by @usu in https://github.com/api-platform/core/pull/5758
feat: allow to extend link handling by @soyuka in https://github.com/api-platform/core/pull/6061
feat(parametervalidator): create api-platform/parameter-validator component by @aegypius in https://github.com/api-platform/core/pull/6080
feat(subresource): Link Security by @KDederichs in https://github.com/api-platform/core/pull/5290
feat(symfony): request and view kernel listeners by @soyuka in https://github.com/api-platform/core/pull/6102
feat(metadata): headers configuration by @soyuka in https://github.com/api-platform/core/pull/6074
Components:
api-platform/parametervalidatorapi-platform/doctrine-commonapi-platform/doctrine-ormapi-platform/doctrine-odmA new interface ApiPlatform\Serializer\TagCollectorInterface allows to collect cache tags (IRIs) during serialization instead of using API Platform defaults.
An experimental feature (#5290) gives the ability to use security on sub resource links.
If you use controllers you should use:
api_platform:
use_symfony_listeners: true
The default is false you can get rid of the event_listeners_backward_compatibility_layer flag. You can now force an operation state, for example:
<?php
#[Delete(validate: true)]
#[Post(read: true)]
class Book {}
These namespaces are deprecated:
ApiPlatform\ApiApiPlatform\ExceptionApiPlatform\ProblemApiPlatform\ActionApiPlatform\UtilMost of the classes have moved to ApiPlatform\Metadata.
Full Changelog: https://github.com/api-platform/core/compare/v3.2.11...v3.3.0-alpha.1
Components:
api-platform/parametervalidatorapi-platform/doctrine-commonapi-platform/doctrine-ormapi-platform/doctrine-odmA new interface ApiPlatform\Serializer\TagCollectorInterface allows to collect cache tags (IRIs) during serialization instead of using API Platform defaults.
An experimental feature (#5290) gives the ability to use security on sub resource links.
If you use controllers you should use:
api_platform:
use_symfony_listeners: true
The default is false you can get rid of the event_listeners_backward_compatibility_layer flag. You can now force an operation state, for example:
<?php
#[Delete(validate: true)]
#[Post(read: true)]
class Book {}
These namespaces are deprecated:
ApiPlatform\ApiApiPlatform\ExceptionApiPlatform\ProblemApiPlatform\ActionApiPlatform\UtilMost of the classes have moved to ApiPlatform\Metadata.
If a format is not specified in either the global configuration or the outputFormats of an operation, you'll get a 406 Not Acceptable error:
api_platform:
formats:
jsonld: ['application/ld+json']
form: ['multipart/form-data']
fix: remove useless deprecation by @nikophil in https://github.com/api-platform/core/pull/6481
Full Changelog: https://github.com/api-platform/core/compare/v3.2.25...v3.2.26
fix(metadata): wrong schema generated if openapicontext set on array by @monitaurus in https://github.com/api-platform/core/pull/6431
Full Changelog: https://github.com/api-platform/core/compare/v3.2.24...v3.2.25
chore(symfony): deprecations (#6401) by @soyuka in https://github.com/api-platform/core/pull/6405
Full Changelog: https://github.com/api-platform/core/compare/v3.2.23...v3.2.24
Fix typo on "Test your API" guide page by @alamirault in https://github.com/api-platform/core/pull/6351
Full Changelog: https://github.com/api-platform/core/compare/v3.2.22...v3.2.23
fix(doctrine): Doctrine 3 ApiPlatform\Doctrine\EventListener\PurgeHttpCacheListener uses deprecated ClassUtils class. by @wtfzdotnet in https://github…
Full Changelog: https://github.com/api-platform/core/compare/v3.2.21...v3.2.22
fix(symfony): conflict for symfony/framework-bundle versions that break enum serializing by @GwendolenLynch in https://github.com/api-platform/core/pu
Full Changelog: https://github.com/api-platform/core/compare/v3.2.20...v3.2.21
GraphQL: Errors with nullish ManyToOne-Relation when using new ResolverFactory (for version 3.2) by @jotwea in https://github.com/api-platform/core/pu
Full Changelog: https://github.com/api-platform/core/compare/v3.2.19...v3.2.20
test: decorate name converter as symfony interface changed by @soyuka in https://github.com/api-platform/core/pull/6261
Full Changelog: https://github.com/api-platform/core/compare/v3.2.18...v3.2.19
fix(jsonschema) don't skip remaining multiple union types by @GwendolenLynch in https://github.com/api-platform/core/pull/6223
Full Changelog: https://github.com/api-platform/core/compare/v3.2.17...v3.2.18
fix(metadata): fix Operations sort by @vincentchalamon in https://github.com/api-platform/core/pull/6206
Full Changelog: https://github.com/api-platform/core/compare/v3.2.16...v3.2.17
fix(serializer): fix union types on collection denormalization by @vincentchalamon in https://github.com/api-platform/core/pull/6192
Full Changelog: https://github.com/api-platform/core/compare/v3.2.15...v3.2.16
fix(symfony): revert breaking change on attributes extractor by @soyuka in https://github.com/api-platform/core/pull/6170
Full Changelog: https://github.com/api-platform/core/compare/v3.2.14...v3.2.15
fix(openapi): method OpenApi::getComponents must always return a Components object by @vincentchalamon in https://github.com/api-platform/core/pull/61
Full Changelog: https://github.com/api-platform/core/compare/v3.2.13...v3.2.14
fix(hydra): move owl:maxCardinality from JsonSchema to Hydra by @vincentchalamon in https://github.com/api-platform/core/pull/6136
Full Changelog: https://github.com/api-platform/core/compare/v3.2.12...v3.2.13
docs: better generics support for State\ProcessorInterface by @dunglas in https://github.com/api-platform/core/pull/6103
Full Changelog: https://github.com/api-platform/core/compare/v3.2.11...v3.2.12
MongoDB ODM is now compatible with Symfony 7.
fix(symfony): use Type constraint violation code instead of exception code by @norkunas in https://github.com/api-platform/core/pull/6064
For OpenAPI 3.0, the spec_version=3.0.0 query parameter will force OpenAPI to the 3.0 version. This option is also available through the command line.
Full Changelog: https://github.com/api-platform/core/compare/v3.2.10...v3.2.11
For OpenAPI 3.0, the spec_version=3.0.0 query parameter will force OpenAPI to the 3.0 version. This option is also available through the command line.
Hotfix/fix attribute filter parsing by @celinederoland in https://github.com/api-platform/core/pull/6062
Full Changelog: https://github.com/api-platform/core/compare/v3.2.9...v3.2.10
fix: Remove comparator conflict in 3.2 by @jderusse in https://github.com/api-platform/core/pull/6063
Full Changelog: https://github.com/api-platform/core/compare/v3.2.8...v3.2.9
ci: php 8.3 by @soyuka in https://github.com/api-platform/core/pull/6013
Full Changelog: https://github.com/api-platform/core/compare/v3.2.7...v3.2.8
chore: support symfony 7 by @soyuka in https://github.com/api-platform/core/pull/6009
Symfony 7 support.
Full Changelog: https://github.com/api-platform/core/compare/v3.2.6...v3.2.7
Symfony 7 support.
chore(dependabot): add dependabot by @sad270 in https://github.com/api-platform/core/pull/5947
To have errors backward compatible with 3.1, use:
api_platform:
defaults:
extra_properties:
rfc_7807_compliant_errors: false
New extension points are available using Errors with rfc_7807_compliant_errors: true such as Error provider and Error Resource
Full Changelog: https://github.com/api-platform/core/compare/v3.2.5...v3.2.6
To have errors backward compatible with 3.1, use:
api_platform:
defaults:
extra_properties:
rfc_7807_compliant_errors: false
New extension points are available using Errors with rfc_7807_compliant_errors: true such as Error provider and Error Resource
Full Changelog: https://github.com/api-platform/core/compare/v3.2.4...v3.2.5
Full Changelog: https://github.com/api-platform/core/compare/v3.2.4...v3.2.5
436921f3b fix(serializer): json violation list normalizer
0f015214c fix(symfony): 404 wrongly normalized
fix: misnamed, so unused, variable in UriVariablesResolverTrait by @paullallier in https://github.com/api-platform/core/pull/5898
Full Changelog: https://github.com/api-platform/core/compare/v3.2.1...v3.2.2
Note:
extra_properties.skip_deprecated_exception_normalizers is set to false so that decorating Error normalizers works. Set it to true to avoid deprecations and decorate the corresponding ItemNormalizer instead.
fix(metadata): interface breaking in 3.2 by @soyuka in https://github.com/api-platform/core/pull/5883
Full Changelog: https://github.com/api-platform/core/compare/v3.2.0...v3.2.1
feat: deprecate not setting formats manually by @soyuka in https://github.com/api-platform/core/pull/5808
Fixes:
Full Changelog: https://github.com/api-platform/core/compare/v3.1.15...v3.2.0
Use composer recipes:update to update your configuration file. The default configuration file is:
api_platform:
title: Hello API Platform
version: 1.0.0
formats:
jsonld: ['application/ld+json']
docs_formats:
jsonld: ['application/ld+json']
jsonopenapi: ['application/vnd.openapi+json']
html: ['text/html']
defaults:
stateless: true
cache_headers:
vary: ['Content-Type', 'Authorization', 'Origin']
extra_properties:
standard_put: true
rfc_7807_compliant_errors: true # this will be the default value in 4.x
event_listeners_backward_compatibility_layer: false # use symfony event listeners
keep_legacy_inflector: false # use doctrine/inflector
Listeners will not get removed in API Platform 4 but will rather use our new Providers and Processors. You can now force the request to go through a particular state for example:
#[Post(read: true)] // to force reading even though it's a POST
ApiPlatform\Api got moved to ApiPlatform\Metadata
Adds assertMercureUpdateMatchesJsonSchema(Update $update, array $topics, array|object|string $jsonSchema = '', bool $private = false, string $id = null, string $type = null, int $retry = null, string $message = '')
The handle links feature is experimental
When using GraphQl, with event_listeners_backward_compatibility_layer: true, mutation resolver gets called before validation, when using false (the future default) validation occurs on the user's input.
feat: deprecate not setting formats manually by @soyuka in https://github.com/api-platform/core/pull/5808
collectDenormalizationErrors by @vincentchalamon in https://github.com/api-platform/core/pull/5844Full Changelog: https://github.com/api-platform/core/compare/v3.2.0-alpha.2...v3.2.0-beta.2
Notes:
ApiPlatform\Api got moved to ApiPlatform\Metadatafeat: deprecate not setting formats manually by @soyuka in https://github.com/api-platform/core/pull/5808
Full Changelog: https://github.com/api-platform/core/compare/v3.2.0-alpha.2...v3.2.0-beta.1
Add elasticsearch 8 compatibility by @soyuka in https://github.com/api-platform/core/pull/5795
Full Changelog: https://github.com/api-platform/core/compare/v3.2.0-alpha.1...v3.2.0-alpha.2
Notes:
assertMercureUpdateMatchesJsonSchema(Update $update, array $topics, array|object|string $jsonSchema = '', bool $private = false, string $id = null, string $type = null, int $retry = null, string $message = '')Bugfix: Respect input DTO without adding additional id field by @jotwea in https://github.com/api-platform/core/pull/5095
Full Changelog: https://github.com/api-platform/core/compare/v3.1.15...v3.2.0-alpha.1
fix(doctrine): test Doctrine Types:ARRAY existence before using it by @fmata in https://github.com/api-platform/core/pull/6333
Full Changelog: https://github.com/api-platform/core/compare/v3.1.28...v3.1.29
fix(symfony): context not serializable when session by @MariusJam in https://github.com/api-platform/core/pull/6302
Full Changelog: https://github.com/api-platform/core/compare/v3.1.27...v3.1.28
Various fixes for Symfony and Doctrine on 3.1 by @soyuka in https://github.com/api-platform/core/pull/6200
Full Changelog: https://github.com/api-platform/core/compare/v3.2.18...v3.1.27
Add support for MongoDB ODM Bundle v5 with Symfony 7.0 full compatibility by @GromNaN in https://github.com/api-platform/core/pull/6090
Full Changelog: https://github.com/api-platform/core/compare/v3.1.25...v3.1.26
fix(symfony): use Type constraint violation code instead of exception code by @norkunas in https://github.com/api-platform/core/pull/6064
Full Changelog: https://github.com/api-platform/core/compare/v3.1.24...v3.1.25
ci: use sebastian/comparator<5.0 by @soyuka in https://github.com/api-platform/core/pull/6044
Full Changelog: https://github.com/api-platform/core/compare/v3.1.23...v3.1.24
chore: support symfony 7 by @soyuka in https://github.com/api-platform/core/pull/6009
Full Changelog: https://github.com/api-platform/core/compare/v3.1.22...v3.1.23
fix: misnamed, so unused, variable in UriVariablesResolverTrait by @paullallier in https://github.com/api-platform/core/pull/5898
Full Changelog: https://github.com/api-platform/core/compare/v3.1.21...v3.1.22
minor: remove reference to .woff fonts-format by @Chris53897 in https://github.com/api-platform/core/pull/5730
Full Changelog: https://github.com/api-platform/core/compare/v3.1.20...v3.1.21
eebc7c5a0 fix: add itemUriTemplate to resources.xsd
docs: wrong comment inside guide by @soyuka in https://github.com/api-platform/core/pull/5838
Full Changelog: https://github.com/api-platform/core/compare/v3.1.18...v3.1.19
chore: allow psr/container v1 by @bendavies in https://github.com/api-platform/core/pull/5811
Full Changelog: https://github.com/api-platform/core/compare/v3.1.17...v3.1.18
Fixes undefined property error in CollectionNormalizer.php, line 46 by @priyadi in https://github.com/api-platform/core/pull/5776
Full Changelog: https://github.com/api-platform/core/compare/v3.1.15...v3.1.17
Fixes undefined property error in CollectionNormalizer.php, line 46 by @priyadi in https://github.com/api-platform/core/pull/5776
Full Changelog: https://github.com/api-platform/core/compare/v3.1.15...v3.1.16
fix: link without identifier by @soyuka in https://github.com/api-platform/core/pull/5765
item_uri_template by @vincentchalamon in https://github.com/api-platform/core/pull/5663Full Changelog: https://github.com/api-platform/core/compare/v3.1.14...v3.1.15
One column per quarter.