PHP এর জন্য বুকিং সার্ভার কঙ্কাল
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
এটি পিএইচপি ভিত্তিক API v3 বুকিং সার্ভারের একটি রেফারেন্স বাস্তবায়ন
পূর্বশর্ত
এর একটি ইনস্টলেশন প্রয়োজন
শুরু করা
বুকিং সার্ভার পিএইচপি এবং অ্যাপাচি ব্যবহার করে প্রয়োগ করা হয়। অনুরোধগুলি সঠিকভাবে রুট করার জন্য, এটি .htaccess ফাইল ব্যবহার করে, তাই নিশ্চিত করুন যে ডিরেক্টরির জন্য AllowOverride সক্ষম করা আছে।
আপনাকে অবশ্যই একটি SSL শংসাপত্র সেট আপ করতে হবে এবং HTTPS-এর মাধ্যমে সমস্ত অনুরোধগুলি পরিবেশন করতে হবে৷ যদি আপনার সার্ভারে ইতিমধ্যে একটি SSL শংসাপত্র সেটআপ না থাকে, তাহলে আপনি Apache SSL/TLS ডকুমেন্টেশন পর্যালোচনা করতে পারেন।
পিএইচপি বাস্তবায়ন প্রোটোকল বাফার লাইব্রেরির উপর নির্ভর করে না, বরং, সাধারণ JSON সিরিয়ালাইজেশন পদ্ধতির উপর নির্ভর করে।
প্রকল্পটি ডাউনলোড করতে, নিম্নলিখিত কমান্ডটি চালান:
git clone https://maps-booking.googlesource.com/php-maps-booking-rest-server-v3-skeleton
সম্পূর্ণ কোড বেস মাত্র তিনটি ফাইল নিয়ে গঠিত:
- .htaccess বুকিংসার্ভার.php এর মাধ্যমে সমস্ত /v3/ অনুরোধ রুট করার জন্য অ্যাপাচিকে নির্দেশ দেয়
- bookingserver.php প্রমাণীকরণ সহ অনুরোধের যুক্তি পরিচালনা করে
- apiv3methods.php এ API v3 ইন্টারফেস বাস্তবায়নের পদ্ধতি রয়েছে
আপনি ফাইলগুলি ডাউনলোড করার পরে, আপনার সেগুলি একটি পরিবেশনযোগ্য ডিরেক্টরিতে স্থাপন করা উচিত। মনে রাখবেন যে আপনি যে ডিরেক্টরিতে এগুলি রাখবেন তা /v3/ ডিরেক্টরির প্যারেন্ট হয়ে যাবে, যা আপনাকে স্পষ্টভাবে তৈরি করতে হবে না।
আপনার বুকিং সার্ভার পরীক্ষা করা হচ্ছে
আপনি
বুকিং টেস্ট ইউটিলিটি ডাউনলোড এবং চালাতে পারেন। এটি ইনস্টল করতে, এর README পৃষ্ঠায় প্রদত্ত ইনস্টলেশন নির্দেশাবলী অনুসরণ করুন।
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-24 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\u003eIt utilizes a \u003ccode\u003e.htaccess\u003c/code\u003e file for request routing and necessitates an SSL certificate for secure HTTPS communication.\u003c/p\u003e\n"],["\u003cp\u003eThe implementation employs JSON serialization instead of protocol buffer libraries and can be downloaded via a provided \u003ccode\u003egit clone\u003c/code\u003e command.\u003c/p\u003e\n"],["\u003cp\u003eThe code base comprises three primary files: \u003ccode\u003e.htaccess\u003c/code\u003e, \u003ccode\u003ebookingserver.php\u003c/code\u003e, and \u003ccode\u003eapiv3methods.php\u003c/code\u003e, which handle routing, request logic, and API v3 interface methods, respectively.\u003c/p\u003e\n"],["\u003cp\u003eTesting can be conducted using the booking test utility, available for download and installation with instructions in its README.\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 with an SSL certificate. The server utilizes JSON for data serialization instead of protocol buffers. Installation involves cloning the project via `git` into a servable directory. The code consists of `.htaccess`, `bookingserver.php` for request logic and authentication, and `apiv3methods.php` for API methods implementation. A separate booking test utility is available for server testing.\n"],null,["# Booking Server Skeleton for PHP\n\nThis is a reference implementation of\n[API v3 Booking Server](/actions-center/verticals/reservations/waitlists/integration-steps/implement-booking-server) based on PHP\n\nPrerequisites\n-------------\n\nRequires an installation of\n\n- [Apache](https://httpd.apache.org/)\n- [PHP](https://secure.php.net)\n\nGetting Started\n---------------\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\n---------------------------\n\nYou 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"]]