coredevina / telcountrycode
Telco Country Code
dev-master
2020-05-27 04:30 UTC
This package is auto-updated.
Last update: 2020-05-27 04:30:31 UTC
README
composer require coredevina/telcountrycode
config/app.php (Laravel)
'aliases' => [
.....
.....
.....
'Telco' => \CoreDevina\Telcountrycode\Telcountrycode::class,
],
bootstrap/app.php(lumen)
if (!class_exists('Telco')) {
class_alias('\CoreDevina\Telcountrycode\Telcountrycode', 'Telco');
}
SomeController.php
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Telco;
...
Use
$telco = new Telco();
$telco::Country(62);
$telco::Country(ID);
$telco::msisdnCountry(628128173468);
$telco::getTelco(628567368);