PHPackages                             ashanet/ckeditor - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. ashanet/ckeditor

ActiveCakephp-plugin[Utility &amp; Helpers](/categories/utility)

ashanet/ckeditor
================

CkEditor plugin for CakePHP 3.x &amp; 4.x

1.5(5y ago)023PHPPHP &gt;=5.5.9

Since Aug 27Pushed 5y agoCompare

[ Source](https://github.com/ashanet/CkEditor)[ Packagist](https://packagist.org/packages/ashanet/ckeditor)[ RSS](/packages/ashanet-ckeditor/feed)WikiDiscussions master Synced 1mo ago

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

CKEditor plugin for CakePHP
===========================

[](#ckeditor-plugin-for-cakephp)

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

[](#installation)

You can install this plugin into your CakePHP application using [composer](http://getcomposer.org).

The recommended way to install composer packages is:

```
composer require ashanet/ckeditor

```

Then in config/bootstrap.php add:

```
$this->addPlugin('CkEditor');
```

In either src/Controller/AppController.php, or any controller where you want to use CKEditor, add:

```
$this->viewBuilder()->setHelpers(['CkEditor.Ck']);
```

Finally, in your template file, simply add this to call CKEditor:

```
echo $this->Ck->control('field_name');
```

This is the equilivant of using

```
echo $this->Form->control('field_name');
```

Except that CKEditor will be loaded instead of a text area!

Advanced Options
----------------

[](#advanced-options)

You can make adjustments to CKEditor and the form input as needed. There is full flexibility in this regard.

The full explaination is as follows:

```
echo $this->Form->control($input, $options, $ckEditorOptions, $ckEditorUrl, $ckEditorPlugins);
```

```
@param string $input
```

The name of the field, can be field\_name or model.field\_name

```
@param array $options
```

Options include $options\['label'\] for a custom label and any other custom Form Helper options

```
@param array $ckEditorOptions
```

This will pass any options from [http://docs.ckeditor.com/#!/guide/dev\_configuration](http://docs.ckeditor.com/#!/guide/dev_configuration) to CKEditor

```
@param string $ckEditorUrl
```

This gives an option to overwrite the CKEditor URL. You can use a local URL then if required.

```
@param array $ckEditorPlugins
```

An array of locally installed CKEditor plugins to include, as one sub-array per plugin, in the format specified in the CKEditor documentation at [https://docs.ckeditor.com/ckeditor4/latest/api/CKEDITOR\_plugins.html#addExternal](https://docs.ckeditor.com/ckeditor4/latest/api/CKEDITOR_plugins.html#addExternal).

Examples
--------

[](#examples)

Use an associated field name

```
echo $this->Ck->control('category.description');
```

Generate a custom label

```
echo $this->Ck->control('field_name', ['label' => 'A unique label']);
```

Add options to CKEditor from [http://docs.ckeditor.com/#!/guide/dev\_configuration](http://docs.ckeditor.com/#!/guide/dev_configuration)

```
echo $this->Ck->control('field_name', [], ['fullPage' => true, 'allowedContent' => 'true']);
```

Load a local version of CKEditor, or a different version

```
echo $this->Ck->control('field_name', [], [], '/js/ckeditor.js');
```

Load a locally installed CKEditor plugin

```
echo $this->Ck->control('field_name', [], [], null, [['myplugin', '/ckplugins/myplugin/', 'myplugin.js']]);
```

Example showing all the options together

```
echo $this->Ck->control('field_name', ['label' => 'A unique label'], ['fullPage' => true, 'allowedContent' => 'true'], '/js/ckeditor.js', [['myplugin', '/ckplugins/myplugin/', 'myplugin.js']]);
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 77.3% 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

Unknown

Total

1

Last Release

2088d ago

### Community

Maintainers

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

---

Top Contributors

[![MichaelHoughton](https://avatars.githubusercontent.com/u/5341149?v=4)](https://github.com/MichaelHoughton "MichaelHoughton (34 commits)")[![ashanet](https://avatars.githubusercontent.com/u/45517643?v=4)](https://github.com/ashanet "ashanet (4 commits)")[![kitzberger](https://avatars.githubusercontent.com/u/1405149?v=4)](https://github.com/kitzberger "kitzberger (3 commits)")[![reloxx13](https://avatars.githubusercontent.com/u/14855001?v=4)](https://github.com/reloxx13 "reloxx13 (2 commits)")[![ovenoms](https://avatars.githubusercontent.com/u/35915203?v=4)](https://github.com/ovenoms "ovenoms (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ashanet-ckeditor/health.svg)

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

###  Alternatives

[dereuromark/cakephp-tools

A CakePHP plugin containing lots of useful and reusable tools

338920.1k32](/packages/dereuromark-cakephp-tools)[markstory/asset_compress

An asset compression plugin for CakePHP. Provides file concatenation and a flexible filter system for preprocessing and minification.

3761.0M11](/packages/markstory-asset-compress)[dereuromark/cakephp-shim

A CakePHP plugin to shim applications between major framework versions.

401.0M11](/packages/dereuromark-cakephp-shim)[cakedc/cakephp-phpstan

CakePHP plugin extension for PHPStan.

40676.6k31](/packages/cakedc-cakephp-phpstan)[dereuromark/cakephp-dto

A CakePHP plugin for generating immutable Data Transfer Objects with full type safety

2988.9k3](/packages/dereuromark-cakephp-dto)[dereuromark/cakephp-geo

A CakePHP plugin around geocoding tools and helpers.

51174.9k4](/packages/dereuromark-cakephp-geo)

PHPackages © 2026

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