English | 🇩🇪 Deutsch
A Sulu bundle to extend the account entity with company data, business hours, public holidays and company holidays.
Note: This bundle replaces the former
manuxi/sulu-additional-account-data-bundle(SuluAdditionalAccountDataBundle).
- PHP 8.2 or higher
- Sulu CMS 3.0 or higher
- Symfony 6.2 / 7.0 or higher
- SuluAdminExtrasBundle (installed automatically as a dependency)
composer require manuxi/sulu-extended-account-bundleIf you are not using Symfony Flex, register the bundle in config/bundles.php:
return [
//...
Manuxi\SuluExtendedAccountBundle\SuluExtendedAccountBundle::class => ['all' => true],
];Add the following to config/routes/routes_admin.yaml:
SuluExtendedAccountBundle:
resource: '@SuluExtendedAccountBundle/Resources/config/routes_admin.yaml'# Preview the required SQL changes
php bin/console doctrine:schema:update --dump-sql
# Apply the changes
php bin/console doctrine:schema:update --forceImportant: Make sure you only process the schema updates related to this bundle.
The opening hours features (business hours, public holidays, company holidays) use content types from the SuluAdminExtrasBundle. Their JavaScript components must be registered in your admin assets.
A) Update assets/admin/package.json
Add the dependency for the AdminExtrasBundle:
{
"dependencies": {
"sulu-admin-extras-bundle": "file:../../vendor/manuxi/sulu-admin-extras-bundle/src/Resources"
}
}B) Update assets/admin/app.js
Import the bundle:
import 'sulu-admin-extras-bundle';C) Install & Build
cd assets/admin
npm install
npm run buildFor detailed instructions see the Installation Guide.
- Commercial register number, registry court, descriptor and claim
- Weekly business hours schedule with time slots and breaks
- Public holidays via Nager.Date API integration
- Company holidays / closure periods
The bundle provides Twig functions for frontend use:
| Function | Returns | Description |
|---|---|---|
is_open_now(accountId) |
bool |
Whether the account is currently open |
get_business_hours(accountId) |
array |
Full weekly schedule |
get_today_hours(accountId) |
array|null |
Today's hours |
is_holiday(accountId) |
bool |
Whether today is a holiday |
See Features for usage examples.
Detailed documentation in the docs/ directory:
- Installation - Full installation guide
- Features - Feature overview and Twig usage examples
No additional configuration is required at this time.
Contributions are welcome! Please create issues or pull requests. Feedback to improve the bundle is always welcome.
This bundle is released under the MIT License.
Created and maintained by manuxi.
Thanks to the Sulu team for the great CMS and the fantastic support!

