PHPackages                             kitpages/file-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. kitpages/file-bundle

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

kitpages/file-bundle
====================

FileBundle manages uploads and manipulations of files for the Kitpages CMS Bundle

v3.0.7(8y ago)827.7k31MITJavaScriptPHP &gt;=5.3.2

Since May 24Pushed 8y ago8 watchersCompare

[ Source](https://github.com/kitpages/KitpagesFileBundle)[ Packagist](https://packagist.org/packages/kitpages/file-bundle)[ Docs](https://github.com/kitpages/KitpagesFileBundle)[ RSS](/packages/kitpages-file-bundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (17)Versions (17)Used By (1)

KitpagesFileBundle
==================

[](#kitpagesfilebundle)

This is an ajax upload system for symfony.

author : Philippe Le Van (@plv)

Installation
============

[](#installation)

hum... as usual...

put the code in vendors/Kitpages/FileBundle

add vendors/ in the app/autoload.php

add the new Bundle in app/appKernel.php

You need to create a table in the database : launch command: php app/console doctrine:schema:update

Add a field file upload in a form
=================================

[](#add-a-field-file-upload-in-a-form)

In form Class $builder-&gt;add( 'fileId', 'hidden', array( "label" =&gt; "File" ) );

In file Twig

&lt;script type="text/javascript" src="{{ asset ("bundles/kitpagesfile/uploadify/jquery.uploadify.min.js") }}"&gt;&lt;/script&gt; {% include 'KitpagesFileBundle:Upload:pluginJs.html.twig' ignore missing %}

```

        {{ form_row(
        form.title
        ) }}

            Image
            {{ form_widget(form.file) }}
            {% render 'KitpagesFileBundle:Upload:widget' with {'fieldId': 'form_fileId', 'itemClass': 'AppSiteBundle:Document', 'itemId': form.vars.value.id, parameterList:{'multi': false, 'publishParent': false} } %}

        {{ form_widget(form) }}

```

Attention fieldId = the attribute ID of input generate by "{{ form\_widget(form.fileId) }}" in the form

UPDATE DATABASE IF EXISTS
=========================

[](#update-database-if-exists)

updates an existing database in version1.2.0

Installation ImagineBundle and kitpagesFileSystemBundle
=======================================================

[](#installation-imaginebundle-and-kitpagesfilesystembundle)

Step1: add the following entries to the deps in the root of your project file:

\[Imagine\] git=target=imagine

\[KitpagesFileSystemBundle\] git=target=Kitpages/FileSystemBundle

Step2: Configure the autoloader

Add the following entries to your autoloader:

registerNamespaces(array( // ... 'Imagine' =&gt; \_\_DIR\_\_.'/../vendor/imagine/lib', )); Step3: AppKernel.php Add the following entries to your autoloader: $bundles = array( ... new Kitpages\\FileSystemBundle\\KitpagesFileSystemBundle(), ); Step4: Configuration example ===================== kitpages\_file: tmp\_dir: %kernel.root\_dir%/data/tmp type\_list: image: resize: form: 'kit\_file.image.resize.form' form\_twig: 'KitpagesFileBundle:ActionOnFile:Image/Resize/form.html.twig' handler\_form: 'kit\_file.image.resize.form.handler' library: 'imagine.gd' kitpages\_file\_system: file\_system\_list: kitpagesFile: local: directory\_public: %kernel.root\_dir%/../web directory\_private: %kernel.root\_dir% base\_url: %base\_url% Step5: php bin/vendors update Step6: launch command: php app/console kitFile:updateDatabase Extend entity ============ see entity File create a entity - class Extendentity extends FileBase create a repository - class ExtendentityRepository extends FileBaseRepository { CONST entity = 'AppSiteBundle:Extendentity'; } complete config.yml entity\_file\_name\_list: default : class: Kitpages\\FileBundle\\Entity\\File data\_dir\_prefix: /default Extendentity : class: App\\SiteBundle\\Entity\\Extendentity data\_dir\_prefix: /ExtendentityDir

###  Health Score

36

—

LowBetter than 81% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 81.3% 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.

###  Release Activity

Cadence

Every ~125 days

Recently: every ~259 days

Total

17

Last Release

3095d ago

Major Versions

1.x-dev → 2.0.x-dev2012-05-24

v2.1.0RC1 → v3.0.02013-09-09

### Community

Maintainers

![](https://www.gravatar.com/avatar/95c1423b83010cc8afd1fc966d26cc6fc5d7fb5d000e5d7582adcd8392bd239c?d=identicon)[kitpages](/maintainers/kitpages)

---

Top Contributors

[![philippe-levan](https://avatars.githubusercontent.com/u/393066?v=4)](https://github.com/philippe-levan "philippe-levan (13 commits)")[![hugues-m](https://avatars.githubusercontent.com/u/5310915?v=4)](https://github.com/hugues-m "hugues-m (3 commits)")

---

Tags

encodingresizefilesuploadkitpages cms

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kitpages-file-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/kitpages-file-bundle/health.svg)](https://phpackages.com/packages/kitpages-file-bundle)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[vlabs/media-bundle

Form, database and filesystem abstraction for files

4516.3k](/packages/vlabs-media-bundle)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

7310.3k29](/packages/open-dxp-opendxp)[ranky/media-bundle

A complete and friendly media file manager for Symfony

681.3k](/packages/ranky-media-bundle)

PHPackages © 2026

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