PHPackages                             devstrefa/esemeser - 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. devstrefa/esemeser

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

devstrefa/esemeser
==================

PHP Library for sending SMS through esemeser.pl API

1.1.0(9y ago)022MITPHPPHP &gt;=5.3.2

Since Aug 15Pushed 9y ago1 watchersCompare

[ Source](https://github.com/DevStrefa/esemeser)[ Packagist](https://packagist.org/packages/devstrefa/esemeser)[ Docs](https://github.com/DevStrefa/esemeser)[ RSS](/packages/devstrefa-esemeser/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (4)Used By (0)

Esemeser 1.1.0
==============

[](#esemeser-110)

PHP Library designed to sending SMS messages through esemeser.pl API

### Before you use it!

[](#before-you-use-it)

Esemeser.pl is a Polish service for sending SMS messages, so remember that You can send messages only to Polish phone numbers those numbers must be in format: xxxxxxxxx (9 digits), other numbers probably will not work.

This library is using [file\_get\_contents](http://php.net/manual/en/function.file-get-contents.php) as default mechanism to send requests, so before You start using it, make sure you have properly configured environment. Check if your [allow\_url\_fopen](http://php.net/manual/en/filesystem.configuration.php) is set to "1". You can use [CURL](http://php.net/manual/en/book.curl.php) instead of [file\_get\_contents](http://php.net/manual/en/function.file-get-contents.php) please read below to get more information.

### How to install

[](#how-to-install)

Library is compatible with [composer](https://getcomposer.org/) so You can install it by adding:

```
"require": {
        "devstrefa/esemeser": "1.0.x-dev"
    }

```

to Your composer.json file

You can also download zip file and include all necessary files by yourself

### How to use

[](#how-to-use)

Library is designed for 2 main tasks:

**1. Sending Messages**

Below you can see example of code sending some message:

```
