PHPackages                             leoruhland/cakephp-fieldtypes - 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. [Framework](/categories/framework)
4. /
5. leoruhland/cakephp-fieldtypes

ActiveCakephp-plugin[Framework](/categories/framework)

leoruhland/cakephp-fieldtypes
=============================

FieldTypes plugin for CakePHP. CakeAdmin compatible.

14901PHP

Since Jul 5Pushed 9y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

FieldTypes plugin for CakePHP
=============================

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

> Note: This is a non-stable plugin for CakePHP 3.x at this time. It is currently under development and should be considered experimental.

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 leoruhland/cakephp-fieldtypes

```

Now load the plugin with the command:

```
bin/cake plugin load -r -b FieldTypes
```

Usage
-----

[](#usage)

You can use the FieldTypes extending core FormHelper with `BootstrapUI.Form`then setting the widgets you want to use.

```
$this->loadHelper('Form', [
    'className' => 'BootstrapUI.Form',
    'widgets' => [
        //Date
        'flatpickr' => ['FieldTypes\View\Widget\FlatpickrWidget', '_view'],
        'bootstrap-datepicker' => ['FieldTypes\View\Widget\BootstrapDatepickerWidget', '_view'],
        'bootstrap-datetimepicker' => ['FieldTypes\View\Widget\BootstrapDatetimepickerWidget', '_view'],

        //Color
        'bootstrap-colorpicker' => ['FieldTypes\View\Widget\BootstrapColorpickerWidget', '_view'],

        //Number
        'bootstrap-touchspin' => ['FieldTypes\View\Widget\BootstrapTouchspinWidget', '_view'],

        //Boolean
        'bootstrap-switch' => ['FieldTypes\View\Widget\BootstrapSwitchWidget', '_view'],

        //Content
        'summernote' => ['FieldTypes\View\Widget\SummernoteWidget', '_view'],
        'wysiwygjs' => ['FieldTypes\View\Widget\WysiwygjsWidget', '_view'],

        //Select
        'bootstrap-select' => ['FieldTypes\View\Widget\BootstrapSelectWidget', '_view'],
        'select2' => ['FieldTypes\View\Widget\Select2Widget', '_view'],

        //Other
        'stringtoslug' => ['FieldTypes\View\Widget\StringToSlugWidget', '_view'],
        'textcount' => ['FieldTypes\View\Widget\TextCounterWidget', '_view'],
    ]
]);
```

You can override default widgets too.

```
$this->loadHelper('Form', [
    'className' => 'BootstrapUI.Form',
    'widgets' => [
        'date' => ['FieldTypes\View\Widget\FlatpickrWidget', '_view'],
        'select' => ['FieldTypes\View\Widget\Select2Widget', '_view']
    ]
]);
```

And then, using it:

```
$this->Form->input('some_field', ['type' => 'summernote']);
```

It also works nice with CakeAdmin [formFields](http://cakemanager.org/docs/cakeadmin/1.0/tutorials-and-examples/adding-posttypes/#formfields).

```
public function postType() {
	return [
		'formFields' => [
			'some_field' => [
				'type' => 'summernote',
			],
		]
	];
};
```

Types
-----

[](#types)

### [Select2](https://select2.github.io/) - [GitHub](https://github.com/select2/select2)

[](#select2---github)

```
'type' => 'select2'
```

[![select2](https://camo.githubusercontent.com/b2e172c498496a58466c42514e5e8e4b1e363c20d0e5ba495f2f83aae768d8d0/687474703a2f2f6c656f7275686c616e642e6769746875622e696f2f63616b657068702d6669656c6474797065732f696d616765732f65782d73656c656374322e706e67)](https://camo.githubusercontent.com/b2e172c498496a58466c42514e5e8e4b1e363c20d0e5ba495f2f83aae768d8d0/687474703a2f2f6c656f7275686c616e642e6769746875622e696f2f63616b657068702d6669656c6474797065732f696d616765732f65782d73656c656374322e706e67)

```
'type' => 'select2', 'multiple' => true
```

[![select2](https://camo.githubusercontent.com/a5b2c33057c58d7da5a4e691c53bff7a5938f6fa40e3f7cae41c9459b9d67c9f/687474703a2f2f6c656f7275686c616e642e6769746875622e696f2f63616b657068702d6669656c6474797065732f696d616765732f65782d73656c656374322d6d756c7469706c652e706e67)](https://camo.githubusercontent.com/a5b2c33057c58d7da5a4e691c53bff7a5938f6fa40e3f7cae41c9459b9d67c9f/687474703a2f2f6c656f7275686c616e642e6769746875622e696f2f63616b657068702d6669656c6474797065732f696d616765732f65782d73656c656374322d6d756c7469706c652e706e67)

### [Summernote](http://summernote.org/) - [GitHub](https://github.com/summernote/summernote)

[](#summernote---github)

```
'type' => 'summernote'
```

[![summernote](https://camo.githubusercontent.com/1e41b3407c86f442ecb119de3b5b89bf7424c803c6cdd61e7bef61567da290fe/687474703a2f2f6c656f7275686c616e642e6769746875622e696f2f63616b657068702d6669656c6474797065732f696d616765732f65782d73756d6d65726e6f74652e706e67)](https://camo.githubusercontent.com/1e41b3407c86f442ecb119de3b5b89bf7424c803c6cdd61e7bef61567da290fe/687474703a2f2f6c656f7275686c616e642e6769746875622e696f2f63616b657068702d6669656c6474797065732f696d616765732f65782d73756d6d65726e6f74652e706e67)

### [Bootstrap Datepicker](http://eternicode.github.io/bootstrap-datepicker/) - [GitHub](https://github.com/eternicode/bootstrap-datepicker)

[](#bootstrap-datepicker---github)

```
'type' => 'datepicker'
```

[![datepicker](https://camo.githubusercontent.com/e6a418a3bf667255cb96585677f2f61ad6446fe034799735b1b1099322fa513a/687474703a2f2f6c656f7275686c616e642e6769746875622e696f2f63616b657068702d6669656c6474797065732f696d616765732f65782d646174657069636b65722e706e67)](https://camo.githubusercontent.com/e6a418a3bf667255cb96585677f2f61ad6446fe034799735b1b1099322fa513a/687474703a2f2f6c656f7275686c616e642e6769746875622e696f2f63616b657068702d6669656c6474797065732f696d616765732f65782d646174657069636b65722e706e67)

### [Bootstrap Colorpicker](http://mjolnic.com/bootstrap-colorpicker/) - [GitHub](https://github.com/mjolnic/bootstrap-colorpicker/)

[](#bootstrap-colorpicker---github)

```
'type' => 'colorpicker'
```

[![colorpicker](https://camo.githubusercontent.com/80dbf4874e6726dd73a901a79bf2f51e771729d95a81e65491ef4d600d3ab5d4/687474703a2f2f6c656f7275686c616e642e6769746875622e696f2f63616b657068702d6669656c6474797065732f696d616765732f65782d636f6c6f727069636b65722e706e67)](https://camo.githubusercontent.com/80dbf4874e6726dd73a901a79bf2f51e771729d95a81e65491ef4d600d3ab5d4/687474703a2f2f6c656f7275686c616e642e6769746875622e696f2f63616b657068702d6669656c6474797065732f696d616765732f65782d636f6c6f727069636b65722e706e67)

### [Bootstrap TouchSpin](http://www.virtuosoft.eu/code/bootstrap-touchspin/) - [GitHub](https://github.com/istvan-ujjmeszaros/bootstrap-touchspin)

[](#bootstrap-touchspin---github)

```
'type' => 'touchspin'
```

[![touchspin](https://camo.githubusercontent.com/6362578f55ea954c03847d4fc5b0c47da185c5064f61cc6f10fb3aad80f48ff9/687474703a2f2f6c656f7275686c616e642e6769746875622e696f2f63616b657068702d6669656c6474797065732f696d616765732f65782d746f7563687370696e2e706e67)](https://camo.githubusercontent.com/6362578f55ea954c03847d4fc5b0c47da185c5064f61cc6f10fb3aad80f48ff9/687474703a2f2f6c656f7275686c616e642e6769746875622e696f2f63616b657068702d6669656c6474797065732f696d616765732f65782d746f7563687370696e2e706e67)

### [Bootstrap Toggle](http://www.bootstraptoggle.com/) - [GitHub](https://github.com/minhur/bootstrap-toggle/)

[](#bootstrap-toggle---github)

```
'type' => 'toggle'
```

[![toggle](https://camo.githubusercontent.com/2312ff1633c8a9e69bcc614f20c40b13651ac2b284ff5a7308c3a9c35cced895/687474703a2f2f6c656f7275686c616e642e6769746875622e696f2f63616b657068702d6669656c6474797065732f696d616765732f65782d746f67676c652e706e67)](https://camo.githubusercontent.com/2312ff1633c8a9e69bcc614f20c40b13651ac2b284ff5a7308c3a9c35cced895/687474703a2f2f6c656f7275686c616e642e6769746875622e696f2f63616b657068702d6669656c6474797065732f696d616765732f65782d746f67676c652e706e67)

CakeAdmin
---------

[](#cakeadmin)

The plugin is [CakeAdmin](https://github.com/cakemanager/cakephp-cakeadmin) compatible!

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community8

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.

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/leoruhland-cakephp-fieldtypes/health.svg)

```
[![Health](https://phpackages.com/badges/leoruhland-cakephp-fieldtypes/health.svg)](https://phpackages.com/packages/leoruhland-cakephp-fieldtypes)
```

###  Alternatives

[laravel/passport

Laravel Passport provides OAuth2 server support to Laravel.

3.4k85.0M532](/packages/laravel-passport)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

712181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)[laravel/pail

Easily delve into your Laravel application's log files directly from the command line.

91545.3M590](/packages/laravel-pail)

PHPackages © 2026

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