askual/bilbila

埃塞俄比亚电话号码格式化工具

1.0.0 2019-05-02 15:04 UTC

This package is not auto-updated.

Last update: 2024-09-29 06:02:37 UTC


README

Bilbila 是一个简单的 PHP 库,用于分析给定的电话号码并给出相关信息。如果您想知道我们为什么开发这个库,可以阅读我们的博客文章 这里

Bilbila 需要 PHP >= 5.3.3。

[Bilbila Logo]

目录

安装

composer require askual/bilbila

基本用法

使用 Askual\Bilbila\Generate($phoneNumber) 创建一个 bilbila 对象。

<?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 采用 MIT 许可证发布。有关详细信息,请参阅附带的 LICENSE 文件。