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

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

bskl/laravel-mp-sms
===================

The mesajpaneli.com Sms Api integration for Laravel 5.

234PHP

Since May 6Pushed 7y ago1 watchersCompare

[ Source](https://github.com/bskl/laravel-mp-sms)[ Packagist](https://packagist.org/packages/bskl/laravel-mp-sms)[ RSS](/packages/bskl-laravel-mp-sms/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Mesajpaneli.com için Laravel Notifications Channel
--------------------------------------------------

[](#mesajpanelicom-için-laravel-notifications-channel)

[![StyleCI](https://camo.githubusercontent.com/bbc0b8b43701be3e0b2d7b5055f66a04d658f00c9fab45595b84979ed2fdb6a8/68747470733a2f2f7374796c6563692e696f2f7265706f732f3132393737393235372f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/129779257)

Yükleme
-------

[](#yükleme)

mesajpaneli.com sitesinin resmi olmayan Laravel 5 Notifications paketidir.

Composer ile yüklemek için:

```
composer require bskl/laravel-mp-sms
```

Yükeleme tamamlandıktan sonra mp-sms.php dosyasını config klasörüne kopyalamak için aşağıdaki komutu çalıştırın.

```
php artisan vendor:publish --provider="Bskl\MpSms\ServiceProvider"
```

Laravel Notifications ile Kullanım
----------------------------------

[](#laravel-notifications-ile-kullanım)

```
namespace App\Notifications;

use Bskl\MpSms\Channels\MpSmsChannel;
use Bskl\MpSms\Channels\Messages\MpSmsMessage;
use Illuminate\Notifications\Notification;

class ExampleNotification extends Notification
{
    /**
     * Notification via MpSmsChannel.
     */
    public function via($notifiable)
    {
        return [MpSmsChannel::class];
    }

    /**
     * Get the mesajpaneliapi representation of the notification.
     */
    public function toMpSms($notifiable)
    {
        return (new MpSmsMessage)
                    ->content("Mesaj içeriği");
    }
}
```

Ayrıca, Notifiable modelinize routeNotificationForMpSms() fonksiyonunu eklemelisiniz.

```
namespace App;

use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;

class User extends Authenticatable
{
    use Notifiable;

    /**
     * Returns the user's phone number.
     */
    public function routeNotificationForMpSms()
    {
        return $this->phone; // Örnek: 1234567890
    }
}
```

MesajPaneli Hesabınızı Ayarlama
-------------------------------

[](#mesajpaneli-hesabınızı-ayarlama)

[https://smsvitrini.com](https://smsvitrini.com/ "https://smsvitrini.com/") adresinden aldığınız kullanıcı bilgilerinizi config/mp-sms.php dosyasına kayıt etmelisiniz. Kolaylık olmasını istiyorsanız .env dosyanıza kayıt edebilirsiniz.

```
return [
    'username' => env('MPSMS_USERNAME', 'username'),
    'password' => env('MPSMS_PASSWORD', 'password'),
    'from'     => env('MPSMS_FROM', 'from'),
];
```

Gönderici adresini config dosyasından bağımsız olarak **MpSmsMessage**'ın **from()** fonksiyonu ile değiştirebilirsiniz.

```
...

    public function toMpSms($notifiable)
    {
        return (new MpSmsMessage)
                    ->content("Mesaj içeriği")
                    ->from("Gönderici");
    }
}
```

Sms Gönderim Raporlarını Kayıt Etme
-----------------------------------

[](#sms-gönderim-raporlarını-kayıt-etme)

Sms gönderim raporlarını kayıt etmek için Laravel'in **mpsms** kanalı kullanılır. config/mp-sms.php dosyasında **logging** alanı ile sms gönderim raporlarını kayıt edebilirsiniz. **path** alanı ile kayıtların yapılacağı dosya yolunu belirtebilirsiniz. Kayıtlar Laravel kuyruk kullanılarak 2 dakika gecikmeli kayıt edilmektedir.

```
return [
    'logging' => true,

    'channels' => [
        'mpsms' => [
            'driver' => 'daily',
            'path'   => storage_path('logs/mpsms.log'),
            'level'  => 'debug',
            'days'   => 7,
        ],
    ],
];
```

Gönderim raporunu kayıt etmeyi config dosyasından bağımsız olarak **MpSmsMessage**'ın **logging()** fonksiyonu ile değiştirebilirsiniz.

```
...

    public function toMpSms($notifiable)
    {
        return (new MpSmsMessage)
                    ->content("Mesaj içeriği")
                    ->logging(false);
    }
}
```

Lisans
------

[](#lisans)

MIT

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9579731?v=4)[Barış Kartal](/maintainers/bskl)[@bskl](https://github.com/bskl)

---

Top Contributors

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

---

Tags

laravelmesajpanelinotifications

### Embed Badge

![Health badge](/badges/bskl-laravel-mp-sms/health.svg)

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

###  Alternatives

[mattketmo/email-checker

Throwaway email detection library

2752.1M5](/packages/mattketmo-email-checker)[sarfraznawaz2005/noty

Laravel package to incorporate noty flash notifications into laravel.

324.5k](/packages/sarfraznawaz2005-noty)

PHPackages © 2026

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