Download the PHP
package alescx/cakephp-shim without Composer
On this page you can find all versions of the php package
alescx/cakephp-shim. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
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 cakephp-shim
Shim plugin for CakePHP
Shim plugin to "shim" functionality up and down for CakePHP major versions.
It also provides some small app-specific fixes.
This branch is for shimming 2.x in 3.x
It provides compatibility wrapper access to 2.x functionality in 3.x.
This is mainly useful when upgrading large applications to the next major framework version.
Tons of code needs to be adjusted, using this Shim plugin quite a few lines less need to be touched.
Especially the ORM layer, which would need heavy refactoring, requires a lot less changes to get things working againc.
This plugin requires CakePHP 3.0+.
Installation
Please see SETUP.md
Usage
Please see Docs.
A full overview of all shimming between 2.x and 3.x can be found in the Wiki.
Main shims
Nullable behavior for better data consistency.
Primary level Table::find('first') support.
Primary level Table::find('count') support.
Table::field() support and fieldByConditions() alias to migrate to.
Still supports model properties $primaryKey, $displayField, $order, $validate, $actsAs and all
relations ($belongsTo, $hasMany, ...) as it would be very time-consuming to
manually adjust all those.
Contains Session component as compatibility wrapper for request session object (and maybe also for Session helper if that one gets deprecated in 3.x).
Auto-adds Timestamp behavior if created or modified field exists in table.
Helpful links
When planning to upgrade, you should look into the upgrade plugin for 2.x and upgrade app for 3.x. They both extend the core ones and contain tons of more ideas on how to get code aligned with the current direction of the framework to reduce friction in the long run.
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 alescx/cakephp-shim contains the following files
Loading the files please wait ....
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.