Download the PHP package moovone/timekit-php-sdk without Composer
On this page you can find all versions of the php package moovone/timekit-php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package timekit-php-sdk
Timekit.io PHP SDK
Warning: this library is in development. First release should be ready in few days.
This library is a basic PHP SDK for the timekit.io API.
This SDK doesn't fully cover the timekit.io API endpoints. Only the following endpoints are covered:
Covered end-point | Timekit.io documentation |
---|---|
POST /resources |
https://developers.timekit.io/reference#resources |
PUT /resources/{id} |
https://developers.timekit.io/reference#resources-id |
DELETE /resources/{id} |
https://developers.timekit.io/reference#delete-resource |
GET /resources/{id} |
https://developers.timekit.io/reference#resourcesid |
POST /bookings |
https://developers.timekit.io/reference#bookings |
DELETE /bookings/{id} |
https://developers.timekit.io/reference#delete-a-booking |
PUT /bookings/{id}/{state} |
https://developers.timekit.io/reference#bookingsidaction |
POST /availability |
https://developers.timekit.io/reference#query-availability-v2 |
Installation
composer require moovone/timekit-php-sdk
Usage
Models
This SDK provides models for the following availability constraints:
- allow day and time: AllowDayAndTimeAvailabilityConstraint
- block day and time: BlockDayAndTimeAvailabilityConstraint
- allow hours: AllowHoursAvailabilityConstraint
- block hours: BlockHoursAvailabilityConstraint
- allow day: AllowDayAvailabilityConstraint
- block day: BlockDayAvailabilityConstraint
- allow period: AllowPeriodAvailabilityConstraint
- block period: BlockPeriodAvailabilityConstraint
- allow weekdays: AllowWeekdaysAvailabilityConstraint
- block weekdays: BlockWeekdaysAvailabilityConstraint
- allow weekends: AllowWeekendsAvailabilityConstraint
- block weekends: BlockWeekendsAvailabilityConstraint
All those models provide a convertToPayloadEntry
method which will convert them to a timekit-api payload-compliant json.
Examples
Create a resource
Update a resource
Delete a resource
Get a resource
Create a booking
Delete a booking
Update a booking state
Get availabilities
All versions of timekit-php-sdk with dependencies
PHP Build Version
Package Version
The package moovone/timekit-php-sdk contains the following files
Loading the files please wait ....