Download the PHP package pieceofcake2/app without Composer

On this page you can find all versions of the php package pieceofcake2/app. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package app

CakePHP 2.x Application Skeleton

Packagist Version PHP CakePHP

A reference implementation for CakePHP 2.x applications using a modern, CakePHP 5.x-compatible directory structure.

[!WARNING] CakePHP 2.x is for legacy maintenance only. For new projects, use CakePHP 5.x instead.

Planning to migrate to CakePHP 5.x?

If you're planning to upgrade to CakePHP 5.x in the future, you can prepare now by adopting the modern directory structure while still on CakePHP 2.x:

Traditional migration approach (harder):

New gradual migration approach (easier):

Benefits:

Restructuring to Modern Layout (Step 2)

This skeleton shows you how to achieve Step 2 - running CakePHP 2.x with a modern folder structure.

Directory Structure Comparison

Before: Traditional CakePHP 2.x

After: Modern Structure (CakePHP 5.x Ready)

File Migration Map

Use this table to migrate your files from traditional structure to modern structure:

From (Traditional) To (Modern)
app/Config/* config/*
app/Controller/* src/Controller/*
app/Model/* src/Model/*
app/View/**/*.ctp templates/**/*.ctp
app/View/Helper/* src/View/Helper/*
app/Console/* src/Console/*
app/Console/cake bin/cake
app/Lib/* src/Lib/*
app/Locale/* resources/locales/*
app/Test/* tests/*
app/Plugin/* plugins/* (use Composer)
app/Vendor/* vendor/* (use Composer)
app/tmp/logs/* logs/*
app/tmp/* tmp/*
app/webroot/* webroot/*

Migration Steps

1. Update composer.json

2. Update Bootstrap Path Definitions

Copy or reference this skeleton's webroot/index.php, webroot/test.php, and bin/cake to update the path definitions in your project:

Refer to this skeleton's implementation files for complete examples.

3. Migrate Files

Move files according to the File Migration Map above. You can do this gradually:

  1. Configuration files: app/Config/*config/*
  2. PHP code: app/Controller/*, app/Model/*src/
  3. Templates: app/View/**/*.ctptemplates/
  4. Tests: app/Test/*tests/
  5. Dependencies: Use Composer for plugins and vendors

4. Verify Your Application Still Works

The pieceofcake2/cakephp core automatically supports this modern structure with App::uses() and class loading, so your existing CakePHP 2.x code should work without modifications.

5. Leverage Composer Autoloading (Optional)

Once Composer's autoload is configured in composer.json, you can remove App::uses() calls from your code:

After running composer dump-autoload, you can safely remove App::uses() statements from your controllers, models, helpers, and shells.

[!IMPORTANT] You must run composer dump-autoload every time you create a new class file. Composer's classmap autoloader needs to be regenerated to recognize new classes.

For example:

Note: Plugins that don't support Composer autoloading will still require App::uses() or CakePlugin::load() to function properly.

Upgrading to CakePHP 5.x (Step 3)

Once you've completed Step 2 (modern folder structure with CakePHP 2.x), upgrading to CakePHP 5.x becomes much simpler:

What's already done:

What you need to do:

The key advantage: You can focus 100% on code changes, not structural changes.

Refer to the CakePHP 5.x Migration Guide for framework-specific changes.

Requirements

See pieceofcake2/cakephp requirements for details.

Technical Implementation

This modern directory structure works with CakePHP 2.x through custom path configuration in bootstrap files (webroot/index.php, webroot/test.php, bin/cake).

The pieceofcake2/cakephp core has been enhanced to:

You don't need to modify your application code - the framework handles the path mapping automatically.

Development

Running Tests

Or with PHPUnit:

Code Standards

Check your code against CakePHP coding standards:

Documentation

License

MIT License. See LICENSE file for details.

Support

This is a community-maintained fork of CakePHP 2.x. For issues and questions:


All versions of app with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
pieceofcake2/cakephp Version ^2.12
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package pieceofcake2/app contains the following files

Loading the files please wait ...