PHP code example of lyhiving / mobile2brand
1. Go to this page and download the library: Download lyhiving/mobile2brand library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
lyhiving / mobile2brand example snippets
use lyhiving\Mobile\Mobile2Brand;
// composer 方式安装
// bile2Brand.php';
$mb = new Mobile2Brand();
$brand = $mb->find('LGE','Nexus 5X');
print_r($brand);
// Output;
google
use lyhiving\Mobile\Mobile2Brand;
$mb = new Mobile2Brand();
$logo = $mb->url('https://raw.githubusercontent.com/lyhiving/mobile2brand/master/src/icons/')->find('Xiaomi','MI MAX 2');
print_r($logo);
// Output;
https://raw.githubusercontent.com/lyhiving/mobile2brand/master/src/icons/xiaomi.jpg