Skip to content

digfish/php-smoobu-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SMOOBU API CLIENT IN PHP

This is a implementation in PHP of the Smoobu API, an property management system. Their API allow the creation of bookings, updating it, list and create the guests that made the bookings, send messages to the clients. Their complete api is described here.

Install

The package is hosted on packagist. To install run:

composer install digfish/php-smoobu-cli

Environment variables

The variable SMOOBU_TEST_API_KEY should hold the value of your API key. You can set this via a .env file or your own code using putenv or $_ENV['SMOOBU_TEST_API_KEY']. If the application does not find the .env file it assumes that you are running on production. When in production, set in your code the variables SMOOBU_API_KEY and SMOOBU_USER_ID.

What is implemented

Method API
List Guests GET /guests
Get Guest GET /guests/:id
Avaiability GET /booking/checkApartmentAvailability
List Bookings GET /reservations
Create Booking POST /reservations
Update Booking PUT /reservations/:id
Cancel Booking DELETE /reservations/:id
List Apartments GET /apartments
Get Apartment GET /apartments/:id

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages