PHPackages                             capcom6/android-sms-gateway - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. capcom6/android-sms-gateway

ActiveLibrary[HTTP &amp; Networking](/categories/http)

capcom6/android-sms-gateway
===========================

Provides access to Android SMS Gateway API

v2.2.0(5mo ago)2814.5k↓30%10[1 PRs](https://github.com/android-sms-gateway/client-php/pulls)1Apache-2.0PHPPHP &gt;=7.4CI passing

Since Dec 8Pushed 3mo ago2 watchersCompare

[ Source](https://github.com/android-sms-gateway/client-php)[ Packagist](https://packagist.org/packages/capcom6/android-sms-gateway)[ RSS](/packages/capcom6-android-sms-gateway/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (8)Versions (13)Used By (1)

📱 SMS Gateway for Android™ PHP API Client
=========================================

[](#-sms-gateway-for-android-php-api-client)

[![License](https://camo.githubusercontent.com/7bcf61277e6797b4d04d2593a074bb89facf520ea3f9df4bed3f15c4263f02dc/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d417061636865253230322e302d626c75652e7376673f7374796c653d666f722d7468652d6261646765)](https://opensource.org/licenses/Apache-2.0)[![Latest Stable Version](https://camo.githubusercontent.com/3c217f44fdfda83b4dbe78972fb44bfc69faaa0ccf6b5a4efff74d1de055340b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636170636f6d362f616e64726f69642d736d732d676174657761792e7376673f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/capcom6/android-sms-gateway)[![PHP Version Require](https://camo.githubusercontent.com/f07aaeb270cffeb445f1036ae96ae3c2bd6720451f00e260135470d7a1aa94fd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f636170636f6d362f616e64726f69642d736d732d676174657761793f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/capcom6/android-sms-gateway)[![Total Downloads](https://camo.githubusercontent.com/82573cfc2ccb823dbe472f807286ec2e2e81a8b30f3fa8b19fafc1efb3682652/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636170636f6d362f616e64726f69642d736d732d676174657761792e7376673f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/capcom6/android-sms-gateway)

A modern PHP client for seamless integration with the [SMSGate](https://sms-gate.app) API. Send SMS messages, manage devices, and configure webhooks through your PHP applications with this intuitive library.

🔖 Table of Contents
-------------------

[](#-table-of-contents)

- [📱 SMS Gateway for Android™ PHP API Client](#-sms-gateway-for-android-php-api-client)
    - [🔖 Table of Contents](#-table-of-contents)
    - [✨ Features](#-features)
    - [⚙️ Prerequisites](#%EF%B8%8F-prerequisites)
    - [📦 Installation](#-installation)
    - [🚀 Quickstart](#-quickstart)
        - [Sending an SMS](#sending-an-sms)
        - [Managing Devices](#managing-devices)
    - [🔐 Authentication](#-authentication)
        - [Basic Authentication](#basic-authentication)
        - [JWT Authentication](#jwt-authentication)
            - [Generating a JWT Token](#generating-a-jwt-token)
            - [Using a JWT Token](#using-a-jwt-token)
            - [Revoking a JWT Token](#revoking-a-jwt-token)
    - [📚 Full API Reference](#-full-api-reference)
        - [Client Initialization](#client-initialization)
            - [Basic Authentication](#basic-authentication-1)
        - [Core Methods](#core-methods)
        - [Builder Methods](#builder-methods)
    - [🔒 Security Notes](#-security-notes)
        - [Best Practices](#best-practices)
        - [Encryption Support](#encryption-support)
    - [👥 Contributing](#-contributing)
        - [Development Setup](#development-setup)
    - [📄 License](#-license)

✨ Features
----------

[](#-features)

- **Builder Pattern**: Fluent interface for message and settings configuration
- **PSR Standards**: Compatible with any PSR-18 HTTP client
- **Comprehensive API**: Access to all SMS Gateway endpoints
- **Error Handling**: Structured exception management
- **Type Safety**: Strict typing throughout the codebase
- **Encryption Support**: End-to-end message encryption
- **Dual Authentication**: Support for both Basic and JWT authentication
- **Token Management**: Generate, use, and revoke JWT tokens with configurable scopes and TTL

⚙️ Prerequisites
----------------

[](#️-prerequisites)

- PHP 7.4+
- [Composer](https://getcomposer.org/)
- PSR-18 compatible HTTP client (e.g., [Guzzle](https://github.com/guzzle/guzzle))
- SMS Gateway for Android account

📦 Installation
--------------

[](#-installation)

```
composer require capcom6/android-sms-gateway
```

🚀 Quickstart
------------

[](#-quickstart)

### Sending an SMS

[](#sending-an-sms)

```
