PHPackages                             karlos3098/telephone-exchange-play - 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. karlos3098/telephone-exchange-play

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

karlos3098/telephone-exchange-play
==================================

0.0.4(1y ago)052MITPHPPHP ^8.2|^8.3CI passing

Since Jan 15Pushed 1y ago1 watchersCompare

[ Source](https://github.com/karlos1998/telephone-exchange-play)[ Packagist](https://packagist.org/packages/karlos3098/telephone-exchange-play)[ RSS](/packages/karlos3098-telephone-exchange-play/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (8)Versions (5)Used By (0)

Laravel package for integration with Play network telephone gateways.
---------------------------------------------------------------------

[](#laravel-package-for-integration-with-play-network-telephone-gateways)

[!["Buy Me A Coffee"](https://camo.githubusercontent.com/9f44ce2dc3b3eecdd02598900866ffc518801df1932849703dae1e5ce5031070/68747470733a2f2f7777772e6275796d6561636f666665652e636f6d2f6173736574732f696d672f637573746f6d5f696d616765732f6f72616e67655f696d672e706e67)](https://www.buymeacoffee.com/karlos)

#### To get started, you will need an account on this platform with a purchased phone number.

[](#to-get-started-you-will-need-an-account-on-this-platform-with-a-purchased-phone-number)

### Installing the package

[](#installing-the-package)

```
composer require karlos3098/telephone-exchange-play
```

```
php artisan vendor:publish --provider="Karlos3098\TelephoneExchangePlay\PlayProvider" --tag=config
```

Then in the API Play tab generate Client Id and Client Secret and then put them in the configuration. The last variable is the key validity time. You can choose any time. Just enter the same in .env

```
TELEPHONE_EXCHANGE_PLAY_DEFAULT_SENDER=48123456789
TELEPHONE_EXCHANGE_PLAY_CLIENT_ID=xxxxxxxxxxxxxxxx
TELEPHONE_EXCHANGE_PLAY_CLIENT_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
TELEPHONE_EXCHANGE_PLAY_CLIENT_VALIDITY_TIME=10
```

Then add the appropriate implementation in the model used for notifications and the method. Here is an example model:

```
