GithubHelp home page GithubHelp logo

neuralnoise / vk-geo-collector Goto Github PK

View Code? Open in Web Editor NEW

This project forked from phaizullin/vk-geo-collector

0.0 2.0 0.0 18 KB

Collect GEO data from social network VKontakte: Countries, Regions, Cities, etc.

License: MIT License

PHP 100.00%

vk-geo-collector's Introduction

Support is not carried out anymore.

VK made a lot of changes, and there is no time to follow them.
You can contact me and I will give the rights to rework the package.

vk-geo-collector

Collect GEO data from social networf VKontakte: Countries, Cities
WARNING! Regions is not supported anymore!

Installation

composer

composer require h-zone/vk-geo-collector:^0.2.0.0

or

composer.json

"h-zone/vk-geo-collector": "^0.2.0.0"

Lumen

bootstrap/app.php

$app->register(Hzone\VkGeoCollector\VkGeoCollectorServiceProvider::class);

Laravel 5+

config/app.php

'providers' => [
    //....
    Hzone\VkGeoCollector\VkGeoCollectorServiceProvider::class,
    //....
],

Both Lumen and Laravel

php artisan vendor:publish --provider="Hzone\VkGeoCollector\VkGeoCollectorServiceProvider" --tag="config"
php artisan vendor:publish --provider="Hzone\VkGeoCollector\VkGeoCollectorServiceProvider" --tag="migrations"
php artisan migrate

Usage

php artisan vk-geo-collector:update 0

This command will query VK for Worldwide Countries / Cities on desired languande (zero as param), then insert these data into database. If local pair id-title is identical, this pair will be skipped (useful for update-checks the local database).

Languages:

id    => 0
code  => ru
title => Русский

id    => 1
code  => ua
title => Українська мова

id    => 3
code  => en
title => English

id    => 4
code  => es
title => Español

id    => 6
code  => de
title => Deutsch

id    => 7
code  => it
title => Italiano

id    => 12
code  => pt
title => Portoghese

id    => 16
code  => fr
title => Français

Ref.Docs:

vk-geo-collector's People

Contributors

alexeymezenin avatar

Watchers

James Cloos avatar Starbuck avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.