PHPackages                             webservis/goyercin-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. webservis/goyercin-sms

ActiveLibrary

webservis/goyercin-sms
======================

Simple PHP Example

022PHP

Since May 16Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Sanan-84/GoyercinSMS)[ Packagist](https://packagist.org/packages/webservis/goyercin-sms)[ RSS](/packages/webservis-goyercin-sms/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

GoyercinSMS Class for PHP
=========================

[](#goyercinsms-class-for-php)

A PHP class to interact with the PostaGuvercini.com SMS API. This class allows you to send SMS messages through the PostaGuvercini service by using their HTTP API.

Features
--------

[](#features)

- Easy integration with the PostaGuvercini.com SMS API.
- Supports sending SMS messages with customizable text and recipient numbers.
- Handles API responses and provides error messages based on error codes.
- Utilizes modern PHP 8.0 features like type hinting and constructor property promotion.
- Exception handling for better error management.

Usage
-----

[](#usage)

1. **Initialize the class:**First, you need to include the GoyercinSMS.php file in your project. You can do this by copying the content of the GoyercinSMS.php file into your project or by using Composer.

    ```
    composer require webservis/goyercin-sms
    ```

    \#Basic Usage

    ```
    require_once 'vendor/autoload.php'; // Adjust this based on your project's structure

    use Webservis\GoyercinSMS;

    $user = "YOUR_USERNAME";
    $password = "YOUR_PASSWORD";
    $goyercinSMS = new GoyercinSMS($user, $password);
    ```
2. **Send an SMS:**

    ```
    $gsm = "5329999999";
    $text = "Test message";
    $result = $goyercinSMS->sendSMS($gsm, $text);

    if ((int)$result['errno'] === 0) {
        echo "Message sent successfully.";
        echo "Message ID: " . $result['message_id'] . "";
        echo "Charge: " . $result['charge'] . "";
    } else {
        $errorText = $goyercinSMS->getErrorText((int)$result['errno']);
        echo "Error sending message";
        echo "Error Code: " . $result['errno'] . "";
        echo "Description: " . $errorText . "";
    }
    ```

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

[](#installation)

1. Ensure you have PHP 8.0 or higher installed.
2. Download the `GoyercinSMS` class and include it in your project.

Requirements
------------

[](#requirements)

- PHP 8.0 or higher.
- cURL extension enabled.

License
-------

[](#license)

This project is licensed under the GNU GENERAL PUBLIC LICENSE.

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance26

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity18

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://www.gravatar.com/avatar/5d73f741878023ae55ac56d8b5a82f04d90df921618c8f603dbd76f1ec524768?d=identicon)[Sanan-84](/maintainers/Sanan-84)

---

Top Contributors

[![Sanan-84](https://avatars.githubusercontent.com/u/13895888?v=4)](https://github.com/Sanan-84 "Sanan-84 (9 commits)")

### Embed Badge

![Health badge](/badges/webservis-goyercin-sms/health.svg)

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

PHPackages © 2026

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