A Sulu bundle to extend the account entity with company data, business hours, public holidays and company holidays.
English | 🇩🇪 Deutsch
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 admin routes to config/routes/routes_admin.yaml:
SuluExtendedAccountBundle:
resource: '@SuluExtendedAccountBundle/Resources/config/routes_admin.yaml'Update the database schema:
php bin/console doctrine:schema:update --forceFor detailed instructions see the Installation Guide.
This bundle requires the SuluAdminExtrasBundle for the business_hours, public_holidays and holiday_dates content types.
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.
There is no configuration required at this time.
Please feel comfortable submitting issues or pull requests. Feedback to improve the bundle is always welcome.
This bundle is released under the MIT License.

