fresh/doctrine-enum-bundle
Composer 安装命令:
composer require fresh/doctrine-enum-bundle
包简介
Provides support of ENUM type for Doctrine2 in Symfony applications.
README 文档
README
📦 Provides ENUM type support for Doctrine in Symfony applications.
Supported platforms 🧐
| PostgreSQL | SQLite | MySQL | MSSQL |
|---|
Installation 🌱
composer req fresh/doctrine-enum-bundle
Choose the version you need
| Bundle Version (X.Y.Z) | PHP | Symfony | Doctrine Bundle | Comment |
|---|---|---|---|---|
12.0.* |
>= 8.4 |
>= 7.4 |
>= 2.12, >= 3.0 |
Current version |
11.2.* |
>= 8.2 |
>= 6.4 |
>= 2.12, >= 3.0 |
Previous |
Check the config/bundles.php file
By default, Symfony Flex will add this bundle to the config/bundles.php file.
But in case you ignored contrib-recipe during bundle installation it would not be added. In this case add the bundle manually:
# config/bundles.php return [ // Other bundles... Fresh\DoctrineEnumBundle\FreshDoctrineEnumBundle::class => ['all' => true], // Other bundles... ];
Usage 🧑🎓
Features 🎁
- NULL values
- Default value
- Building the form
- Additional methods
- Common types
- Readable ENUM values in templates
- ENUM constants in templates
- ENUM values in templates
- Hook for Doctrine migrations
Contributing 🤝
Read the CONTRIBUTING file.
fresh/doctrine-enum-bundle 适用场景与选型建议
fresh/doctrine-enum-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 7.03M 次下载、GitHub Stars 达 462, 最近一次更新时间为 2012 年 11 月 05 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「dbal」 「symfony」 「mysql」 「bundle」 「sqlite」 「doctrine」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 fresh/doctrine-enum-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 fresh/doctrine-enum-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 fresh/doctrine-enum-bundle 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Dibi is Database Abstraction Library for PHP
The bundle for easy using json-rpc api on your project
A custom Doctine DBAL type to use PHP DateTime objects set to the system's default timezone.
Bundle Symfony DaplosBundle
Use a REST API as if it was your local database
Use FileMaker through CWP as your backend database
统计信息
- 总下载量: 7.03M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 474
- 点击次数: 31
- 依赖项目数: 16
- 推荐数: 1
其他信息
- 授权协议: MIT
- 更新时间: 2012-11-05