PHPackages                             raoul2000/yii2-jcrop-widget - 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. [Image &amp; Media](/categories/media)
4. /
5. raoul2000/yii2-jcrop-widget

ActiveYii2-extension[Image &amp; Media](/categories/media)

raoul2000/yii2-jcrop-widget
===========================

This extension is a wrapper for the jQuery Image Cropping Plugin (jcrop)

1.0.0(11y ago)10248.3k↑11%22BSD 3-ClauseJavaScript

Since Jul 30Pushed 8y ago2 watchersCompare

[ Source](https://github.com/raoul2000/yii2-jcrop-widget)[ Packagist](https://packagist.org/packages/raoul2000/yii2-jcrop-widget)[ Docs](https://github.com/raoul2000/yii2-jcrop-widget)[ RSS](/packages/raoul2000-yii2-jcrop-widget/feed)WikiDiscussions master Synced 1mo ago

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

JCrop Yii2 Extension
====================

[](#jcrop-yii2-extension)

This yii2 extension is a wrapper for the jQuery Image Cropping Plugin (jcrop)

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist raoul2000/yii2-jcrop-widget "*"

```

or add

```
"raoul2000/yii2-jcrop-widget": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by :

```
	raoul2000\jcrop\JCropWidget::widget([
		'selector' => '#image_id',
		'pluginOptions' => [
			'aspectRatio' => 1,
			'minSize' => [50,50],
			'maxSize' => [200,200],
			'setSelect' => [10,10,40,40],
			'bgColor' => 'black',
			'bgOpacity' => '0.5',
			'onChange' => new yii\web\JsExpression('function(c){console.log(c.x);}')
		]
	]);
```

For complete documentation please refer to the [official JCrop page](http://deepliquid.com/content/Jcrop.html)

License
-------

[](#license)

**yii2-jcrop-widget** is released under the BSD 3-Clause License. See the bundled `LICENSE.md` for details.

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity41

Moderate usage in the ecosystem

Community13

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4310d ago

### Community

Maintainers

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

---

Top Contributors

[![raoul2000](https://avatars.githubusercontent.com/u/1474310?v=4)](https://github.com/raoul2000 "raoul2000 (10 commits)")

---

Tags

imagejqueryyii2extensionyiicrop

### Embed Badge

![Health badge](/badges/raoul2000-yii2-jcrop-widget/health.svg)

```
[![Health](https://phpackages.com/badges/raoul2000-yii2-jcrop-widget/health.svg)](https://phpackages.com/packages/raoul2000-yii2-jcrop-widget)
```

###  Alternatives

[yurkinx/yii2-image

Yii2 extension for image manipulating using Kohana Image Library.

66412.9k9](/packages/yurkinx-yii2-image)[noam148/yii2-image-resize

A Yii2 component for resizing images (on the fly)

1144.6k7](/packages/noam148-yii2-image-resize)[demi/cropper

Yii2 wrapper for Image Cropper javascript library

1328.7k1](/packages/demi-cropper)[maxmirazh33/yii2-uploadable-cropable-image

Yii2 extension for upload and crop images

1020.8k](/packages/maxmirazh33-yii2-uploadable-cropable-image)

PHPackages © 2026

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