PHPackages                             okn/laravel-ovh-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. okn/laravel-ovh-sms

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

okn/laravel-ovh-sms
===================

OVH wrapper for Laravel

1251PHP

Since May 13Pushed 5y ago1 watchersCompare

[ Source](https://github.com/0kyn/laravel-ovh-sms)[ Packagist](https://packagist.org/packages/okn/laravel-ovh-sms)[ RSS](/packages/okn-laravel-ovh-sms/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

OVH SMS (tiny) wrapper for Laravel 5+
=====================================

[](#ovh-sms-tiny-wrapper-for-laravel-5)

Introduction
------------

[](#introduction)

This package is an unofficial wrapper for OVH SMS Service intended for Laravel 5+.

This project used php-ovh api () - v2.0.1.

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

[](#installation)

1. Require package with composer

```
composer require okn/laravel-ovh-sms
```

2. **Only for Laravel version &lt; 5.5**
    Add the service provider and class alias for facade support in `config/app.php`

```
'providers' => [
	// ...
	Okn\OvhSms\OvhSmsServiceProvider::class
];

'aliases' => [
   	// ...
   	'OvhSms' => Okn\OvhSms\Facades\OvhSms::class
];
```

3. Run artisan command to install the service

```
php artisan ovhsms:install
```

This command will create a default config file `config/ovhsms.php`.

Configuration
-------------

[](#configuration)

Application keys must be defined in the `.env` file as follow:

```
OVHSMS_APP_KEY=
OVHSMS_APP_SECRET=
OVHSMS_CONSUMER_KEY=
OVHSMS_ENDPOINT=
OVHSMS_SERVICE_NAME=
```

To make this library works with your project you need to define homogeneous routes rights (all ending with a trailing slash or none). Default config add one (ex: `/sms/*/jobs` becomes `/sms/*/jobs/`), so to fit your rights you might add the following line in your `.env` file:

```
OVHSMS_TRAILING_SLASH=false
```

Usage
-----

[](#usage)

### Default use

[](#default-use)

1. Create a message

```
$sms = OvhSms::createMessage('This my sms. Can you read it ?');
```

2. Send message

```
$smsStatus = $sms->send(['+xxxxxxxxxxx']);
```

### Limit parts of sms to be sent

[](#limit-parts-of-sms-to-be-sent)

```
$sms->limitParts(1)->send(['+xxxxxxxxxxx']);
```

This will throw an exception if sms parts estimated number is greater than the limit you defined.

Exception(s)
============

[](#exceptions)

`cURL error 60: SSL certificate problem...`
cURL need an SSL certificate to communicate through **https** protocol.

Solution 1 (recommended)
------------------------

[](#solution-1-recommended)

### Install an SSL certificate on your local machine

[](#install-an-ssl-certificate-on-your-local-machine)

Assuming you are using WAMP on Windows:

- download an SSL certificate for your local server
- put it in your prefered directory (mine is `C:\Users\[MY-USERNAME]\cacert.pem`)
- edit this variable in your `php.ini` to add the path to the certificate

```
curl.cainfo = "C:\Users\[MY-USERNAME]\cacert.pem"
```

- restart your webserver

Now it should works, if it doesn't you might try the next solution.

Solution 2
----------

[](#solution-2)

### Disable SSL validation (not recommended)

[](#disable-ssl-validation-not-recommended)

In `.env` file you can add the following line:

```
OVHSMS_VERIFY_SSL=false
```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity30

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/b4d06f7712b61348cc930c5a6294b359577abfba884c0bd1dfe2984d63fc3104?d=identicon)[okn](/maintainers/okn)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/okn-laravel-ovh-sms/health.svg)

```
[![Health](https://phpackages.com/badges/okn-laravel-ovh-sms/health.svg)](https://phpackages.com/packages/okn-laravel-ovh-sms)
```

###  Alternatives

[instride/data-definitions

Data Definitions allows you to define your DataObject Imports and Exports using a nice GUI and re-run the definitions as often you like.

8117.7k](/packages/instride-data-definitions)

PHPackages © 2026

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