https://github.com/yetopen/youisearch
Yii 1.1 extension to perform Mac address lookup
https://github.com/yetopen/youisearch
Last synced: over 1 year ago
JSON representation
Yii 1.1 extension to perform Mac address lookup
- Host: GitHub
- URL: https://github.com/yetopen/youisearch
- Owner: YetOpen
- Created: 2014-05-05T16:03:15.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-05-06T12:55:50.000Z (about 12 years ago)
- Last Synced: 2025-01-22T15:45:42.251Z (over 1 year ago)
- Language: PHP
- Homepage:
- Size: 129 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
YOuiSearch
==========
Mac Address information lookup extension for Yii
Data is retrieved from http://www.macvendorlookup.com
Installation
------------
Copy the source to your protected/extensions/YOuiSearch
Edit your config file and add:
```
return array(
...
'components'=>array(
...
'YOuiCache' => array(
'class' => 'ext.YOuiSearch.YOuiSearch',
'msgIfNotAvailable => 'not found', // Optional text to display in case mac is not found, default to "n/a"
),
...
)
...
```
Usage
-----
```
echo Yii::app()->YOuiCache->lookup($yourMac)->company;
```
Available methods: company, address, country.
Requirements
------------
* php5-curl
* database to store cached records
Links
-----
[YetOpen](http://www.yetopen.it)
[YetOpen's gitHub](https://github.com/YetOpen/)