承接 ajroudsoftwares/image-cropper 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ajroudsoftwares/image-cropper

最新稳定版本:v1.1

Composer 安装命令:

composer require ajroudsoftwares/image-cropper

包简介

image cropper Bundle for Symfony

README 文档

README

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.

统计信息

  • 总下载量: 13
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-01-26