craftcms/element-api breaking changes
craftcms/element-api 5.0.0 (November 12, 2026) is its newest release with breaking changes, 17 of them. The first: Drops the Yii 2 adapter in craftcms/element-api 5.0.0. Every breaking API change we have recorded in craftcms/element-api on Packagist: 17 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 5.0.0, released November 12, 2026. MIT license. Source repository
Its 5.0.0 release requires PHP 8.5 or later. PHP end of life dates.
craftcms/element-api 5.0.0 breaking changes
- Removed
The package no longer uses the Yii 2 adapter, since it is ported to Craft 6's Laravel architecture. github.com - Removed
The package now requires Craft 6 and PHP 8.5, so older PHP versions are no longer supported. github.com - Removed
beforeSendData
Listen to the new CraftCms\ElementApi\Events\SendingData Laravel event instead. github.com - Removed
craft\elementapi\controllers\DefaultController
craft\elementapi\controllers\DefaultController was removed in craftcms/element-api 5.0.0 packagist.org - Removed
craft\elementapi\DataEvent
Use the new CraftCms\ElementApi\Events\SendingData Laravel event instead. packagist.org - Removed
craft\elementapi\JsonFeedV1Serializer
craft\elementapi\JsonFeedV1Serializer was removed in craftcms/element-api 5.0.0 packagist.org - Removed
craft\elementapi\Plugin
craft\elementapi\Plugin was removed in craftcms/element-api 5.0.0 packagist.org - Removed
craft\elementapi\ResourceAdapterInterface
craft\elementapi\ResourceAdapterInterface was removed in craftcms/element-api 5.0.0 packagist.org - Removed
craft\elementapi\resources\ElementResource
craft\elementapi\resources\ElementResource was removed in craftcms/element-api 5.0.0 packagist.org - Removed
craft\elementapi\Settings
craft\elementapi\Settings was removed in craftcms/element-api 5.0.0 packagist.org - Removed
first
Use the one endpoint setting instead of first. github.com - Renamed
Plugin classes moved to the CraftCms\ElementApi namespace, so existing imports must be updated. github.com - Renamed
craft\elementapi\ElementTransformer
Use CraftCms\ElementApi\Transformers\ElementTransformer instead. packagist.org - Renamed
craft\elementapi\PaginatorAdapter
Use CraftCms\ElementApi\Support\PaginatorAdapter instead. packagist.org - Behavior changed
Responses no longer set cookies, so code relying on cookies from endpoints must change. github.com - Configuration changed
The config file now lives at config/craft/element-api.php instead of config/element-api.php. github.com - Signature changed
craft\elementapi\PaginatorAdapter::__construct
Was public function __construct(int $elementsPerPage, int $totalElements, string $pageParam); now public function __construct(int $elementsPerPage, int $totalElements, string $pageParam, protected Request $request). packagist.org
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.