Download the PHP package inuar/attribute-group-readonly-bundle without Composer

On this page you can find all versions of the php package inuar/attribute-group-readonly-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package attribute-group-readonly-bundle

InuarAttributeGroupReadOnlyBundle

A Symfony bundle for Akeneo PIM Community Edition that allows you to mark attribute groups as read-only, preventing users from editing any attribute values belonging to those groups on the product edit form.

attribute group read-only


Features


Requirements

Dependency Version
PHP ^8.1
Symfony ^5.4 / ^6.x
Akeneo PIM CE ^7.0
Doctrine DBAL ^3.x

Installation


  1. Install the bundle
  2. Register the bundle

Add the bundle to config/bundles.php:


  1. Register the routes

Add the following to config/routes/routes.yml:


  1. Run the database migration

This creates the inuar_readonly_attribute_group table used to store which attribute groups are flagged as read-only.


  1. Install assets and rebuild the frontend

Usage

  1. Go to Settings → Attribute Groups in the Akeneo UI.
  2. Open any attribute group.
  3. In the Properties tab, find the Read-Only section.
  4. Toggle the switch to enable or disable read-only mode for that group.
  5. All attributes belonging to that group will be immediately locked on the product edit form — visually disabled with a notice, and protected at the backend level.

How it works

Backend enforcement

The bundle decorates Akeneo's pim_catalog.updater.product service. On every product save (UI, API, or import), it queries the read-only attribute groups, resolves all attribute codes belonging to those groups, and strips those values from the update payload before delegating to the original updater.

Frontend enforcement

A form extension listens to the pim_enrich:form:field:extension:add event on the product edit form. For each field whose attribute belongs to a read-only group, it calls field.setEditable(false) and appends a footer note: "This attribute is read-only and cannot be edited."

Database

A single table inuar_readonly_attribute_group stores the codes of read-only attribute groups:


All versions of attribute-group-readonly-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
symfony/framework-bundle Version ^5.4
doctrine/dbal Version ^2.13.4
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package inuar/attribute-group-readonly-bundle contains the following files

Loading the files please wait ...