askual/bilbila

ethiopian phone number formatter

1.0.0 2019-05-02 15:04 UTC

This package is not auto-updated.

Last update: 2024-06-23 04:35:12 UTC


README

Bilbila

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.

[Bilbila Logo]

Table of Contents

Installation

composer require askual/bilbila

Basic Usage

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'

License

Bilbila is released under the MIT Licence. See the bundled LICENSE file for details.