PHPackages                             kba-team/cakephp - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. kba-team/cakephp

ActiveLibrary[Framework](/categories/framework)

kba-team/cakephp
================

The CakePHP framework

2.11.0(2y ago)03.2k↓47.7%[1 issues](https://github.com/the-kbA-team/cakephp2-php8/issues)2MITPHPPHP ^8.0

Since Feb 5Pushed 2y agoCompare

[ Source](https://github.com/the-kbA-team/cakephp2-php8)[ Packagist](https://packagist.org/packages/kba-team/cakephp)[ Docs](https://cakephp.org)[ RSS](/packages/kba-team-cakephp/feed)WikiDiscussions staging Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (4)Used By (2)

Fork of CakePHP 2 with support for PHP8
=======================================

[](#fork-of-cakephp-2-with-support-for-php8)

For original README content please check original repository:

### Migration

[](#migration)

Here are steps I took to migrate my project through all versions to PHP 8.1, maybe it can inspire you:

1. Decouple your tests from `CakeTestCase` and other utilities that are coupled to old PHPUnit version.
2. Once decoupled you can upgrade PHPUnit to the newest version accordingly to your PHP version.
3. Start upgrading gradually to newer versions of PHP. CakePHP 2 works perfectly fine on 7.0 - 7.4.
4. Once you're on 7.4 you can switch to 8 and this fork.

Installation
------------

[](#installation)

This repository **is not** available in packagist, therefore your project's `composer.json` must be changed to point to custom repository.

Example configuration:

```
{
	"require": {
		"cakephp/cakephp": "dev-master as 2.10.24",
	},
	"repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/kba-team/cakephp2-php8"
        }
    ]
}

```

It means that composer will look at `master` branch of repository configured under `repositories` to resolve update of `cakephp/cakephp` package.

Changelog
---------

[](#changelog)

### 2024-02-02

[](#2024-02-02)

- `str_len` deprecation warning fix in CakeResponse (passing null instead of `string`)

### 2024-01-19

[](#2024-01-19)

- `strotime()` and `preg_split()` in CakeResponse deprecation warning fixes (passing null)

### 2024-01-11

[](#2024-01-11)

- `preg_replace` deprecation warning fixes (passing null instead of `string`)

### 2023-12-22

[](#2023-12-22)

- `preg_quote()` passing null fix

### 2023-12-19

[](#2023-12-19)

- Muted dynamic property creation warnings in Controller.php
- Fix passing a null input to h function (PR #56)
- Fix Hash class callback callable pattern deprecated (PR #58)

### 2023-11-13

[](#2023-11-13)

- Silence dynamic property creation warning in Model.php

### 2023-11-02

[](#2023-11-02)

- Fixed: unitialized property in Debugger.php

### 2023-10-20

[](#2023-10-20)

- Fallback to empty string from `env()` in basics.php and request handler.

### 2023-10-19

[](#2023-10-19)

- Removed usage of deprecated `redis->getKeys()` in favor of `redis->keys()`.
- Added docker-compose setup to run tests locally.

### 2023-09-18

[](#2023-09-18)

- Fix for `ShellDispatcher` where `null` was passed to `strpos` function.

### 2023-08-18

[](#2023-08-18)

- Fixed PHP8 deprecation notices. Related mostly to passing null as a `$haystack` value.

### 2023-06-02

[](#2023-06-02)

- Fixed PHP 8.2 deprecation notices in CakeEvent: `Creation of dynamic property ... is deprecated.`

### 2023-02-19

[](#2023-02-19)

- Fixed PHP 8.1 MySQL test suite.

### 2023-02-11

[](#2023-02-11)

- Fixed PostgreSQL test suite.

### 2023-01-30

[](#2023-01-30)

- `PaginatorHelper` fix.

### 2023-01-22

[](#2023-01-22)

- Fixed views cache when relative time is specified.

### 2023-01-11

[](#2023-01-11)

- Fixed test suite to run under PHPUnit 9.5 and PHP8. Big kudos to @tenkoma 👏

### 2022-10-20

[](#2022-10-20)

- `MailTransport` fix.

### 2022-10-08

[](#2022-10-08)

- Support for `full_path` when uploading a file, PHP 8.1 only.

### 2022-09-27

[](#2022-09-27)

- Fixed multiple `CREATE UNIQUE INDEX` statements from schema shell that did not work on PostgreSQL.

### 2022-03-08

[](#2022-03-08)

- Fixed passing `params["pass"]` argument to `invokeArgs` when resolving controller action - `array_values` used to avoid problems with named parameters.

### 2022-03-03

[](#2022-03-03)

- Removed `String` class.

### 2022-03-02

[](#2022-03-02)

- Fixed `ConsoleErrorHandler::handleError` to respect error suppression.

### 2022-01-31

[](#2022-01-31)

- Fixed `Folder->read`, `array_values` is used to remove keys to prevent usign named arguments in `call_user_func_array`

### 2022-01-16

[](#2022-01-16)

- Fix Shell `ReflectionMethod::__construct` default null argument in hasMethod

### 2022-01-15

[](#2022-01-15)

- Readme file update - more explicit content.

### 2022-01-04

[](#2022-01-04)

- Fixed more deprecation notices
    - `strtoupper` + `converting false to array` in Mysql.php
    - `preg_match` where `$subject = null` in CakeRoute.php
    - `strtoupper` in DboSource.php
    - Check history for details ☝️

### 2021-12-20

[](#2021-12-20)

- Fixed deprecation notices in PHP 8.1 for production code implementations:
    - `ArrayAccess`
    - `Countable`
    - `IteratorAggregate`
- PHP 8.0 requirement in composer.json
- **Warning:** Tests are not updated, Cake's tests rely on old version of PHPUnit so running them may show a lot of deprecations notices. Added issue to cover it: #7

### 2021-02-24

[](#2021-02-24)

- Fixed ErrorHandler accordingly to PHP8 migration guide. Otherwise, error handler is logging too much and doesn't respect configured `error_reporting`.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community23

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

775d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f9039656fce4f32e1760d825f152809d3f6aef6d7cae5f29f3e3bb3d70996388?d=identicon)[stosef](/maintainers/stosef)

---

Top Contributors

[![markstory](https://avatars.githubusercontent.com/u/24086?v=4)](https://github.com/markstory "markstory (7440 commits)")[![lorenzo](https://avatars.githubusercontent.com/u/37621?v=4)](https://github.com/lorenzo "lorenzo (1709 commits)")[![phpnut](https://avatars.githubusercontent.com/u/148097?v=4)](https://github.com/phpnut "phpnut (1602 commits)")[![nateabele](https://avatars.githubusercontent.com/u/18288?v=4)](https://github.com/nateabele "nateabele (1055 commits)")[![ADmad](https://avatars.githubusercontent.com/u/142658?v=4)](https://github.com/ADmad "ADmad (571 commits)")[![jrbasso](https://avatars.githubusercontent.com/u/26548?v=4)](https://github.com/jrbasso "jrbasso (486 commits)")[![ceeram](https://avatars.githubusercontent.com/u/111448?v=4)](https://github.com/ceeram "ceeram (336 commits)")[![predominant](https://avatars.githubusercontent.com/u/24568?v=4)](https://github.com/predominant "predominant (274 commits)")[![AD7six](https://avatars.githubusercontent.com/u/33387?v=4)](https://github.com/AD7six "AD7six (253 commits)")[![renan](https://avatars.githubusercontent.com/u/28046?v=4)](https://github.com/renan "renan (239 commits)")[![jperras](https://avatars.githubusercontent.com/u/20675?v=4)](https://github.com/jperras "jperras (153 commits)")[![felixge](https://avatars.githubusercontent.com/u/15000?v=4)](https://github.com/felixge "felixge (149 commits)")[![ravage84](https://avatars.githubusercontent.com/u/625761?v=4)](https://github.com/ravage84 "ravage84 (143 commits)")[![rchavik](https://avatars.githubusercontent.com/u/39490?v=4)](https://github.com/rchavik "rchavik (139 commits)")[![bancer](https://avatars.githubusercontent.com/u/3830106?v=4)](https://github.com/bancer "bancer (133 commits)")[![shama](https://avatars.githubusercontent.com/u/99604?v=4)](https://github.com/shama "shama (98 commits)")[![tenkoma](https://avatars.githubusercontent.com/u/16202?v=4)](https://github.com/tenkoma "tenkoma (87 commits)")[![dogmatic69](https://avatars.githubusercontent.com/u/94674?v=4)](https://github.com/dogmatic69 "dogmatic69 (78 commits)")[![bar](https://avatars.githubusercontent.com/u/88155?v=4)](https://github.com/bar "bar (72 commits)")[![chinpei215](https://avatars.githubusercontent.com/u/7399393?v=4)](https://github.com/chinpei215 "chinpei215 (55 commits)")

---

Tags

framework

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kba-team-cakephp/health.svg)

```
[![Health](https://phpackages.com/badges/kba-team-cakephp/health.svg)](https://phpackages.com/packages/kba-team-cakephp)
```

###  Alternatives

[hemp/presenter

Easy Model Presenters in Laravel

247592.6k1](/packages/hemp-presenter)[pestphp/pest-plugin-stressless

Stressless plugin for Pest

67792.6k16](/packages/pestphp-pest-plugin-stressless)[wpstarter/framework

The WpStarter Framework - Laravel Framework for WordPress

1810.1k4](/packages/wpstarter-framework)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
