Download the PHP package alengo/sulu-contact-account-extra-bundle without Composer
On this page you can find all versions of the php package alengo/sulu-contact-account-extra-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download alengo/sulu-contact-account-extra-bundle
More information about alengo/sulu-contact-account-extra-bundle
Files in alengo/sulu-contact-account-extra-bundle
Package sulu-contact-account-extra-bundle
Short Description Additional Data tab for Sulu CMS Contacts and Accounts — generic JSON field with configurable forms
License MIT
Homepage https://github.com/alengodev/SuluContactAccountExtraBundle
Informations about the package sulu-contact-account-extra-bundle
SuluContactAccountExtraBundle
Adds a configurable Additional Data tab to Sulu CMS 3.x Contacts and Accounts. Custom fields are stored as a JSON column on the entity — no extra tables, no extra API routes beyond the two provided endpoints.
Features
- Additional Data tab — auto-registered for Contacts and Accounts
- Built-in entities — concrete
ContactandAccountextending Sulu's base classes with a JSONadditionalDatafield; no project entities required - Generic REST API — GET/PUT endpoints serialize the full JSON blob; the project form defines the fields
- Zero-config entity registration —
sulu_contactobjects andsulu_adminresources are auto-configured viaPrependExtensionInterface
Requirements
- PHP 8.2+
- Sulu CMS ~3.0
- Symfony 7.x
Installation
Register the bundle in config/bundles.php:
Import the admin API routes in config/routes/sulu_admin.yaml:
Run a database migration to add the additionalData JSON column:
That's it — no further configuration required for a standard setup.
Configuration
All configuration is optional. Defaults work out of the box.
To use custom entity classes:
Provided Forms
The bundle does not ship default form XML files — the project controls field definitions. Create your own in config/forms/:
Example form:
API Endpoints
| Method | Path | Description |
|---|---|---|
GET |
/admin/api/account-additional-data/{id} |
Load account additional data |
PUT |
/admin/api/account-additional-data/{id} |
Save account additional data |
GET |
/admin/api/contact-additional-data/{id} |
Load contact additional data |
PUT |
/admin/api/contact-additional-data/{id} |
Save contact additional data |
Provided Models
| Class | Purpose |
|---|---|
Entity\Account |
Concrete Doctrine entity (co_accounts) with additionalData JSON column |
Entity\Contact |
Concrete Doctrine entity (co_contacts) with additionalData JSON column |