PHP code example of tcgunel / netgsm
1. Go to this page and download the library: Download tcgunel/netgsm library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
tcgunel / netgsm example snippets
php artisan vendor:publish --tag=netgsm-config
php artisan vendor:publish --provider="TCGunel\Netgsm\NetgsmServiceProvider" --tag="migrations"
$packageCampaignQuery = new PackageCampaignQuery();
$packageCampaignQuery
->setUsername('800800800') // Opsiyonel.
->setPassword('*********'); // Opsiyonel.
$packageCampaignQuery->execute();
$packageCampaignQuery->result; // Hesaba bağlı tüm paket bilgisini array[] olarak barındırır.