İletiMerkezi-SMS Library for PHP
Install
composer require talhahavadar/iletimerkezi-sms
For Laravel
First you need to install via composer after that you need to add IletimerkeziSmsServiceProvider to
app/Providers/AppServiceProvider.php file of your project., (*1)
/**
* Register any application services.
*
* @return void
*/
public function register()
{
$this->app->register('IletimerkeziSms\IletimerkeziSmsServiceProvider');
}
then you can run the command below:, (*2)
php artisan vendor:publish --tag=config
Then you need to enter your credentials to config/iletimerkezi.php
file., (*3)
You can find example usage of library in tests/test.php file., (*4)
Important
If it is not working correctly please run the command below., (*5)
php artisan config:cache
Sometimes config() function returns null. To prevent this case, we need to run the command above., (*6)