PHPackages                             pswincom/pswincom-bundle - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. pswincom/pswincom-bundle

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

pswincom/pswincom-bundle
========================

PSWinCom Bundle is a minimal php port/variant of the PSWINCom ruby gem library. This library supports the minimal purpose of sending sms.

v0.1(13y ago)2161MITPHPPHP &gt;=5.3.0

Since May 15Pushed 13y ago2 watchersCompare

[ Source](https://github.com/cristobal/pswincom-bundle)[ Packagist](https://packagist.org/packages/pswincom/pswincom-bundle)[ Docs](https://github.com/cristobal/pswincom-bundle)[ RSS](/packages/pswincom-pswincom-bundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

PSWinCom Bundle
===============

[](#pswincom-bundle)

PSWinCom Bundle is a minimal php port/variant of the [PSWINCom](https://github.com/voldern/pswincomgem) ruby gem library.

This library supports the minimal purpose of sending sms.

Usage
-----

[](#usage)

A simple example

```
use PSWinCom\PSWinCom; // Load PSWinCom

// 1. Set options
$options = array();
$options['api_host'] = 'http://sms3.pswin.com/sms'; // set the host default is `http://sms.pswin.com/sms`
$options['username'] = "your_username";
$options['password'] = "your_password";
$options['sender']   = "SenderName/PhoneNumber";

// 2. Create a new instance
$pswin = new PSWinCom($options);

// 3. Send sms
$phone   = '4712345678';
$message = 'Hello World';
$pswin->sendSms($phone, $message);

```

### Other global options are:

[](#other-global-options-are)

```
`debug_mode`: If set to true message will not be sent, default value false
`country_code`: The country code to prefix phone numbers with, if the phone number is not prefixed with a country code it will be append if set. There is no default coutry code set.

```

Using with Symfony2
-------------------

[](#using-with-symfony2)

Add the following to you deps file.

```
[PSWinCom]
    git=http://github.com/cristobal/pswincom-bundle
    target=pswincom

```

And then run `php bin/vendors install --reinstall`

### Autoloading

[](#autoloading)

Append the following to your `app/autoload.php` file to make sure the `PSWinCom` namespace gets registered.

```
$loader->registerNamespaces(array(
	…
	'PSWinCom' => __DIR__.'/../vendor/pswincom/src/', // required to use the PSWinCom library
));

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4748d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e33d5fd415dbfcd21aafa9dd084422786c2a7bba8d0252f4342e87fec595b321?d=identicon)[cristobal](/maintainers/cristobal)

---

Top Contributors

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

---

Tags

smspswin

### Embed Badge

![Health badge](/badges/pswincom-pswincom-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/pswincom-pswincom-bundle/health.svg)](https://phpackages.com/packages/pswincom-pswincom-bundle)
```

###  Alternatives

[mageplaza/module-smtp

SMTP Extension for Magento 2 helps the owner of store simply install SMTP (Simple Mail Transfer Protocol) server which transmits the messages into codes or numbers

3015.9M8](/packages/mageplaza-module-smtp)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[tzsk/sms

A robust and unified SMS gateway integration package for Laravel, supporting multiple providers.

320244.3k6](/packages/tzsk-sms)[symfony/fake-sms-notifier

Fake SMS (as email or log during development) Notifier Bridge.

27754.2k1](/packages/symfony-fake-sms-notifier)[cmdotcom/text-sdk-php

PHP SDK to send messages with CM.com

23680.0k4](/packages/cmdotcom-text-sdk-php)[symfony/twilio-notifier

Symfony Twilio Notifier Bridge

131.2M2](/packages/symfony-twilio-notifier)

PHPackages © 2026

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