PHPackages                             bahricanli/corvass - 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. bahricanli/corvass

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

bahricanli/corvass
==================

Sends SMS using Corvass API

1.1.0(3y ago)0271MITPHPPHP &gt;=7

Since Apr 21Pushed 3y agoCompare

[ Source](https://github.com/bahricanli/corvass)[ Packagist](https://packagist.org/packages/bahricanli/corvass)[ Docs](https://github.com/bahricanli/corvass)[ RSS](/packages/bahricanli-corvass/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (6)Versions (3)Used By (0)

Corvass Notification Channel For Laravel 5.3
============================================

[](#corvass-notification-channel-for-laravel-53)

[![Latest Version on Packagist](https://camo.githubusercontent.com/6744ae451a65700ba28126f836ec168891f13794e98781960796f9cb2541ce8e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f626168726963616e6c692f636f72766173732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bahricanli/corvass)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/2df01191281ec49b05a575a9771b617ab0f7d2a033ce8ddfe68320a83cefa4d6/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f626168726963616e6c692f636f72766173732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/bahricanli/corvass)[![StyleCI](https://camo.githubusercontent.com/004449f174d6b465107722501a64b016bf344acd1375755c8783abb2970dd179/68747470733a2f2f7374796c6563692e696f2f7265706f732f37343330343434302f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/74304440)[![SensioLabsInsight](https://camo.githubusercontent.com/bef168221ab5500f46f92c310be26ff5d9b6630c440da2766cacc59ea3024983/68747470733a2f2f696d672e736869656c64732e696f2f73656e73696f6c6162732f692f63653566313131662d316265342d343834382d613837642d3762323537306431353364342e7376673f7374796c653d666c61742d737175617265)](https://insight.sensiolabs.com/projects/ce5f111f-1be4-4848-a87d-7b2570d153d4)[![Quality Score](https://camo.githubusercontent.com/5b3e832d89b9a95189e9dfad624899b36212b2bddf92ee7dfa428d790b3081ac/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f626168726963616e6c692f636f72766173732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/bahricanli/corvass)[![Code Coverage](https://camo.githubusercontent.com/3c2baba60d60f002db92cb6f325a3d656c7c051d9632d25f782e9d197123d5ac/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f626168726963616e6c692f636f72766173732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/bahricanli/corvass/?branch=master)[![Total Downloads](https://camo.githubusercontent.com/52650ecf5a34b0b1ed1a743fe56a40241b09d8083ab9304e3f30664724298771/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f626168726963616e6c692f636f72766173732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bahricanli/corvass)

This package makes it easy to send notifications using [Corvass](http://www.corvass.com) with Laravel 5.3.

Contents
--------

[](#contents)

- [Installation](#installation)
    - [Setting up the Corvass service](#setting-up-the-corvass-service)
- [Usage](#usage)
    - [Available methods](#available-methods)
    - [Available events](#available-events)
- [Changelog](#changelog)
- [Testing](#testing)
- [Security](#security)
- [Contributing](#contributing)
- [Credits](#credits)
- [License](#license)

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

[](#installation)

You can install this package via composer:

```
composer require bahricanli/corvass
```

Next add the service provider to your `config/app.php`:

```
/*
 * Package Service Providers...
 */

NotificationChannels\Corvass\CorvassServiceProvider::class,
```

Register the Corvass alias to your application. This registration is not optional because the channel itself uses this very alias.

```
'Corvass' => NotificationChannels\Corvass\Corvass::class,
```

### Setting up the Corvass service

[](#setting-up-the-corvass-service)

Add your desired client, username, password, originator (outbox name, sender name) and request timeout configuration to your `config/services.php` file:

```
...
    'Corvass' => [
        'client'     => 'http', // or xml
        'http'       => [
            'endpoint' => 'https://service.jetsms.com.tr/SMS-Web/HttpSmsSend',
        ],
        'xml'        => [
            'endpoint' => 'www.biotekno.biz:8080/SMS-Web/xmlsms',
        ],
        'username'   => '',
        'password'   => '',
        'originator' => "", // Sender name.
        'timeout'    => 60,
    ],
...
```

Usage
-----

[](#usage)

Now you can use the channel in your via() method inside the notification:

```
use NotificationChannels\Corvass\CorvassChannel;
use NotificationChannels\Corvass\CorvassMessage;

class ResetPasswordWasRequested extends Notification
{
    /**
     * Get the notification's delivery channels.
     *
     * @param  mixed  $notifiable
     * @return array
     */
    public function via($notifiable)
    {
        return [CorvassChannel::class];
    }

    /**
     * Get the Corvass representation of the notification.
     *
     * @param  mixed  $notifiable
     * @return string|\NotificationChannels\Corvass\CorvassMessage
     */
    public function toCorvass($notifiable) {
        return "Test notification";
        // Or
        return new ShortMessage($notifiable->phone_number, 'Test notification');
    }
}
```

Don't forget to place the dedicated method for Corvass inside your notifiables. (e.g. User)

```
class User extends Authenticatable
{
    use Notifiable;

    public function routeNotificationForCorvass()
    {
        return "905123456789";
    }
}
```

### Available methods

[](#available-methods)

Corvass can also be used directly to send short messages.

Examples:

```
Corvass::sendShortMessage($to, $message);
Corvass::sendShortMessages([[
    'recipient' => $to,
    'message'   => $message,
], [
    'recipient' => $anotherTo,
    'message'   => $anotherMessage,
]]);
```

see: [corvass-php](https://github.com/erdemkeren/corvass-php) documentation for more information.

### Available events

[](#available-events)

Corvass Notification channel comes with handy events which provides the required information about the SMS messages.

1. **Message Was Sent** (`NotificationChannels\Corvass\Events\MessageWasSent`)
2. **Messages Were Sent** (`NotificationChannels\Corvass\Events\MessageWasSent`)
3. **Sending Message** (`NotificationChannels\Corvass\Events\SendingMessage`)
4. **Sending Messages** (`NotificationChannels\Corvass\Events\SendingMessages`)

Example:

```
namespace App\Listeners;

use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use NotificationChannels\Corvass\Events\MessageWasSent;

class SentMessageHandler
{
    /**
     * Handle the event.
     *
     * @param  MessageWasSent  $event
     * @return void
     */
    public function handle(MessageWasSent $event)
    {
        $response = $event->response;
        $message = $event->message;
    }
}
```

### Notes

[](#notes)

$response-&gt;groupId() will throw BadMethodCallException if the client is set to 'http'. $response-&gt;messageReportIdentifiers() will throw BadMethodCallException if the client is set to 'xml'.

change client configuration with caution.

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Bahri Meriç Canlı](https://github.com/bahricanli)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 67.6% 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

Every ~95 days

Total

2

Last Release

1387d ago

PHP version history (2 changes)1.0.0PHP &gt;=5.6.4

1.1.0PHP &gt;=7

### Community

Maintainers

![](https://www.gravatar.com/avatar/4894f69d95bdf9814c8c0db5876852c4381ccaba0a2d98a224ea1269123217f8?d=identicon)[bmericc](/maintainers/bmericc)

---

Top Contributors

[![bmericc](https://avatars.githubusercontent.com/u/16552?v=4)](https://github.com/bmericc "bmericc (50 commits)")[![erdemkeren](https://avatars.githubusercontent.com/u/1636960?v=4)](https://github.com/erdemkeren "erdemkeren (21 commits)")[![mpociot](https://avatars.githubusercontent.com/u/804684?v=4)](https://github.com/mpociot "mpociot (2 commits)")[![freekmurze](https://avatars.githubusercontent.com/u/483853?v=4)](https://github.com/freekmurze "freekmurze (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bahricanli-corvass/health.svg)

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

###  Alternatives

[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

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

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[laravel-notification-channels/pusher-push-notifications

Pusher native Push Notifications driver.

282733.2k1](/packages/laravel-notification-channels-pusher-push-notifications)[spatie/laravel-backup-server

Backup multiple applications

17016.7k1](/packages/spatie-laravel-backup-server)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)[laravel-shift/curl-converter

A command line tool to convert curl requests to Laravel HTTP requests.

935.3k](/packages/laravel-shift-curl-converter)

PHPackages © 2026

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