# Flagbit Table Attribute for Akeneo PIM **Repository Path**: tokyo-uniform/akeneo-table-attribute-bundle ## Basic Information - **Project Name**: Flagbit Table Attribute for Akeneo PIM - **Description**: Flagbit Table Attribute for Akeneo PIM - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: akeneo-7 - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-10-26 - **Last Updated**: 2025-10-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README
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: ``` bash composer require flagbit/table-attribute-bundle ``` ### Enable the bundle Enable the bundle in the kernel: ``` php ['all' => true], ]; ``` #### Configuration Add `mapping_overrides` in a new `config/packages/table.yml` file or an existing one: ``` yml 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. ``` yml # config/routes/flagbit_table_attribute.yml flagbit_table_attribute: resource: "@FlagbitTableAttributeBundle/Resources/config/routing.yml" ``` Clear the cache: ``` bash php bin/console --env=prod cache:clear ``` Update the database schema: ``` bash php bin/console --env=prod doctrine:schema:update --force ``` Build and install the new front-end dependencies (new icon, etc.) ``` bash make cache assets css javascript-prod javascript-extensions ``` In case you're using Doctrine migrations, you have to create a new migration class ``` bash php bin/console --env=prod doctrine:migration:diff ``` and migrate the schema updates: ``` bash php bin/console --env=prod doctrine:migrations:migrate ``` ## Compatibility This extension supports the latest Akeneo PIM CE/EE stable versions: * 7.0 * 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](https://www.phpspec.net) and [PHPUnit](https://phpunit.de/). To run the tests you have to change to this project's root directory and run the following commands in your console: ``` bash vendor/bin/phpunit vendor/bin/phpspec run ``` ### Coding style TableAttributeBundle uses the [PSR-2](https://www.php-fig.org/psr/psr-2/) coding style and can be checked with [Codesniffer](https://github.com/squizlabs/PHP_CodeSniffer). ``` bash vendor/bin/phpcs --standard=PSR2 --extensions=php ./src ``` ## Contributing Contributions are always welcome! Please have a look at the [contribution guidelines](CONTRIBUTING.md) first. ## License The TableAttributeBundle is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. #Supported with ❤ by Flagbit GmbH & Co. KG