You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The [Checkfront Booking API](http://www.checkfront.com/developers/api/) allows you
5
-
to build integrations and custom applications that interact with a remote Checkfront account.
6
+
The [Checkfront Booking API](http://www.checkfront.com/developers/api/) allows you to build integrations and custom applications that interact with a remote Checkfront account.
6
7
7
-
This repository contains the open source PHP SDK that allows you to utilize the
8
-
above on your website. Except as otherwise noted, the Checkfront PHP SDK
9
-
is licensed under the Apache Licence, Version 2.0
8
+
This repository contains the open source PHP SDK and various example scripts. Except as otherwise noted, the Checkfront PHP SDK is licensed under the Apache Licence, Version 2.0
10
9
(http://www.apache.org/licenses/LICENSE-2.0.html)
11
10
12
-
Updates
13
-
-------
14
-
15
-
* The 'Cart' example has been given a few quick fixes for v3 API support, using token pair auth.
16
-
* The CheckfrontAPI library now supports connecting to the v3 API, as well as features like token pair authentication
17
-
* New/updated examples are in the works.
18
-
* See our v3 API documentation for more information.
19
11
20
12
21
-
Features
22
-
--------
13
+
## Features
14
+
---
23
15
24
16
The Checkfront API SDK provides the following functionality:
25
17
@@ -28,49 +20,126 @@ The Checkfront API SDK provides the following functionality:
28
20
* Token pair authorization.
29
21
* Session handing.
30
22
* Access to Checkfront Objects via GET, POST, PUT and DELETE request.
23
+
* Notifications via API Hook
24
+
* Installation via PHP Composer
25
+
26
+
27
+
## Installation & Usage
28
+
---
29
+
30
+
This repo is setup to extend off of the library created by Checkfront. To update this library, a Composer.json file has been created.
31
31
32
-
Usage
33
-
-----
32
+
If you are not using [Composer](http://getcomposer.org), you should be. It's an excellent way to manage dependencies in your PHP application.
34
33
35
-
The examples are a good place to start. The minimal you'll need to
36
-
have is:
34
+
## Quick Start
35
+
36
+
Let's install Checkfront-PHP-DK via the following few commands:
Now the needed code should be available within your project. At the top of your PHP script require the autoloader, if you are using a MVC such as CodeIgnitor or Laravel review their autoload guides. Obtain API credintials [https://{your-company}.checkfront.com/manage/developer/](https://{your-company}.checkfront.com/manage/developer/)
47
+
48
+
```bash
49
+
require 'vendor/autoload.php';
50
+
```
51
+
52
+
> The repo example files are a good place to start.
53
+
54
+
```shell
55
+
PHP-SDK # → Root of Service
56
+
└── examples/
57
+
└── cart
58
+
├── Cart.php # → Main wrapper class, ADD API KEY
59
+
├── create.php # → Process $_POST request, add to cart session
60
+
├── Form.php # → Various PHP functions
61
+
├── index.php # → Default view, list avaiable inventory
Send reminders to guests as they arrive with details and directions. Send a thank you message when they jet home.
120
+
121
+
## Overview
122
+
Traveling to new areas requires planning for the unexpected and help from trusted travel partners. Have tips and maps sent to your guests a day before they arrive via email or text message.
123
+
124
+
There might be a need to send out more targeted emails with your reservations and this can be done. By using the event notification service from Checkfront a notification can be sent to a server with information about the reservation. Using Notification Service a custom template can be used to inform guests.
125
+
126
+
An additional example. Let’s say you have 5 properties and they spread around the city. The guest booked a reservation at 123 ABC Street and after booking a rental car they are on their way. They indicated their approximate arrival time. You could have a text message or email informing the guest of arrival instructions as they indicated their check-in time via the booking.
127
+
128
+
129
+
## Usage
130
+
Move the following example file `notifications-example.php` to a place of your choosing and include update the path(s) to the class files needed to process this script.
131
+
132
+
133
+
134
+
### Notification Service Breakdown
135
+
136
+
```shell
137
+
PHP-SDK # → Root of Service
138
+
└── scripts/
139
+
└── notifications
140
+
├── includes
141
+
│ ├── db.class.php # → DB Interface Class
142
+
│ └── notifications.class.php # → Parse of incoming data
143
+
├── notifications-example.php # → Processing Example file
0 commit comments