Download the PHP package hmic/cakephp-blame without Composer

On this page you can find all versions of the php package hmic/cakephp-blame. 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 cakephp-blame

CakePHP 3.0 plugin to update e.g. created_by and modified_by fields. Idea taken from and originates of ceeram/blame

Installation

Add the following lines to your application's composer.json:

followed by the command:

composer update

Or run the following command directly without changing your composer.json:

composer require hmic/cakephp-blame:dev-master

OR: Create a plugins/Blame dir under your app's dir and checkout this repo and make sure ['autoload' => true] is set when loading the plugin like shown below.

Usage

In your app's config/bootstrap.php add: Plugin::load('Blame', ['autoload' => true]);

Configuration

Add the following line to your AppController:

Attach the behavior in the models you like to use. Please note that these need to have the following 2 fields in the database table for it to work: created_by int(11) NULL and modified_by int(11) NULL

Routing

Has been fixed in the core in the meantime - just works right now! This is work in progress, but you can have routing working, for use with baked views, (works only for the default configuration for now) by adding this to your app's config/routes.php directly defore the $routes->fallbacks(); and commenting that out, like this:

Bake

If you want to bake your stuff you need to bake the model first, then add the behavior as shown above and afterwards bake the controller and views. It will take care of the associations automatically. For the routing of the baked views to work for the assocations too, see above.


All versions of cakephp-blame with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
composer/installers Version *
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 hmic/cakephp-blame contains the following files

Loading the files please wait ....