PHPackages                             pieceofcake2/upgrade - 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. pieceofcake2/upgrade

ActiveCakephp-plugin

pieceofcake2/upgrade
====================

Upgrade plugin for CakePHP 2.x - Legacy upgrade tool

v1.0.1(7mo ago)00MITPHPPHP &gt;=8.0CI passing

Since Oct 7Pushed 7mo agoCompare

[ Source](https://github.com/pieceofcake2/upgrade)[ Packagist](https://packagist.org/packages/pieceofcake2/upgrade)[ RSS](/packages/pieceofcake2-upgrade/feed)WikiDiscussions 1.x Synced 1mo ago

READMEChangelogDependencies (7)Versions (3)Used By (0)

CakePHP Legacy Upgrade Plugin
=============================

[](#cakephp-legacy-upgrade-plugin)

[![GitHub License](https://camo.githubusercontent.com/31456a750aa457fa16755e7366bc6c2b179337a3d68cc83e67f05b15ba92dc52/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f70696563656f6663616b65322f757067726164653f6c6162656c3d4c6963656e7365)](LICENSE)[![Packagist Version](https://camo.githubusercontent.com/20f59976206457002b50c79db73527ebc161b1355ab26d5da4f242aad71d451a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70696563656f6663616b65322f757067726164653f6c6162656c3d5061636b6167697374)](https://packagist.org/packages/pieceofcake2/upgrade)[![PHP](https://camo.githubusercontent.com/2076c1dda5335821e30206e6aea12076f024846ecfee41c68ab63b517f80dece/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f70696563656f6663616b65322f757067726164652f7068703f6c6f676f3d706870266c6f676f436f6c6f723d253233464646464646266c6162656c3d504850266c6162656c436f6c6f723d25323337373742423426636f6c6f723d253233464646464646)](https://camo.githubusercontent.com/2076c1dda5335821e30206e6aea12076f024846ecfee41c68ab63b517f80dece/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f70696563656f6663616b65322f757067726164652f7068703f6c6f676f3d706870266c6f676f436f6c6f723d253233464646464646266c6162656c3d504850266c6162656c436f6c6f723d25323337373742423426636f6c6f723d253233464646464646)[![CakePHP](https://camo.githubusercontent.com/6855513ecf4faaaf4ab1d9ecddb5a7362486b8d7d6a150279b721a9084bb5c55/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f70696563656f6663616b65322f757067726164652f70696563656f6663616b65322f63616b657068703f6c6f676f3d63616b65706870266c6f676f436f6c6f723d253233464646464646266c6162656c3d43616b65504850266c6162656c436f6c6f723d25323344333343343326636f6c6f723d253233464646464646)](https://camo.githubusercontent.com/6855513ecf4faaaf4ab1d9ecddb5a7362486b8d7d6a150279b721a9084bb5c55/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f70696563656f6663616b65322f757067726164652f70696563656f6663616b65322f63616b657068703f6c6f676f3d63616b65706870266c6f676f436f6c6f723d253233464646464646266c6162656c3d43616b65504850266c6162656c436f6c6f723d25323344333343343326636f6c6f723d253233464646464646)[![CI](https://camo.githubusercontent.com/00cb4215037ca559333b3b8471bdce623c198176a9693eca8064a38d802f0964/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f70696563656f6663616b65322f757067726164652f43492e796d6c3f6c6162656c3d4349)](https://github.com/pieceofcake2/upgrade/actions/workflows/CI.yml)[![Codecov](https://camo.githubusercontent.com/d7c86f121cf9c678df8ba2a87aa0c02f4aae834486f7baa84f900e502e1569ac/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f67682f70696563656f6663616b65322f757067726164653f6c6162656c3d436f766572616765)](https://codecov.io/gh/pieceofcake2/upgrade)

This plugin provides the `UpgradeShell` to help automate upgrading applications from CakePHP 1.3 to 2.0.

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

[](#installation)

### Using Composer

[](#using-composer)

Install the plugin using Composer:

```
composer require --dev pieceofcake2/upgrade
```

Usage
-----

[](#usage)

Load the plugin in your `app/Config/bootstrap.php`:

```
CakePlugin::load('Upgrade');
```

Then run the upgrade shell:

```
# Run all upgrade commands
app/Console/cake upgrade all

# Run specific upgrade command
app/Console/cake upgrade tests
app/Console/cake upgrade locations
app/Console/cake upgrade i18n
app/Console/cake upgrade helpers
app/Console/cake upgrade basics
app/Console/cake upgrade request
app/Console/cake upgrade configure
app/Console/cake upgrade constants
app/Console/cake upgrade controller_redirects
app/Console/cake upgrade components
app/Console/cake upgrade exceptions
```

### Options

[](#options)

- `--plugin`, `-p`: The plugin to update. Only the specified plugin will be updated.
- `--ext`, `-e`: The extension(s) to search. A pipe delimited list, or a preg\_match compatible subpattern (default: `php|ctp|thtml|inc|tpl`)
- `--git`, `-g`: Use git command for moving files around.
- `--dry-run`, `-d`: Dry run the update, no files will actually be modified.

### Important

[](#important)

**Be sure to have a backup of your application before running these commands.**

Available Upgrade Commands
--------------------------

[](#available-upgrade-commands)

- `all` - Run all upgrade commands
- `tests` - Update tests class names to FooTest rather than FooTestCase
- `locations` - Move files and folders to their new homes
- `i18n` - Update the i18n translation method calls
- `helpers` - Update calls to helpers
- `basics` - Update removed basics functions to PHP native functions
- `request` - Update removed request access, and replace with $this-&gt;request
- `configure` - Update Configure::read() to Configure::read('debug')
- `constants` - Replace obsolete constants
- `controller_redirects` - Return early on controller redirect calls
- `components` - Update components to extend Component class
- `exceptions` - Replace use of cakeError with exceptions

License
-------

[](#license)

Licensed under The MIT License. See LICENSE file for details.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance65

Regular maintenance activity

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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

Every ~1 days

Total

3

Last Release

214d ago

PHP version history (2 changes)v1.0.0PHP ^8.0

1.x-devPHP &gt;=8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/35c2da973a64a21e8d23c221c1d284e4f1a04a74123318a978147e42a29eda23?d=identicon)[ttsuru](/maintainers/ttsuru)

---

Top Contributors

[![ttsuru](https://avatars.githubusercontent.com/u/578548?v=4)](https://github.com/ttsuru "ttsuru (4 commits)")

---

Tags

cakephpupgradecakephp2

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/pieceofcake2-upgrade/health.svg)

```
[![Health](https://phpackages.com/badges/pieceofcake2-upgrade/health.svg)](https://phpackages.com/packages/pieceofcake2-upgrade)
```

###  Alternatives

[fotografde/cakephp-sms

SMS Plugin for CakePHP

1273.2k](/packages/fotografde-cakephp-sms)

PHPackages © 2026

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