PHPackages                             lezhnev/instagram2vk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. lezhnev/instagram2vk

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

lezhnev/instagram2vk
====================

Instagram2VK.com Reposter is a library to post instagram pictures to VK.com community's wall

0.0.4(10y ago)4222[2 PRs](https://github.com/lezhnev74/instagram2vk/pulls)MITPHP

Since Jan 7Pushed 8y ago5 watchersCompare

[ Source](https://github.com/lezhnev74/instagram2vk)[ Packagist](https://packagist.org/packages/lezhnev/instagram2vk)[ RSS](/packages/lezhnev-instagram2vk/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (3)Versions (5)Used By (0)

instagram2vk
============

[](#instagram2vk)

[![License](https://camo.githubusercontent.com/26783c30d12b75905b23fba5d7808358d43e38758022d905b39d0bbbe0a232b0/68747470733a2f2f706f7365722e707567782e6f72672f6c657a686e65762f696e7374616772616d32766b2f6c6963656e7365)](https://packagist.org/packages/lezhnev/instagram2vk)[![Latest Stable Version](https://camo.githubusercontent.com/c2f0fd7764b06369db6e582e2d09143fac0313a32e05738dfc69f2af99c5febd/68747470733a2f2f706f7365722e707567782e6f72672f6c657a686e65762f696e7374616772616d32766b2f762f737461626c65)](https://packagist.org/packages/lezhnev/instagram2vk)

Instagram reposter to vk.com does exatly this - schedules reposting of instagram photos to VK.com (on community's wall):

- you can set instagram usernames and tags to gather photos from;
- you can set exact time and weekdays for scheduling posts to VK.com.

Requirements
============

[](#requirements)

In order to run this script you will need:

- Instagram access\_token (make sure that access\_token is not given for app in Sandbox mode). Access token must have scopes: `basic` and `public_content`.
- Vk.com access\_token for reposting photos (must have rights to post on given wall).

Installation
------------

[](#installation)

Just run composer:

```
composer require lezhnev/instagram2vk

```

Example
-------

[](#example)

```
use GuzzleHttp\Client;
use Instagram2Vk\Classes\State;
use Instagram2Vk\Classes\VkPoster;
use Instagram2Vk\Classes\InstagramCrawler;
use Instagram2Vk\Classes\VkPostTimeScheduler;
use Instagram2Vk\Classes\VkPostTransformer;

$client = new Client(); // guzzle client for HTTP requests
$state = new State("file.sqlite"); // sqlite database for state storage
$transformer = new VkPostTransformer(); // transformer for instagram posts
$scheduler = new VkPostTimeScheduler(); // scheduler for reposting to VK.com
// set schedule table (Weekday => timeslots)
$scheduler->setScheduleTimeSlots(
    [
        "Mon" => ["12:30", "12:40"],
        "Tue" => [],
        "Wed" => [],
        "Thu" => ["21:30"],
        "Fri" => [],
        "Sat" => [],
        "Sun" => [],
    ]
);

// Crawl new data
$dataSource = new InstagramCrawler($client, "ISNTAGRAM_ACCESS_TOKEN", ["tag1", "moscow", "russia"],["username1", "applemusic"]);
$dataSource->crawl(); // start gathering new posts

// Pass data to VK poster
$poster = new VkPoster(
    $scheduler,
    $transformer,
    $dataSource,
    $client,
    $state,
    "VK_ACCESS_TOKEN",
    "VK_COMMUNITY_ID"
);

$poster->run(); // schedule new posts to VK
```

Support
-------

[](#support)

Please feel free to add PR or email me at

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

4

Last Release

3827d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cb00f0fc4db7dc06ce8ef99d6fd623780a3d52608c61c45fbaed0f8cf1ab5810?d=identicon)[lezhnev74](/maintainers/lezhnev74)

---

Top Contributors

[![lezhnev74](https://avatars.githubusercontent.com/u/10206110?v=4)](https://github.com/lezhnev74 "lezhnev74 (13 commits)")

---

Tags

instagramschedulevk.comreposrting

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/lezhnev-instagram2vk/health.svg)

```
[![Health](https://phpackages.com/badges/lezhnev-instagram2vk/health.svg)](https://phpackages.com/packages/lezhnev-instagram2vk)
```

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k34](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751284.3k37](/packages/civicrm-civicrm-core)[roundcube/roundcubemail

The Roundcube Webmail suite

7.0k1.4k3](/packages/roundcube-roundcubemail)[spatie/laravel-export

Create a static site bundle from a Laravel app

672139.5k6](/packages/spatie-laravel-export)[nfse-nacional/nfse-php

This is my package nfse

1533.1k](/packages/nfse-nacional-nfse-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
