Download the PHP package capcom6/android-sms-gateway without Composer
On this page you can find all versions of the php package capcom6/android-sms-gateway. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download capcom6/android-sms-gateway
More information about capcom6/android-sms-gateway
Files in capcom6/android-sms-gateway
Package android-sms-gateway
Short Description Provides access to Android SMS Gateway API
License Apache-2.0
Informations about the package android-sms-gateway
π± SMS Gateway for Androidβ’ PHP API Client
A modern PHP client for seamless integration with the SMSGate API. Send SMS messages, manage devices, and configure webhooks through your PHP applications with this intuitive library.
π Table of Contents
- π± SMS Gateway for Androidβ’ PHP API Client
- π Table of Contents
- β¨ Features
- βοΈ Prerequisites
- π¦ Installation
- π Quickstart
- Sending an SMS
- Managing Devices
- π Authentication
- Basic Authentication
- JWT Authentication
- Generating a JWT Token
- Using a JWT Token
- Revoking a JWT Token
- π Full API Reference
- Client Initialization
- Basic Authentication
- Core Methods
- Builder Methods
- π Security Notes
- Best Practices
- Encryption Support
- π₯ Contributing
- Development Setup
- π License
β¨ 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
π¦ Installation
π Quickstart
Sending an SMS
Managing Devices
π Authentication
The SMSGate client supports two authentication methods: Basic Authentication and JWT (JSON Web Token) authentication. Each method has its own use cases and benefits.
Basic Authentication
JWT Authentication
JWT authentication uses bearer tokens for authentication.
Generating a JWT Token
Using a JWT Token
Revoking a JWT Token
π Full API Reference
Client Initialization
The client supports two authentication methods: Basic Authentication and JWT Bearer Tokens.
Basic Authentication
Core Methods
| Category | Method | Description |
|---|---|---|
| Messages | SendMessage(Message $message) |
Send SMS message |
GetMessageState(string $id) |
Get message status by ID | |
RefreshInbox(InboxRefreshRequest $request) |
Refresh inbox, deliver webhooks | |
| Devices | ListDevices() |
List registered devices |
RemoveDevice(string $id) |
Remove device by ID | |
| System | HealthCheck() |
Check API health status |
GetLogs(?string $from, ?string $to) |
Retrieve system logs | |
| Settings | GetSettings() |
Get account settings |
PatchSettings(Settings $settings) |
Partially update account settings | |
ReplaceSettings(Settings $settings) |
Replace account settings | |
| Webhooks | ListWebhooks() |
List registered webhooks |
RegisterWebhook(Webhook $webhook) |
Register new webhook | |
DeleteWebhook(string $id) |
Delete webhook by ID | |
| Authentication | GenerateToken(TokenRequest $request) |
Generate a new JWT token |
RevokeToken(string $jti) |
Revoke a JWT token by ID |
Builder Methods
π Security Notes
Best Practices
-
Never store credentials in code - Use environment variables:
- Use HTTPS - Ensure all API traffic is encrypted
- Validate inputs - Sanitize phone numbers and message content
- Rotate credentials - Regularly update your API credentials
Encryption Support
π₯ Contributing
We welcome contributions! Please follow these steps:
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Development Setup
π License
This library is open-sourced software licensed under the Apache-2.0 license.
Note: Android is a trademark of Google LLC. This project is not affiliated with or endorsed by Google.
All versions of android-sms-gateway with dependencies
php-http/discovery Version ^1.17
psr/http-client-implementation Version ^1.0