---
title: "craftcms/element-api 5.0.0 Breaking Changes on Packagist"
description: "What each craftcms/element-api release removed, renamed or changed: 17 breaking changes in 1 version on Packagist, each with its source."
canonical_url: https://since.dev/packages/packagist/craftcms/element-api
last_updated: 2026-12-04
---

# 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

Latest version `5.0.0`, released November 12, 2026. MIT license. [Source repository](https://github.com/craftcms/element-api)

Its 5.0.0 release requires [PHP 8.5](https://since.dev/calendar/php/8.5.md) or later. [PHP end of life dates](https://since.dev/calendar/php.md).

## craftcms/element-api 5.0.0 breaking changes

craftcms/element-api 5.0.0, released November 12, 2026: 17 breaking changes.

- **Removed**  

The package no longer uses the Yii 2 adapter, since it is ported to Craft 6's Laravel architecture. [github.com](https://github.com/craftcms/element-api/releases/tag/5.0.0)
- **Removed**  

The package now requires Craft 6 and PHP 8.5, so older PHP versions are no longer supported. [github.com](https://github.com/craftcms/element-api/releases/tag/5.0.0)
- **Removed** `beforeSendData`  

Listen to the new CraftCms\\ElementApi\\Events\\SendingData Laravel event instead. [github.com](https://github.com/craftcms/element-api/releases/tag/5.0.0)
- **Removed** `craft\elementapi\controllers\DefaultController`  

craft\\elementapi\\controllers\\DefaultController was removed in craftcms/element-api 5.0.0 [packagist.org](https://packagist.org/packages/craftcms/element-api#5.0.0)
- **Removed** `craft\elementapi\DataEvent`  

Use the new CraftCms\\ElementApi\\Events\\SendingData Laravel event instead. [packagist.org](https://packagist.org/packages/craftcms/element-api#5.0.0)
- **Removed** `craft\elementapi\JsonFeedV1Serializer`  

craft\\elementapi\\JsonFeedV1Serializer was removed in craftcms/element-api 5.0.0 [packagist.org](https://packagist.org/packages/craftcms/element-api#5.0.0)
- **Removed** `craft\elementapi\Plugin`  

craft\\elementapi\\Plugin was removed in craftcms/element-api 5.0.0 [packagist.org](https://packagist.org/packages/craftcms/element-api#5.0.0)
- **Removed** `craft\elementapi\ResourceAdapterInterface`  

craft\\elementapi\\ResourceAdapterInterface was removed in craftcms/element-api 5.0.0 [packagist.org](https://packagist.org/packages/craftcms/element-api#5.0.0)
- **Removed** `craft\elementapi\resources\ElementResource`  

craft\\elementapi\\resources\\ElementResource was removed in craftcms/element-api 5.0.0 [packagist.org](https://packagist.org/packages/craftcms/element-api#5.0.0)
- **Removed** `craft\elementapi\Settings`  

craft\\elementapi\\Settings was removed in craftcms/element-api 5.0.0 [packagist.org](https://packagist.org/packages/craftcms/element-api#5.0.0)
- **Removed** `first`  

Use the one endpoint setting instead of first. [github.com](https://github.com/craftcms/element-api/releases/tag/5.0.0)
- **Renamed**  

Plugin classes moved to the CraftCms\\ElementApi namespace, so existing imports must be updated. [github.com](https://github.com/craftcms/element-api/releases/tag/5.0.0)
- **Renamed** `craft\elementapi\ElementTransformer`  

Use CraftCms\\ElementApi\\Transformers\\ElementTransformer instead. [packagist.org](https://packagist.org/packages/craftcms/element-api#5.0.0)
- **Renamed** `craft\elementapi\PaginatorAdapter`  

Use CraftCms\\ElementApi\\Support\\PaginatorAdapter instead. [packagist.org](https://packagist.org/packages/craftcms/element-api#5.0.0)
- **Behavior changed**  

Responses no longer set cookies, so code relying on cookies from endpoints must change. [github.com](https://github.com/craftcms/element-api/releases/tag/5.0.0)
- **Configuration changed**  

The config file now lives at config/craft/element-api.php instead of config/element-api.php. [github.com](https://github.com/craftcms/element-api/releases/tag/5.0.0)
- **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](https://packagist.org/packages/craftcms/element-api#5.0.0)

## Related packages

- [craftcms/cms](https://since.dev/packages/packagist/craftcms/cms.md)
- [craftcms/contact-form](https://since.dev/packages/packagist/craftcms/contact-form.md)
- [craftcms/contact-form-honeypot](https://since.dev/packages/packagist/craftcms/contact-form-honeypot.md)
- [craftcms/html-field](https://since.dev/packages/packagist/craftcms/html-field.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
