PHPackages                             anime-db/form-type-image-bundle - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. anime-db/form-type-image-bundle

ActiveLibrary[File &amp; Storage](/categories/file-storage)

anime-db/form-type-image-bundle
===============================

Image upload form type

09JavaScript

Since May 25Pushed 9y ago1 watchersCompare

[ Source](https://github.com/anime-db/form-type-image-bundle)[ Packagist](https://packagist.org/packages/anime-db/form-type-image-bundle)[ RSS](/packages/anime-db-form-type-image-bundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/3bf0fa3ac0ba62b7193ed3e654d592af2de9fbed91f2225909aa404a6ed08595/68747470733a2f2f706f7365722e707567782e6f72672f616e696d652d64622f666f726d2d747970652d696d6167652d62756e646c652f762f737461626c652e706e67)](https://packagist.org/packages/anime-db/form-type-image-bundle)[![Latest Unstable Version](https://camo.githubusercontent.com/a3cf172ab51be1ee0e9989bf04b696a3790a85ff4474e788421b089ad78646d9/68747470733a2f2f706f7365722e707567782e6f72672f616e696d652d64622f666f726d2d747970652d696d6167652d62756e646c652f762f756e737461626c652e706e67)](https://packagist.org/packages/anime-db/form-type-image-bundle)[![Total Downloads](https://camo.githubusercontent.com/4c53d4a0db0f58b58d98eaed562e4f2d64ded3f5f7977b99b1b9db1b56aa61ae/68747470733a2f2f706f7365722e707567782e6f72672f616e696d652d64622f666f726d2d747970652d696d6167652d62756e646c652f646f776e6c6f616473)](https://packagist.org/packages/anime-db/form-type-image-bundle)[![Build Status](https://camo.githubusercontent.com/1f2ba1d23b723b8dd450a3beb089d31f9f96dd087ac2991726cb7539f68b5712/68747470733a2f2f7472617669732d63692e6f72672f616e696d652d64622f666f726d2d747970652d696d6167652d62756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/anime-db/form-type-image-bundle)[![Code Coverage](https://camo.githubusercontent.com/6b38f0110c49c3ab809800d233eba07f11147404c5183e0b3e552805cba88a29/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f616e696d652d64622f666f726d2d747970652d696d6167652d62756e646c652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/anime-db/form-type-image-bundle/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/9e0bbe255abb519b14f5540d6195c4a7c5af2fe1fe1b87d68c89908f78d0045a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f616e696d652d64622f666f726d2d747970652d696d6167652d62756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/anime-db/form-type-image-bundle/?branch=master)[![SensioLabsInsight](https://camo.githubusercontent.com/34b425274512cbe438be327f1beba529c501ec52e458ae955467d57ef09c2456/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f66383364616266382d643562302d343538362d623235342d6166373432646633343563362f6d696e692e706e67)](https://insight.sensiolabs.com/projects/f83dabf8-d5b0-4586-b254-af742df345c6)[![License](https://camo.githubusercontent.com/d2c99fca28da6f7f65aa8b93a8917a96ef1a3efda450968328bd5bbb556d13b1/68747470733a2f2f706f7365722e707567782e6f72672f616e696d652d64622f666f726d2d747970652d696d6167652d62756e646c652f6c6963656e73652e706e67)](https://packagist.org/packages/anime-db/form-type-image-bundle)

Image upload form type
======================

[](#image-upload-form-type)

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

[](#installation)

Pretty simple with [Composer](http://packagist.org), run:

```
composer require anime-db/form-type-image-bundle
```

Add FormTypeImageBundle to your application kernel

```
// app/AppKernel.php
public function registerBundles()
{
    return array(
        // ...
        new AnimeDb\Bundle\FormTypeImageBundle\AnimeDbFormTypeImageBundle(),
        // ...
    );
}
```

Configuration
-------------

[](#configuration)

Default config

```
anime_db_cache_time_keeper:
    web_path: '/upload/' # Upload images directory: %kernel.root_dir%/../web/upload/
    authorized: true     # Only authorized users can upload images
    constraint:
        files_limit: 10  # Limiting the number of simultaneous file upload
        max_size: null   # Max file size. Example: 2M
        min_width:  0    # Minimum image width
        min_height: 0    # Minimum image height
        max_width:  0    # Maximum image width
        max_height: 0    # Maximum image height
```

Add form template

```
twig:
    form:
        resources: [ 'AnimeDbFormTypeImageBundle:Form:fields.html.twig' ]
```

Add form templates for [SonataDoctrineORMAdminBundle](https://github.com/sonata-project/SonataDoctrineORMAdminBundle)

```
sonata_doctrine_orm_admin:
    templates:
        form: [ 'AnimeDbFormTypeImageBundle:Form:sonata_admin_fields.html.twig' ]
```

Usage
-----

[](#usage)

```
use AnimeDb\Bundle\FormTypeImageBundle\Form\Type\ImageType;
use AnimeDb\Bundle\FormTypeImageBundle\Form\Type\ImageCollectionType;

$form = $this
    ->createFormBuilder()
    ->add('cover', ImageType::class)
    ->add('covers', ImageCollectionType::class);
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/9a6415c83577efe7b70d9ae4a3bb12958adc11c16e530ff844ff217b0fd0c54a?d=identicon)[Peter Gribanov](/maintainers/Peter%20Gribanov)

---

Top Contributors

[![peter-gribanov](https://avatars.githubusercontent.com/u/1954436?v=4)](https://github.com/peter-gribanov "peter-gribanov (63 commits)")

---

Tags

componentphp

### Embed Badge

![Health badge](/badges/anime-db-form-type-image-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/anime-db-form-type-image-bundle/health.svg)](https://phpackages.com/packages/anime-db-form-type-image-bundle)
```

###  Alternatives

[knplabs/gaufrette

PHP library that provides a filesystem abstraction layer

2.5k39.8M123](/packages/knplabs-gaufrette)[google/cloud-storage

Cloud Storage Client for PHP

34390.8M125](/packages/google-cloud-storage)[illuminate/filesystem

The Illuminate Filesystem package.

15261.6M2.6k](/packages/illuminate-filesystem)[superbalist/flysystem-google-storage

Flysystem adapter for Google Cloud Storage

26320.6M30](/packages/superbalist-flysystem-google-storage)[creocoder/yii2-flysystem

The flysystem extension for the Yii framework

2931.7M62](/packages/creocoder-yii2-flysystem)[flowjs/flow-php-server

PHP library for handling chunk uploads. Works with flow.js html5 file uploads.

2451.6M15](/packages/flowjs-flow-php-server)

PHPackages © 2026

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