2017 © Pedro Peláez
 

yii2-extension yii2-cropit

Yii2 implementation of cropit

image

macgyer/yii2-cropit

Yii2 implementation of cropit

  • Saturday, July 29, 2017
  • by macgyer
  • Repository
  • 1 Watchers
  • 2 Stars
  • 121 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 12 % Grown

The README.md

license Github Release Packagist, (*1)

yii2-cropit

Implementation of Scott Cheng's jQuery plugin cropit., (*2)

Currently implemented cropit.js version: 0.5.1, (*3)

Installation

The preferred way of installation is through Composer. If you don't have Composer you can get it here: https://getcomposer.org/, (*4)

To install the package add the following to the require section of your composer.json:, (*5)

"require": {
    "macgyer/yii2-cropit": "*"
},

Usage

This widget can be used in ActiveForm or as standalone input widget and comes with a Data URI validator (as Composer dependency)., (*6)

The widget can be profoundly configured to meet your needs. Please see all options and below and refer to the original cropit documentation., (*7)

To use the widget in your form, you might do the following:, (*8)

// add the field to your Model class, either ActiveRecord property or class member:

public $cropped_image_data;

// rules
public function rules()
{
  return [
      // more rules
      ['cropped_image_data', \macgyer\yii2dataurivalidator\DataUriValidator::className()],
  ];
}
// in your View, define the field and widget:

= $form->field($model, 'cropped_image_data')->widget(\macgyer\yii2cropit\widgets\CropitWidget::className()) ?>

Road map

  • create style assets

Change log

1.0.3 - 2017-07-29

  • fixed illegal offset type error when used in PHP 5.6 environment (#3)
  • cropit.js version set to 0.5.1

1.0.2 - 2016-06-02

  • changed handling of custom JS handlers (#2)
  • fixed image export options bug (#1)

1.0.1 - 2016-05-30

1.0.0 - 2016-05-29

  • initial release

The Versions

29/07 2017

dev-master

9999999-dev http://macgyer.github.io/yii2-cropit

Yii2 implementation of cropit

  Sources   Download

BSD-3-Clause

The Requires

 

yii2 jquery image upload image crop cropit

29/07 2017

1.0.3

1.0.3.0 http://macgyer.github.io/yii2-cropit

Yii2 implementation of cropit

  Sources   Download

BSD-3-Clause

The Requires

 

yii2 jquery image upload image crop cropit

29/07 2017

dev-develop

dev-develop http://macgyer.github.io/yii2-cropit

Yii2 implementation of cropit

  Sources   Download

BSD-3-Clause

The Requires

 

yii2 jquery image upload image crop cropit

02/06 2016

1.0.2

1.0.2.0 http://macgyer.github.io/yii2-cropit

Yii2 implementation of cropit

  Sources   Download

BSD-3-Clause

The Requires

 

yii2 jquery image upload image crop cropit

30/05 2016

1.0.1

1.0.1.0 http://macgyer.github.io/yii2-cropit

Yii2 implementation of cropit

  Sources   Download

BSD-3-Clause

The Requires

 

yii2 jquery image upload image crop cropit

29/05 2016

1.0.0

1.0.0.0 http://macgyer.github.io/yii2-cropit

Yii2 implementation of cropit

  Sources   Download

BSD-3-Clause

The Requires

 

yii2 jquery image upload image crop cropit