execut / yii2-people-finder
Extension for search people via social networks. Now supported only ok.ru
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- php: ^7.4
- ext-dom: *
- execut/php-gedcom: ^1.1
- guzzlehttp/guzzle: ^7.0
- vkcom/vk-php-sdk: dev-master
- yiisoft/yii2: @dev
Requires (Dev)
- codeception/codeception: ^4.0
- codeception/module-asserts: ^1.0
- codeception/module-filesystem: ^1.0
- codeception/module-yii2: ^1.0
- codeception/verify: ~0.5.0 || ~1.1.0
This package is auto-updated.
Last update: 2024-12-14 02:38:28 UTC
README
Library for search peoples via social networks. Now supported only ok.ru and vk.com.
For license information check the LICENSE-file.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require execut/yii2-people-finder
or add
"execut/yii2-people-finder": "dev-master"
to the require section of your composer.json
file.
Define your console environment variables from your browser social networks cookies. For ok.ru:
ODNOKLASSNIKI_AUTHCODE=AUTHCODE cookie ODNOKLASSNIKI_JSESSION=JSESSIONID cookie
For vk:
VK_ACCESS_TOKEN=vk access token (get it via url from first command run)
Usage
1. Run console command:
./yii peopleFinder "Test User" "GEDCOM file path"
Where: Test User - Finded people full name in format like "Anna Sergeevna Efremova (Pushkina)" (Pushkina - maiden name) or "Anna Efremova" or "Anna Sergeevna Efremova". GEDCOM file path - path to family tree file to find a person by his family in friends.
2. And get CSV report like this:
Id;Name;Name;Friends;
7006;Test User;0;0;. Total friends: 1000
63750;Test User;0;0;Test User. Total friends: 0
3569;Test User;0;0;. Total friends: 478
Columns description:
- Id - social network identity
- Name - humman name
- Name - name compare quality
- Friends - a list of matching friends with those found in your GEDCOM file
See GEDCOM standard for more information.