agence-adeliom/easy-fields-bundle
Composer 安装命令:
composer require agence-adeliom/easy-fields-bundle
包简介
A Symfony bundle for EasyAdmin that provide some fields
关键字:
README 文档
README
Easy Fields Bundle
Provide some fields for Easyadmin.
Versions
| Repository Branch | Version | Symfony Compatibility | PHP Compatibility | Status |
|---|---|---|---|---|
3.x |
3.x |
6.4, and 7.x |
8.2 or higher |
New features and bug fixes |
2.x |
2.x |
5.4, and 6.x |
8.0.2 or higher |
Bug fixes |
1.x |
1.x |
4.4, and 5.x |
7.2.5 or higher |
No longer maintained |
Installation with Symfony Flex
Add our recipes endpoint
{
"extra": {
"symfony": {
"endpoint": [
"https://api.github.com/repos/agence-adeliom/symfony-recipes/contents/index.json?ref=flex/main",
...
"flex://defaults"
],
"allow-contrib": true
}
}
}
Install with composer
composer require agence-adeliom/easy-fields-bundle
Documentation
AssociationField
Is an extension of EasyAdmin's AssociationField that allow you to create new object et select one from the curent page.
Usage
use Adeliom\EasyFieldsBundle\Admin\Field\AssociationField; // You have to add this form theme @EasyFields/form/association_widget.html.twig ... yield AssociationField::new('property', "label");
EnumField
Usage
use Adeliom\EasyFieldsBundle\Admin\Field\EnumField; ... yield EnumField::new('property', "label") ->setEnum(YourEnumClass::class);
FormTypeField
This field is a custom integration that allow you to bind any raw form type to your admin.
Usage
use Adeliom\EasyFieldsBundle\Admin\Field\FormTypeField; ... yield FormTypeField::new('property', "label", YourFormTypeClass::class)
TranslationField
An A2lix TranslationFormBundle integration for EasyAdmin.
Usage
use Adeliom\EasyFieldsBundle\Admin\Field\TranslationField; // You have to add this form theme @EasyFields/form/translations_widget.html.twig ... yield TranslationField::new('property', "label", [ 'description' => [ 'field_type' => 'textarea', 'label' => 'descript.', 'locale_options' => [ 'es' => ['label' => 'descripción'] 'fr' => ['display' => false] ] ] ])
ChoiceMaskField
An fork of Sonata's ChoiceMaskField for EasyAdmin.
Usage
use Adeliom\EasyFieldsBundle\Admin\Field\ChoiceMaskField; // You have to add this form theme @EasyFields/form/choice_mask_widget.html.twig ... yield ChoiceMaskField::new('property', "label") ->setChoices([ 'uri' => 'uri', 'route' => 'route', ]) // Associative array. Describes the fields that are displayed for each choice. ->setMap([ 'route' => ['route', 'parameters'], 'uri' => ['uri'], ]);
SortableCollectionField
Is an extension of EasyAdmin's CollectionField that allow you to sort entries.
Usage
use Adeliom\EasyFieldsBundle\Admin\Field\SortableCollectionField; // You have to add this form theme @EasyFields/form/sortable_widget.html.twig ... // NOTE : property can be a *ToMany or an array. yield SortableCollectionField::new('property', "label") ->setEntryType(YourEntryFromType::class) ->allowAdd() // Allow to add new entry ->allowDelete() // Allow to remove entries ->allowDrag() // Allow to drag entries ;
IconField
Is an icon picker.
Usage
use Adeliom\EasyFieldsBundle\Admin\Field\IconField; // You have to add this form theme @EasyFields/form/icon_widget.html.twig ... yield IconField::new('property', "label") ->setJsonUrl($url) // Must be a public json file with an array of your icon's classes ->setFonts($fonts) // Must be an array of yours fonticon css file ->setSelectButtonLabel() // Change label ->setCancelButtonLabel() // Change label ->setShowAllButtonLabel() // Change label ->setSearchPlaceholder() // Change label ->setNotResultMessage() // Change label ->setDeleteLabel() ;
PositionSortableField
Usage
use Adeliom\EasyFieldsBundle\Admin\Field\PositionSortableField; // You have to add this form theme @EasyFields/form/form-easy-field-position-sortable.html.twig ... yield PositionSortableField::new('property', "label");
OembedField
To use this field, you need to add the bundle specific routes:
# config/routes/easy_fields.yaml easy_fields: resource: '@EasyFieldsBundle/Resources/config/routes.xml' prefix: /
Usage
use Adeliom\EasyFieldsBundle\Admin\Field\OembedField; // You have to add this form theme @EasyFields/form/oembed_widget.html.twig ... yield OembedField::new('property', "label");
Twig render
# Get HTML code {{ property|oembed_html }} # Get Dimensions {{ property|oembed_size }}
License
Authors
agence-adeliom/easy-fields-bundle 适用场景与选型建议
agence-adeliom/easy-fields-bundle 是一款 基于 JavaScript 开发的 Composer 扩展包,目前已累计 17.59k 次下载、GitHub Stars 达 13, 最近一次更新时间为 2021 年 09 月 23 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「symfony」 「fields」 「easyadmin」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 agence-adeliom/easy-fields-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 agence-adeliom/easy-fields-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 agence-adeliom/easy-fields-bundle 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A Symfony Media manager bundle for EasyAdmin
The bundle for easy using json-rpc api on your project
A Symfony simple blogging bundle for EasyAdmin
Register advanced custom fields with object oriented PHP
Symfony Shop bundle for EasyAdmin based on Sylius
Bundle Symfony DaplosBundle
统计信息
- 总下载量: 17.59k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 13
- 点击次数: 2
- 依赖项目数: 8
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-09-23