The Booking Server is implemented using PHP and Apache. To properly route
the requests, it makes use of the
.htaccess file, so make sure that
AllowOverride is enabled for the directory.
You must set up a SSL certificate, and have all requests served over HTTPS.
If your server does not already have an SSL certificate setup, you can
review the
Apache SSL/TLS documentation.
The PHP implementation does not rely upon protocol buffer libraries, but
instead, relies on simple JSON serialization methods.
To download the project, execute the following command:
The entire code base consists of only three files:
.htaccess instructs apache to route all of the /v3/ requests through
bookingserver.php
bookingserver.php handles the request logic, including authentication
apiv3methods.php has the methods implementing API v3 interface
After you download the files, you should place them in a servable directory.
Note that whichever directory you put them in will become the parent to the
/v3/ directory, which you do not need to explicitly create.
Testing your Booking Server
You may download and run the
booking test utility. To install it, follow the provided installation
instructions in its README page.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-20 UTC."],[[["\u003cp\u003eThis is a PHP-based reference implementation of the API v3 Booking Server, requiring Apache and PHP for setup.\u003c/p\u003e\n"],["\u003cp\u003eThe server utilizes JSON serialization and an .htaccess file for routing, demanding HTTPS with an SSL certificate for security.\u003c/p\u003e\n"],["\u003cp\u003eDownload the project using \u003ccode\u003egit clone https://maps-booking.googlesource.com/php-maps-booking-rest-server-v3-skeleton\u003c/code\u003e and place the files in a servable directory.\u003c/p\u003e\n"],["\u003cp\u003eThe core logic resides in three files: .htaccess for routing, bookingserver.php for request handling and authentication, and apiv3methods.php for API v3 implementation.\u003c/p\u003e\n"],["\u003cp\u003eTest the server using the booking test utility, downloadable from \u003ccode\u003ehttps://maps-booking.googlesource.com/maps-booking-v3/\u003c/code\u003e.\u003c/p\u003e\n"]]],["This PHP-based reference implementation of the API v3 Booking Server requires Apache and PHP. It uses `.htaccess` for request routing, necessitating `AllowOverride` and HTTPS via an SSL certificate. The implementation utilizes JSON instead of protocol buffers. The codebase includes `.htaccess`, `bookingserver.php` (request logic), and `apiv3methods.php` (API v3 methods). Download via `git clone`, place files in a servable directory, and then use a booking test utility for testing.\n"],null,["This is a reference implementation of\n[API v3 Booking Server](/actions-center/verticals/local-services/e2e/integration-steps/implement-booking-server) based on PHP\n\nPrerequisites\n\nRequires an installation of\n\n- [Apache](https://httpd.apache.org/)\n- [PHP](https://secure.php.net)\n\nGetting Started\n\nThe Booking Server is implemented using PHP and Apache. To properly route\nthe requests, it makes use of the\n[.htaccess file](https://httpd.apache.org/docs/current/howto/htaccess.html), so make sure that\n[AllowOverride](https://httpd.apache.org/docs/current/mod/core.html#allowoverride) is enabled for the directory.\n\nYou must set up a SSL certificate, and have all requests served over HTTPS.\nIf your server does not already have an SSL certificate setup, you can\nreview the\n[Apache SSL/TLS documentation](https://httpd.apache.org/docs/2.4/ssl/ssl_howto.html).\n\nThe PHP implementation does not rely upon protocol buffer libraries, but\ninstead, relies on simple JSON serialization methods.\n\nTo download the project, execute the following command: \n\n```php\ngit clone https://maps-booking.googlesource.com/php-maps-booking-rest-server-v3-skeleton\n```\n\nThe entire code base consists of only three files:\n\n- .htaccess instructs apache to route all of the /v3/ requests through bookingserver.php\n- bookingserver.php handles the request logic, including authentication\n- apiv3methods.php has the methods implementing API v3 interface\n\nAfter you download the files, you should place them in a servable directory.\nNote that whichever directory you put them in will become the parent to the\n/v3/ directory, which you do not need to explicitly create.\n\nTesting your Booking Server You may download and run the [booking test utility](https://maps-booking.googlesource.com/maps-booking-v3/). To install it, follow the provided installation instructions in its README page.\n\n\u003cbr /\u003e"]]