Skip to content

Commit b26d322

Browse files
committed
Rename Nexmo to Vonage
1 parent fd106d2 commit b26d322

13 files changed

+199
-195
lines changed

.github/ISSUE_TEMPLATE/1_Bug_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ about: "Report something that's broken. Please ensure your Laravel version is st
66
<!-- DO NOT THROW THIS AWAY -->
77
<!-- Fill out the FULL versions with patch versions -->
88

9-
- Nexmo Notification Channel Version: #.#.#
9+
- Vonage Notification Channel Version: #.#.#
1010
- Laravel Version: #.#.#
1111
- PHP Version: #.#.#
1212
- Database Driver & Version:

CHANGELOG.md

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,75 @@
11
# Release Notes
22

3-
## [Unreleased](https://github.com/laravel/nexmo-notification-channel/compare/v2.5.1...master)
3+
## [Unreleased](https://github.com/laravel/vonage-notification-channel/compare/v2.5.1...master)
44

55
### Changed
6-
- Dropped support for Laravel 5.8 ([78bc3f9](https://github.com/laravel/nexmo-notification-channel/commit/78bc3f92091f7cd38cdb27de1df845d12f263f24))
7-
- Dropped support for PHP 7.1 ([858f0cb](https://github.com/laravel/nexmo-notification-channel/commit/858f0cb55c5a3bea671c10f7737926c8c8ffee2c))
6+
- Dropped support for Laravel 5.8 ([78bc3f9](https://github.com/laravel/vonage-notification-channel/commit/78bc3f92091f7cd38cdb27de1df845d12f263f24))
7+
- Dropped support for PHP 7.1 ([858f0cb](https://github.com/laravel/vonage-notification-channel/commit/858f0cb55c5a3bea671c10f7737926c8c8ffee2c))
88

99

10-
## [v2.5.1 (2020-12-22)](https://github.com/laravel/nexmo-notification-channel/compare/v2.5.0...v2.5.1)
10+
## [v2.5.1 (2020-12-22)](https://github.com/laravel/vonage-notification-channel/compare/v2.5.0...v2.5.1)
1111

1212
### Fixed
13-
- Fix callback not being applied ([#44](https://github.com/laravel/nexmo-notification-channel/pull/44))
14-
- Fix `client-ref` key ([#45](https://github.com/laravel/nexmo-notification-channel/pull/45))
13+
- Fix callback not being applied ([#44](https://github.com/laravel/vonage-notification-channel/pull/44))
14+
- Fix `client-ref` key ([#45](https://github.com/laravel/vonage-notification-channel/pull/45))
1515

1616

17-
## [v2.5.0 (2020-12-03)](https://github.com/laravel/nexmo-notification-channel/compare/v2.4.0...v2.5.0)
17+
## [v2.5.0 (2020-12-03)](https://github.com/laravel/vonage-notification-channel/compare/v2.4.0...v2.5.0)
1818

1919
### Added
20-
- PHP 8 Support ([#39](https://github.com/laravel/nexmo-notification-channel/pull/39))
21-
- Add functionality to process callbacks ([#41](https://github.com/laravel/nexmo-notification-channel/pull/41), [f124a4d](https://github.com/laravel/nexmo-notification-channel/commit/f124a4db6a7824251aa065d83389995745805bc0))
20+
- PHP 8 Support ([#39](https://github.com/laravel/vonage-notification-channel/pull/39))
21+
- Add functionality to process callbacks ([#41](https://github.com/laravel/vonage-notification-channel/pull/41), [f124a4d](https://github.com/laravel/vonage-notification-channel/commit/f124a4db6a7824251aa065d83389995745805bc0))
2222

2323

24-
## [v2.4.0 (2020-09-08)](https://github.com/laravel/nexmo-notification-channel/compare/v2.3.1...v2.4.0)
24+
## [v2.4.0 (2020-09-08)](https://github.com/laravel/vonage-notification-channel/compare/v2.3.1...v2.4.0)
2525

2626
### Added
27-
- Laravel 8 support ([#38](https://github.com/laravel/nexmo-notification-channel/pull/38))
27+
- Laravel 8 support ([#38](https://github.com/laravel/vonage-notification-channel/pull/38))
2828

2929

30-
## [v2.3.1 (2020-08-11)](https://github.com/laravel/nexmo-notification-channel/compare/v2.3.0...v2.3.1)
30+
## [v2.3.1 (2020-08-11)](https://github.com/laravel/vonage-notification-channel/compare/v2.3.0...v2.3.1)
3131

3232
### Fixed
33-
- Fix shortcode messaging with the latest version of nexmo-client ([#37](https://github.com/laravel/nexmo-notification-channel/pull/37))
33+
- Fix shortcode messaging with the latest version of nexmo-client ([#37](https://github.com/laravel/vonage-notification-channel/pull/37))
3434

3535

36-
## [v2.3.0 (2019-12-10)](https://github.com/laravel/nexmo-notification-channel/compare/v2.2.1...v2.3.0)
36+
## [v2.3.0 (2019-12-10)](https://github.com/laravel/vonage-notification-channel/compare/v2.2.1...v2.3.0)
3737

3838
### Added
39-
- Allow to override Nexmo client via NexmoMessage ([#30](https://github.com/laravel/nexmo-notification-channel/pull/30), [174323b](https://github.com/laravel/nexmo-notification-channel/commit/174323b32e0c2e8881e8dc96702be782e3e49637))
39+
- Allow to override Nexmo client via NexmoMessage ([#30](https://github.com/laravel/vonage-notification-channel/pull/30), [174323b](https://github.com/laravel/vonage-notification-channel/commit/174323b32e0c2e8881e8dc96702be782e3e49637))
4040

4141

42-
## [v2.2.1 (2019-10-29)](https://github.com/laravel/nexmo-notification-channel/compare/v2.2.0...v2.2.1)
42+
## [v2.2.1 (2019-10-29)](https://github.com/laravel/vonage-notification-channel/compare/v2.2.0...v2.2.1)
4343

4444
### Fixed
45-
- Fix shortcode implementation and test coverage ([#26](https://github.com/laravel/nexmo-notification-channel/pull/26))
45+
- Fix shortcode implementation and test coverage ([#26](https://github.com/laravel/vonage-notification-channel/pull/26))
4646

4747

48-
## [v2.2.0 (2019-10-01)](https://github.com/laravel/nexmo-notification-channel/compare/v2.1.0...v2.2.0)
48+
## [v2.2.0 (2019-10-01)](https://github.com/laravel/vonage-notification-channel/compare/v2.1.0...v2.2.0)
4949

5050
### Added
51-
- Implement shortcode support ([#24](https://github.com/laravel/nexmo-notification-channel/pull/24))
51+
- Implement shortcode support ([#24](https://github.com/laravel/vonage-notification-channel/pull/24))
5252

5353
### Changed
54-
- Upgrade to nexmo/laravel 2.0 ([#22](https://github.com/laravel/nexmo-notification-channel/pull/22))
54+
- Upgrade to nexmo/laravel 2.0 ([#22](https://github.com/laravel/vonage-notification-channel/pull/22))
5555

5656

57-
## [v2.1.0 (2019-07-30)](https://github.com/laravel/nexmo-notification-channel/compare/v2.0.0...v2.1.0)
57+
## [v2.1.0 (2019-07-30)](https://github.com/laravel/vonage-notification-channel/compare/v2.0.0...v2.1.0)
5858

5959
### Added
60-
- Support for Client Ref on the Nexmo API ([#17](https://github.com/laravel/nexmo-notification-channel/pull/17), [59436e9](https://github.com/laravel/nexmo-notification-channel/commit/59436e9260a91669a4cde12aeb2ea7026e76181c))
60+
- Support for Client Ref on the Nexmo API ([#17](https://github.com/laravel/vonage-notification-channel/pull/17), [59436e9](https://github.com/laravel/vonage-notification-channel/commit/59436e9260a91669a4cde12aeb2ea7026e76181c))
6161

6262
### Changed
63-
- Updated version constraints for Laravel 6 ([eeb50d9](https://github.com/laravel/nexmo-notification-channel/commit/eeb50d991aa0442578c1c6f3c66920d32853692c))
63+
- Updated version constraints for Laravel 6 ([eeb50d9](https://github.com/laravel/vonage-notification-channel/commit/eeb50d991aa0442578c1c6f3c66920d32853692c))
6464

6565

66-
## [v2.0.0 (2019-02-26)](https://github.com/laravel/nexmo-notification-channel/compare/v1.0.1...v2.0.0)
66+
## [v2.0.0 (2019-02-26)](https://github.com/laravel/vonage-notification-channel/compare/v1.0.1...v2.0.0)
6767

6868
### Added
69-
- Added support for Laravel 5.8 ([9b9d340](https://github.com/laravel/nexmo-notification-channel/commit/9b9d34093654501faaf975565ab290527fbdd925))
69+
- Added support for Laravel 5.8 ([9b9d340](https://github.com/laravel/vonage-notification-channel/commit/9b9d34093654501faaf975565ab290527fbdd925))
7070

7171
### Changed
72-
- Use `Facade::resolved()` before extending channel ([#4](https://github.com/laravel/nexmo-notification-channel/pull/4))
72+
- Use `Facade::resolved()` before extending channel ([#4](https://github.com/laravel/vonage-notification-channel/pull/4))
7373

7474
### Removed
75-
- Dropped support for Laravel 5.7 ([9b9d340](https://github.com/laravel/nexmo-notification-channel/commit/9b9d34093654501faaf975565ab290527fbdd925))
75+
- Dropped support for Laravel 5.7 ([9b9d340](https://github.com/laravel/vonage-notification-channel/commit/9b9d34093654501faaf975565ab290527fbdd925))

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
# Laravel Nexmo Notification Channel
1+
# Laravel Vonage Notification Channel
22

3-
<a href="https://github.com/laravel/nexmo-notification-channel/actions"><img src="https://github.com/laravel/nexmo-notification-channel/workflows/tests/badge.svg" alt="Build Status"></a>
4-
<a href="https://packagist.org/packages/laravel/nexmo-notification-channel"><img src="https://img.shields.io/packagist/dt/laravel/nexmo-notification-channel" alt="Total Downloads"></a>
5-
<a href="https://packagist.org/packages/laravel/nexmo-notification-channel"><img src="https://img.shields.io/packagist/v/laravel/nexmo-notification-channel" alt="Latest Stable Version"></a>
6-
<a href="https://packagist.org/packages/laravel/nexmo-notification-channel"><img src="https://img.shields.io/packagist/l/laravel/nexmo-notification-channel" alt="License"></a>
3+
<a href="https://github.com/laravel/vonage-notification-channel/actions"><img src="https://github.com/laravel/vonage-notification-channel/workflows/tests/badge.svg" alt="Build Status"></a>
4+
<a href="https://packagist.org/packages/laravel/vonage-notification-channel"><img src="https://img.shields.io/packagist/dt/laravel/vonage-notification-channel" alt="Total Downloads"></a>
5+
<a href="https://packagist.org/packages/laravel/vonage-notification-channel"><img src="https://img.shields.io/packagist/v/laravel/vonage-notification-channel" alt="Latest Stable Version"></a>
6+
<a href="https://packagist.org/packages/laravel/vonage-notification-channel"><img src="https://img.shields.io/packagist/l/laravel/vonage-notification-channel" alt="License"></a>
77

88
## Official Documentation
99

10-
Documentation for Laravel Nexmo Notification Channel can be found on the [Laravel website](https://laravel.com/docs/notifications#sms-notifications).
10+
Documentation for Laravel Vonage Notification Channel can be found on the [Laravel website](https://laravel.com/docs/notifications#sms-notifications).
1111

1212
## Contributing
1313

14-
Thank you for considering contributing to Nexmo Notification Channel! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions).
14+
Thank you for considering contributing to Vonage Notification Channel! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions).
1515

1616
## Code of Conduct
1717

1818
In order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct).
1919

2020
## Security Vulnerabilities
2121

22-
Please review [our security policy](https://github.com/laravel/nexmo-notification-channel/security/policy) on how to report security vulnerabilities.
22+
Please review [our security policy](https://github.com/laravel/vonage-notification-channel/security/policy) on how to report security vulnerabilities.
2323

2424
## License
2525

26-
Laravel Nexmo Notification Channel is open-sourced software licensed under the [MIT license](LICENSE.md).
26+
Laravel Vonage Notification Channel is open-sourced software licensed under the [MIT license](LICENSE.md).

composer.json

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "laravel/nexmo-notification-channel",
3-
"description": "Nexmo Notification Channel for laravel.",
4-
"keywords": ["laravel", "notifications", "nexmo"],
2+
"name": "laravel/vonage-notification-channel",
3+
"description": "Vonage Notification Channel for laravel.",
4+
"keywords": ["laravel", "notifications", "vonage", "nexmo"],
55
"license": "MIT",
66
"authors": [
77
{
@@ -12,9 +12,10 @@
1212
"require": {
1313
"php": "^8.0",
1414
"illuminate/notifications": "^8.0",
15-
"nexmo/laravel": "^2.4"
15+
"vonage/client-core": "^2.10"
1616
},
1717
"require-dev": {
18+
"guzzlehttp/guzzle": "^7.2",
1819
"mockery/mockery": "^1.0",
1920
"phpunit/phpunit": "^9.3"
2021
},
@@ -29,15 +30,18 @@
2930
}
3031
},
3132
"config": {
32-
"sort-packages": true
33+
"sort-packages": true,
34+
"allow-plugins": {
35+
"composer/package-versions-deprecated": true
36+
}
3337
},
3438
"extra": {
3539
"branch-alias": {
3640
"dev-master": "3.x-dev"
3741
},
3842
"laravel": {
3943
"providers": [
40-
"Illuminate\\Notifications\\NexmoChannelServiceProvider"
44+
"Illuminate\\Notifications\\VonageChannelServiceProvider"
4145
]
4246
}
4347
},

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
verbose="true"
1515
>
1616
<testsuites>
17-
<testsuite name="Nexmo Channel Test Suite">
17+
<testsuite name="Package Test Suite">
1818
<directory suffix="Test.php">./tests</directory>
1919
</testsuite>
2020
</testsuites>

src/Channels/NexmoShortcodeChannel.php renamed to src/Channels/VonageShortcodeChannel.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,26 @@
33
namespace Illuminate\Notifications\Channels;
44

55
use Illuminate\Notifications\Notification;
6-
use Nexmo\Message\Client as NexmoClient;
6+
use Vonage\Message\Client as VonageClient;
77

8-
class NexmoShortcodeChannel
8+
class VonageShortcodeChannel
99
{
1010
/**
11-
* The Nexmo message client instance.
11+
* The Vonage message client instance.
1212
*
13-
* @var \Nexmo\Message\Client
13+
* @var \Vonage\Message\Client
1414
*/
15-
protected $nexmo;
15+
protected $Vonage;
1616

1717
/**
1818
* Create a new channel instance.
1919
*
20-
* @param \Nexmo\Message\Client $nexmo
20+
* @param \Vonage\Message\Client $Vonage
2121
* @return void
2222
*/
23-
public function __construct(NexmoClient $nexmo)
23+
public function __construct(VonageClient $Vonage)
2424
{
25-
$this->nexmo = $nexmo;
25+
$this->Vonage = $Vonage;
2626
}
2727

2828
/**
@@ -40,6 +40,6 @@ public function send($notifiable, Notification $notification)
4040

4141
$shortcode = array_merge(['to' => $to], $notification->toShortcode($notifiable));
4242

43-
$this->nexmo->sendShortcode($shortcode);
43+
$this->Vonage->sendShortcode($shortcode);
4444
}
4545
}

src/Channels/NexmoSmsChannel.php renamed to src/Channels/VonageSmsChannel.php

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22

33
namespace Illuminate\Notifications\Channels;
44

5-
use Illuminate\Notifications\Messages\NexmoMessage;
5+
use Illuminate\Notifications\Messages\VonageMessage;
66
use Illuminate\Notifications\Notification;
7-
use Nexmo\Client as NexmoClient;
7+
use Vonage\Client as VonageClient;
88

9-
class NexmoSmsChannel
9+
class VonageSmsChannel
1010
{
1111
/**
12-
* The Nexmo client instance.
12+
* The Vonage client instance.
1313
*
14-
* @var \Nexmo\Client
14+
* @var \Vonage\Client
1515
*/
16-
protected $nexmo;
16+
protected $vonage;
1717

1818
/**
1919
* The phone number notifications should be sent from.
@@ -23,35 +23,35 @@ class NexmoSmsChannel
2323
protected $from;
2424

2525
/**
26-
* Create a new Nexmo channel instance.
26+
* Create a new Vonage channel instance.
2727
*
28-
* @param \Nexmo\Client $nexmo
28+
* @param \Vonage\Client $vonage
2929
* @param string $from
3030
* @return void
3131
*/
32-
public function __construct(NexmoClient $nexmo, $from)
32+
public function __construct(VonageClient $vonage, $from)
3333
{
3434
$this->from = $from;
35-
$this->nexmo = $nexmo;
35+
$this->vonage = $vonage;
3636
}
3737

3838
/**
3939
* Send the given notification.
4040
*
4141
* @param mixed $notifiable
4242
* @param \Illuminate\Notifications\Notification $notification
43-
* @return \Nexmo\Message\Message
43+
* @return \Vonage\Message\Message
4444
*/
4545
public function send($notifiable, Notification $notification)
4646
{
47-
if (! $to = $notifiable->routeNotificationFor('nexmo', $notification)) {
47+
if (! $to = $notifiable->routeNotificationFor('vonage', $notification)) {
4848
return;
4949
}
5050

51-
$message = $notification->toNexmo($notifiable);
51+
$message = $notification->toVonage($notifiable);
5252

5353
if (is_string($message)) {
54-
$message = new NexmoMessage($message);
54+
$message = new VonageMessage($message);
5555
}
5656

5757
$payload = [
@@ -66,6 +66,6 @@ public function send($notifiable, Notification $notification)
6666
$payload['callback'] = $message->statusCallback;
6767
}
6868

69-
return ($message->client ?? $this->nexmo)->message()->send($payload);
69+
return ($message->client ?? $this->vonage)->message()->send($payload);
7070
}
7171
}

src/Messages/NexmoMessage.php renamed to src/Messages/VonageMessage.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Illuminate\Notifications\Messages;
44

5-
class NexmoMessage
5+
class VonageMessage
66
{
77
/**
88
* The message content.
@@ -26,9 +26,9 @@ class NexmoMessage
2626
public $type = 'text';
2727

2828
/**
29-
* The custom Nexmo client instance.
29+
* The custom Vonage client instance.
3030
*
31-
* @var \Nexmo\Client|null
31+
* @var \Vonage\Client|null
3232
*/
3333
public $client;
3434

@@ -122,9 +122,9 @@ public function statusCallback(string $callback)
122122
}
123123

124124
/**
125-
* Set the Nexmo client instance.
125+
* Set the Vonage client instance.
126126
*
127-
* @param \Nexmo\Client $clientReference
127+
* @param \Vonage\Client $clientReference
128128
* @return $this
129129
*/
130130
public function usingClient($client)

src/NexmoChannelServiceProvider.php

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)