manuxi / sulu-extended-account-bundle
A Sulu bundle to extend the account entity with additional properties.
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:symfony-bundle
pkg:composer/manuxi/sulu-extended-account-bundle
Requires
- php: ^8.2
- doctrine/doctrine-bundle: ^2.13
- manuxi/sulu-admin-extras-bundle: ^1.4.1
- sulu/sulu: ^3.0
- symfony/config: ^6.2 | ^7.0
- symfony/dependency-injection: ^6.2 | ^7.0
- symfony/framework-bundle: ^6.2 | ^7.0
- symfony/http-foundation: ^6.2 | ^7.0
- symfony/http-kernel: ^6.2 | ^7.0
- symfony/intl: ^6.2 | ^7.0
- symfony/security-core: ^6.2 | ^7.0
- symfony/translation: ^6.2 | ^7.0
Requires (Dev)
- jackalope/jackalope-doctrine-dbal: ^1.3.4
- phpunit/phpunit: ^11.0
- symfony/browser-kit: ^6.2 | ^7.0
- symfony/console: ^6.2 | ^7.0
- symfony/phpunit-bridge: ^6.2 | ^7.0
README
A Sulu bundle to extend the account entity with company data, business hours, public holidays and company holidays.
English | 🇩🇪 Deutsch
Documentation
Quick Start
composer require manuxi/sulu-extended-account-bundle
If 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 --force
For detailed instructions see the Installation Guide.
Dependencies
This bundle requires the SuluAdminExtrasBundle for the business_hours, public_holidays and holiday_dates content types.
Twig Functions
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.
Configuration
There is no configuration required at this time.
Contributing
Please feel comfortable submitting issues or pull requests. Feedback to improve the bundle is always welcome.
License
This bundle is released under the MIT License.

