flagbit/table-attribute-bundle
Composer 安装命令:
composer require flagbit/table-attribute-bundle
包简介
The Flagbit Table Attribute Bundle for Akeneo PIM gives you the possibility to enrich your product with multi-dimensional data presentation in the form of tables, allowing you maximum flexibility within the PIM.
README 文档
README
Flagbit Table Attribute for Akeneo PIM
Adds the new attribute type Table for Akeneo products.
Key Features • Installation • Compatibility • Development • Contributing
Key Features
Provides a table as attribute type where you can define a set of columns of different types and validation rules.
Column Types
- Text
- Number (Integer or Decimal)
- Simple select
- Simple select from URL
Import/Export
The extension supports the standard Akeneo product import/export, so you don't need to create any special import/export profile for table information.
All product information related to attributes of type table will be imported/exported as JSON.
Installation
Simply install the package with the following command:
composer require flagbit/table-attribute-bundle
Enable the bundle
Enable the bundle in the kernel:
<?php // config/bundles.php return [ // ... Flagbit\Bundle\TableAttributeBundle\FlagbitTableAttributeBundle::class => ['all' => true], ];
Configuration
Add mapping_overrides in a new config/packages/table.yml file or an existing one:
akeneo_storage_utils: mapping_overrides: - original: Akeneo\Pim\Structure\Component\Model\AttributeOption override: Flagbit\Bundle\TableAttributeBundle\Entity\AttributeOption
Import the routing
Now that you have activated and configured the bundle, you need to import the routing files.
# config/routes/flagbit_table_attribute.yml flagbit_table_attribute: resource: "@FlagbitTableAttributeBundle/Resources/config/routing.yml"
Clear the cache:
php bin/console --env=prod cache:clear
Update the database schema:
php bin/console --env=prod doctrine:schema:update --force
Build and install the new front-end dependencies (new icon, etc.)
make cache assets css javascript-prod javascript-extensions
In case you're using Doctrine migrations, you have to create a new migration class
php bin/console --env=prod doctrine:migration:diff
and migrate the schema updates:
php bin/console --env=prod doctrine:migrations:migrate
Compatibility
This extension supports the latest Akeneo PIM CE/EE stable versions:
- 6.0
- 5.0
- 4.0
- 3.2 (LTS)
- 3.0 (LTS)
- 2.3 (LTS)
Development
Running Test-Suits
The TableAttributeBundle is covered with tests and every change and addition has also to be covered with unit or/and integration tests. It uses two testing suits: PHPSpec and PHPUnit.
To run the tests you have to change to this project's root directory and run the following commands in your console:
vendor/bin/phpunit vendor/bin/phpspec run
Coding style
TableAttributeBundle uses the PSR-2 coding style and can be checked with Codesniffer.
vendor/bin/phpcs --standard=PSR2 --extensions=php ./src
Contributing
Contributions are always welcome! Please have a look at the contribution guidelines first.
License
The TableAttributeBundle is licensed under the MIT License - see the LICENSE file for details.
Supported with ❤ by Flagbit GmbH & Co. KG
flagbit/table-attribute-bundle 适用场景与选型建议
flagbit/table-attribute-bundle 是一款 基于 JavaScript 开发的 Composer 扩展包,目前已累计 10.48k 次下载、GitHub Stars 达 23, 最近一次更新时间为 2018 年 06 月 14 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「attribute」 「table」 「PIM」 「akeneo」 「multidimensional」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 flagbit/table-attribute-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 flagbit/table-attribute-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 flagbit/table-attribute-bundle 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Plug-ins for DataTables
A component that allows creating responsive HTML tables or lists from data object
Adjacency List’ed Closure Table database design pattern implementation for Laravel. Includes restore of tree
A package for automatically encrypting and decrypting Eloquent attributes in Laravel 5.5+, based on configuration settings.
A simple package to create tables in Discord messages.
Powerful class discovery system for Laravel with attribute-based scanning, directory traversal, and monorepo support
统计信息
- 总下载量: 10.48k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 23
- 点击次数: 29
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-06-14