madforwebs / booking-bundle
This bundle provides a bookingbundle for symfony2
Installs: 11
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- symfony/framework-bundle: ~2.3|~3.0
This package is auto-updated.
Last update: 2025-03-29 00:41:14 UTC
README
The BookingBundle
means easy-to-implement and feature-rich calendar in your Symfony application!
Installation
Download the Bundle
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
$ composer require madforwebs/calendar-bundle
This command requires you to have Composer installed globally, as explained
in the installation chapter
of the Composer documentation.
Enable the Bundle
Then, enable the bundle by adding the following line in the app/AppKernel.php
file of your project:
// app/AppKernel.php // ... class AppKernel extends Kernel { public function registerBundles() { $bundles = array( // ... new MadForWebs\BookingBundle\BookingBundle(), ); // ... } // ... }
Import service calendar to app
You must define import service from @CalendarBundle like this in your config.yml
imports: ... - { resource: "@CalendarBundle/Resources/config/services.yml" } ...
Import calendar festive days
An example use service to import festive days
/** @var CalendarHandler $calendarHandler */ $calendarHandler = $this->get('mad_for_webs_calendar.handler'); $calendarHandler->createDaysFromCalendar();
Extend class day calendar
You can extend class
use MadForWebs\CalendarBundle\Entity\Day as BaseDay; /** * @ORM\Entity * @ORM\Table(name="mfw_day") */ class Day extends BaseDay { ... }