Bilbila is a simple PHP library that analyzes a given phone number and gives necessary info about it. If you are wondering why we developed this library you can read our blog article here
Bilbila requires PHP >= 5.3.3.
composer require askual/bilbila
Use Askual\Bilbila\Generate($phoneNumber)
to create a bilbila object.
<?php
// require the Faker autoloader
require_once '/path/to/Bilbila/src/autoload.php';
// alternatively, use another PSR-0 compliant autoloader (like the Symfony2 ClassLoader for instance)
// use the factory to create a Faker\Generator instance
$number = '0925287357';
$bilbila = new Askual\Bilbila\Generate($number);
// generate data by accessing properties
echo $bilbila->number;
// '+251825287357';
echo $bilbila->country;
// 'eth'
Bilbila is released under the MIT Licence. See the bundled LICENSE file for details.