heimrichhannot / contao-resource-booking-bundle
Book and manage resource objects with this bundle for Contao Open Source CMS.
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:contao-bundle
pkg:composer/heimrichhannot/contao-resource-booking-bundle
Requires
- php: ^8.2
- ext-mbstring: *
- codefog/contao-haste: ^5.3
- contao/core-bundle: ^5.0
- doctrine/dbal: ^2.13 || ^3.0
- heimrichhannot/contao-form-type-bundle: ^0.2.10
- psr/log: ^1.0 || ^2.0 || ^3.0
- symfony/asset: ^6.0 || ^7.0
- symfony/config: ^6.0 || ^7.0
- symfony/dependency-injection: ^6.0 || ^7.0
- symfony/event-dispatcher-contracts: ^1.0 || ^2.0 || ^3.0
- symfony/filesystem: ^6.0 || ^7.0
- symfony/http-foundation: ^6.0 || ^7.0
- symfony/http-kernel: ^6.0 || ^7.0
- terminal42/notification_center: ^2.6
- twig/twig: ^3.0
Requires (Dev)
- contao/manager-plugin: ^2.0
- contao/test-case: ^4.0 || ^5.0
- heimrichhannot/contao-test-utilities-bundle: ^0.1
- php-coveralls/php-coveralls: ^2.0
- phpstan/phpstan: ^1.10
- phpstan/phpstan-symfony: ^1.2
- phpunit/phpunit: ^8.0 || ^9.0
- symfony/phpunit-bridge: ^6.0 || ^7.0
README
This bundle provides resource booking capabilities for the Contao Open-Source CMS.
Note
This bundle is in early development.
We welcome any feedback and contributions.
Installation
Install the bundle via Composer:
composer require heimrichhannot/contao-resource-booking-bundle
Requires Contao ^5.3 and PHP ^8.2.
Features
- Create and manage resources and their availability
- Book resources for specific time slots
- Create custom forms in the form generator to collect any information you need when booking resources
- Display a calendar with bookings and available resources
- Send notifications for bookings and cancellations
Developers
Building the JS Bundle
This Contao bundle uses Vite to build the JS modules. Run the following command to build the minified production assets:
npm run build
With the following command, the bundle will be built in development mode:
npm run dev
To watch for changes and rebuild the bundle automatically in development mode, run:
npm run watch
Using bundle assets in twig
This bundle provides a manifest file for configuration with the symfony/asset component.
Use huh_rb_build (for Vite-bundled assets) or huh_rb (for public bundle files) as the bundle name to reference the
assets in your twig templates.
<script type="module" src="{{ asset('assets/js/index.js', 'huh_rb_build') }}"></script>