PHP code example of ajroudsoftwares / image-cropper
1. Go to this page and download the library: Download ajroudsoftwares/image-cropper library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ajroudsoftwares / image-cropper example snippets
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',
'bash
php bin/console assets:install