PHPackages                             juancamacho/php-sms - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. juancamacho/php-sms

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

juancamacho/php-sms
===================

PHP library for interacting with SMS functionality using Gammu

30PHP

Since Jul 13Pushed 2y ago1 watchersCompare

[ Source](https://github.com/kuasarx/php-sms)[ Packagist](https://packagist.org/packages/juancamacho/php-sms)[ RSS](/packages/juancamacho-php-sms/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

SMS Library
===========

[](#sms-library)

This is a PHP library for interacting with SMS functionality using [Gammu](https://github.com/gammu/gammu/tree/master).

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

[](#table-of-contents)

- [Installation](#installation)
- [Usage](#usage)
- [Features](#features)
- [Contributing](#contributing)

Installation
------------

[](#installation)

### Requirements

[](#requirements)

- Runs on PHP 5.6 or above
- Recomended PHP 7 or above
- [Gammu](https://github.com/gammu/gammu/tree/master) installed and configured

1. Clone the repository:

    ```
    git clone https://github.com/your-username/sms-library.git
    ```
2. Install the library dependencies using Composer:

    ```
    composer install
    ```

Usage
-----

[](#usage)

### Initialize the SMS object

[](#initialize-the-sms-object)

```
use SMS\SMS;

$sms = new SMS('/path/to/gammu', '/path/to/config', 'section_name');
```

### Send an SMS

[](#send-an-sms)

```
$number = '+1234567890';
$message = 'Hello, World!';

$response = '';
$sms->send($number, $message, $response);

if ($response) {
    echo "SMS sent successfully!\n";
} else {
    echo "Failed to send SMS.\n";
}
```

### Delete an SMS

[](#delete-an-sms)

```
$folder = 'inbox';
$start = 1;
$stop = 10;

$response = '';
$sms->delete($folder, $start, $stop, $response);

if ($response) {
    echo "SMS deleted successfully!\n";
} else {
    echo "Failed to delete SMS.\n";
}
```

### Get SMS Messages

[](#get-sms-messages)

```
$messages = $sms->getMessages();

// Process and display the messages
foreach ($messages as $folder => $messageList) {
    foreach ($messageList as $messageId => $message) {
        // Process individual message data
    }
}
```

### Get Phonebook Contacts

[](#get-phonebook-contacts)

```
$contacts = $sms->getPhoneBook();

// Process and display the contacts
foreach ($contacts as $index => $contact) {
    // Process individual contact data
}
```

Features
--------

[](#features)

- Send SMS messages
- Delete SMS messages
- Retrieve SMS messages
- Access phonebook contacts

Contributing
------------

[](#contributing)

Contributions are welcome! Here's how you can contribute:

1. Fork the repository.
2. Create a new branch.
3. Make your changes.
4. Test your changes.
5. Submit a pull request.

###  Health Score

14

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity22

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/34275535?v=4)[Juan antonio Camacho](/maintainers/kuasarx)[@kuasarx](https://github.com/kuasarx)

---

Top Contributors

[![kuasarx](https://avatars.githubusercontent.com/u/34275535?v=4)](https://github.com/kuasarx "kuasarx (8 commits)")

### Embed Badge

![Health badge](/badges/juancamacho-php-sms/health.svg)

```
[![Health](https://phpackages.com/badges/juancamacho-php-sms/health.svg)](https://phpackages.com/packages/juancamacho-php-sms)
```

###  Alternatives

[symbiote/silverstripe-addressable

SilverStripe addressable and geocoding module

2892.1k7](/packages/symbiote-silverstripe-addressable)[liopic/korean-romanizer

Library to romanize Korean in UTF-8 format

19169.9k](/packages/liopic-korean-romanizer)[eadesignro/romcity

A module that adds checkout city field to checkout quote shipping address

4015.6k1](/packages/eadesignro-romcity)[johnitvn/yii2-settings

Yii2 settings with database module with GUI manager supported

215.8k](/packages/johnitvn-yii2-settings)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
