Skip to content

Booking component is a framework agnostic module that implements basic functionality of booking rooms.

Notifications You must be signed in to change notification settings

RetinaInc/booking-3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Booking component

Introduction

Booking component is a framework agnostic module that implements basic functionality of booking rooms.

Requirements

  • PHP >= 5.4.0 (Tested with 5.5.9)

Installation

The project requires Composer since it is used to load classes automatically.

composer install

Usage

In order to use this module you need to implement the repository interfaces that handle data. After that Vmiki\Booking\BookingHandler can be used to book rooms.

$bookingHandler = new BookingHandler(
    $myBookingRepository, $myTenantRepository, $myHouseRepository, $myRoomRepository
);
$bookingHandler->bookRoom(
    $tenantId, $roomId, new DateTime('2014-12-20'), new DateTime('2015-02-20')
);

About

Booking component is a framework agnostic module that implements basic functionality of booking rooms.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages