Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Image Cropper Laravel Package

ajroudsoftwares/image-cropper

View on GitHub
Deep Wiki
Context7

Image Cropper Bundle

State Description
Build Build Status
Coverage Coverage Status
License MIT

Introduction

The Image Cropper Bundle provides a custom form type that allows you to add a powerful image cropper to your Symfony forms, by integrating cropperjs.

Installation

To install the Image Cropper Bundle, use Composer:

composer require ajroudsoftwares/image-cropper

and then if you don't have "assets:install" script in your composer.json file, run it manually like this:

php bin/console assets:install

Usage

Image Cropper Type

The ImageCropperType form type allows you to add an image cropper to your forms. Here is an example of how to use it:

use AjroudSoftwares\ImageCropperBundle\Form\ImageCropperType;
use Symfony\Component\Form\Extension\Core\Type\FormType;
use Symfony\Component\Form\FormBuilderInterface;

class YourFormType extends AbstractType
{
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder->add('image', ImageCropperType::class, [
            'label' => 'Upload and Crop Image',
            'required' => true,
        ]);
    }
}

Documentation

For more detailed and configured use cases, please refer to the documentation.

Contribute

To contribute to the Image Cropper Bundle, follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or bugfix.
  3. Make your changes and commit them.
  4. Push your changes to your fork.
  5. Create a pull request to the main repository.

Please ensure your code follows the project's coding standards and includes appropriate tests, if applicable.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle