PHPackages                             teebbstudios/uploader-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. teebbstudios/uploader-bundle

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

teebbstudios/uploader-bundle
============================

For symfony file upload.

601PHP

Since Aug 14Pushed 2y ago1 watchersCompare

[ Source](https://github.com/teebbstudios/TeebbUploaderBundle)[ Packagist](https://packagist.org/packages/teebbstudios/uploader-bundle)[ RSS](/packages/teebbstudios-uploader-bundle/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (2)Used By (0)

TeebbUploaderBundle
===================

[](#teebbuploaderbundle)

《Symfony Bundle开发》视频教程中的课程代码。`master`分支中的代码将会删除不必要的注释继续完善功能。 `tutorial`分支保留视频课程里的步骤代码用于Bundle开发的学习。

### 《Symfony Bundle开发》视频教程地址：

[](#symfony-bundle开发视频教程地址)

网站视频播放URL字幕teebb有字幕bilibili有字幕### 功能介绍

[](#功能介绍)

减少Symfony项目中的文件上传复杂度。提供文件上传表单，文件上传后自动使用Entity类封装文件数据，并在插入数据库时完成文件上传。

支持多个文件Entity类，支持不同的文件Entity类上传到不同的文件目录，支持不同的文件Entity类使用不同的文件命名规则。详细原理，请查看视频教程。

### 安装

[](#安装)

目前Bundle功能会继续开发，请安装master分支的代码。

```
composer require teebbstudios/uploader-bundle:dev-master

```

### 配置模板

[](#配置模板)

```
#/config/packages/teebb_uploader.yaml

teebb_uploader:
    handlers:
        # 为不同的文件Entity类定义不同的Handler， 键值用于handler服务类的id，可以任意定义
        # 使用FileSystem上传到本地服务器
        simple_file_handler:
            entity: App\Entity\SimpleFile # 文件数据的Entity全类名
            upload_dir: '%kernel.project_dir%/public/teebb_upload'  # 上传的目标目录
            package_name: 'teebb_upload' # 用于文件显示时添加前缀，需要在assets.yaml文件中进行配置

        # 使用FlySystem上传文件
        simple_file_handler_demo2:
            entity: App\Entity\SimpleFile # 文件数据的Entity全类名
            upload_dir: 'string'  # 上传的目标目录
            package_name: 'string' # 用于文件显示时添加前缀，需要在assets.yaml文件中进行配置
            storage:
                type: 'fly_system' # 使用FlySystem完成文件的上传，需要安装oneup/flysystem-bundle
                service: 'oneup_flysystem.default_filesystem_filesystem' # 可使用flysystem提供的服务类id 或 配置项名称，例如："default_filesystem"
            namer:
                service: Teebb\UploadBundle\Namer\HashNamer
                options:
                    algorithm: sha1
                    length: 10
```

### 代码协议

[](#代码协议)

开源项目，本项目代码遵循MIT开源协议，欢迎贡献代码。

### 广告

[](#广告)

在企业中Symfony项目是按Bundle分模块开发的，学习Bundle开发很有必要。本视频教程为本人原创教程，花费了大量精力，保证一如既往的视频质量。 如有需求请 付费支持一下，[《Symfony Bundle开发视频教程》](https://www.teebb.com/course-detail/symfony-bundle-development) 。

有回馈我才有动力继续制作下一套视频教程，谢谢！！！🤝🏻

承接Symfony、Magento项目外包，公司资质，可签合同，联系微信：443580003

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity23

Early-stage or recently created project

 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/ac53051e876f172165478233ce004edaaee86ce537c38034eb5bac9cce77632d?d=identicon)[teebbstudios](/maintainers/teebbstudios)

---

Top Contributors

[![teebbstudios](https://avatars.githubusercontent.com/u/50291105?v=4)](https://github.com/teebbstudios "teebbstudios (37 commits)")

### Embed Badge

![Health badge](/badges/teebbstudios-uploader-bundle/health.svg)

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

###  Alternatives

[knplabs/gaufrette

PHP library that provides a filesystem abstraction layer

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

Flysystem adapter for Google Cloud Storage

26320.6M30](/packages/superbalist-flysystem-google-storage)[illuminate/filesystem

The Illuminate Filesystem package.

15161.6M2.6k](/packages/illuminate-filesystem)[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)[madnest/madzipper

Easier zip file handling for Laravel applications.

1382.3M6](/packages/madnest-madzipper)

PHPackages © 2026

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