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.
The package is hosted on packagist. To install run:
composer install digfish/php-smoobu-cli
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
.
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 |