PHPackages                             kematjaya/download-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. kematjaya/download-bundle

ActiveLibrary

kematjaya/download-bundle
=========================

1.3.1(5y ago)1142proprietaryPHPCI failing

Since Jul 17Pushed 5y ago1 watchersCompare

[ Source](https://github.com/kematjaya0/download-bundle)[ Packagist](https://packagist.org/packages/kematjaya/download-bundle)[ RSS](/packages/kematjaya-download-bundle/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (12)Versions (6)Used By (0)

download-bundle for symfony 4 / symfony 5
=========================================

[](#download-bundle-for-symfony-4--symfony-5)

1. install

    ```
    composer require kematjaya/download-bundle

    ```
2. update config/bundles.php

    ```
    Kematjaya\DownloadBundle\DownloadBundle::class => ['all' => true]

    ```
3. create file config/packages/kmj\_download.yml

    ```
    download:
     upload_dir: '%kernel.project_dir%/public/uploads'
     encrypt:
         key: ~ # encrypt key

    ```
4. import routing config/routes/annotations.yaml

    ```
    kmj_download:
      resource: '@DownloadBundle/Resources/config/routing.xml'

    ```
5. using template in twig config/packages/twig.yaml

    ```
    twig:
      form_themes: [
        '@Download/upload_theme.html.twig'
      ]

    ```
6. implement to entity e.g. App\\Entity\\Person

    ```
    namespace App\Entity;

    use Kematjaya\DownloadBundle\Entity\DownloadInterface;

    /**
    * @ORM\Table(name="person")
    */
    class Person implements DownloadInterface
    {

      /**
       * @ORM\Column(type="string", length=255, nullable=true)
       */
      private $images;

      public function getImages(): ?string
      {
          return $this->images;
      }

      public function setImages(?string $images): self
      {
          $this->images = $images;

          return $this;
      }

      public static function getPaths():array
      {
          return [
              'getImages' => 'person'
              // 'getImages' is function where contain file name, and 'person' is path where file uploaded inside 'upload_dir' (part 3)
          ];
      }
    }

    ```
7. dont forget to add upload file type in Form class e.g App\\Form\\PersonType

    ```
    namespace App\Form;

    use App\Entity\Person;
    use Symfony\Component\Form\AbstractType;
    use Symfony\Component\Form\FormBuilderInterface;
    use Symfony\Component\Form\Extension\Core\Type\FileType;
    use Symfony\Component\OptionsResolver\OptionsResolver;

    class PersonType extends AbstractType
    {

      public function buildForm(FormBuilderInterface $builder, array $options)
      {
        $builder->add('images', FileType::class);
      }

      public function configureOptions(OptionsResolver $resolver)
      {
          $resolver->setDefaults([
              'data_class' => Person::class,
          ]);
      }
    }

    ```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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.

###  Release Activity

Cadence

Every ~4 days

Total

5

Last Release

2108d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f2cf191329e1adc930a168a7d3baeda8517b7982184820692163a5baa72e3965?d=identicon)[kematjaya0](/maintainers/kematjaya0)

---

Top Contributors

[![kematjaya0](https://avatars.githubusercontent.com/u/36223951?v=4)](https://github.com/kematjaya0 "kematjaya0 (15 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kematjaya-download-bundle/health.svg)

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

###  Alternatives

[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)[sylius/sylius

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

8.4k5.6M648](/packages/sylius-sylius)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k16.7M309](/packages/easycorp-easyadmin-bundle)[sulu/sulu

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

1.3k1.3M152](/packages/sulu-sulu)[contao/core-bundle

Contao Open Source CMS

1231.6M2.3k](/packages/contao-core-bundle)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)

PHPackages © 2026

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