PHP SDK for SMS API Integration
This page provides everything you need to integrate the SMSGatewayCenter SMS API with your PHP application using our official PHP SDK. The SDK is maintained on GitHub and distributed via Packagist, allowing easy installation and updates through Composer.
Download and Install the PHP SDK
Follow the steps below to download, install, and configure the PHP SDK for seamless SMS API integration.
Step 1: Download the PHP SDK
The PHP SDK is available on Packagist and hosted on GitHub. Make sure you are logged into your GitHub account if required.
Download PHP SDK
Step 2: Install the SDK Using Composer
The recommended way to install the SDK is via Composer. If Composer is not already installed, download it fromgetcomposer.org.
Navigate to your project’s root directory and run the following command:
composer require sgcsdk/sgcapi
Composer will automatically download the SDK and its dependencies into the vendor directory.
Step 3: Configure the SDK Server Host
After installation, configure the SDK to point to the SMSGatewayCenter production server.
- Open the following file in your project:
../vendor/sgcsdk/sgcapi/src/config/common/sgc_constant.php
- Locate the server host constant:
const SERVER_HOST = "http://127.0.0.1";
- Update it to the production server URL:
const SERVER_HOST = "https://unify.smsgateway.center";
Save the file once the update is complete.
Step 4: Verify the SDK Configuration
To confirm the SDK is configured correctly, run a basic test request as described in the SDK documentation. Ensure the API responses are successful before moving to production.
Support and Troubleshooting
If you encounter any issues during installation or integration, visit our support page to raise a ticket or get help from our technical team.
We recommend completing all configuration and verification steps before sending live SMS traffic.
Testimonials
Why do Great Businesses Trust SMS Gateway Center?
We have tied up with other SMS providers also, but SMS GatewayCenter is quite good. Good Service from the team. We are very happy with the service be it accounts related or technical issue. We always get good response.
INOX Air Products
2018-02-09
We have an excellent experience with SMS Gateway Center. The services and support has been of very high standard.
I’ve been using SMSGatewayCenter’s bulk SMS and WhatsApp services since early 2022 for my small business, and the experience has been fantastic. The platform is intuitive, and the message delivery is incredibly reliable, reaching my customers without fail. The 24/7 support team is quick to assist, and the cost-effectiveness is a big plus. It’s transformed how I connect with my audience, and I highly recommend it to other entrepreneurs! (Google Revirews)
We’ve been using your bulk SMS services for a few months, and the results have been phenomenal. The open rates and customer engagement have gone through the roof. Highly recommend for any business looking to scale fast! (Google Revirews)
I’m Vedanth Gowda, leading a finance business, and I’ve been leveraging SMSGatewayCenter’s bulk SMS and WhatsApp tools —absolutely transformative! The platform’s speed and precision in delivering financial alerts to my clients are unmatched, giving me a competitive edge. Samrat’s expertise in tailoring notification workflows for market updates was a standout, and the robust security features instilled trust. The affordable pricing and proactive support team make it a no-brainer. Perfect for finance pros aiming to elevate client trust and efficiency! (Google Revirews)
Naval Bhatnagar
2025-04-12
From day one, the team at SMS GATEWAY CENTER guided us through setup, testing, and launching campaigns. Their support is A+. Whether you’re new to SMS marketing or experienced, they make it smooth. Thank you Aakash. (Google Revirews)

Unlock Real-Time Messaging – Integrate Today!
Try Our API in a Sandbox Environment Before Going Live!
Join Thousands of Developers – Try Our API Now!
Get in touchSign up