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. lezhnev/instagram2vk

ActiveLibrary

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 2mo 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 49% 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

3776d 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

[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[facebook/php-ads-sdk

PHP SDK for Facebook Business

9014.1M8](/packages/facebook-php-ads-sdk)[pgrimaud/instagram-user-feed

This is a scraper to easily fetch any feed and interact with Instagram (like, follow, etc.) without OAuth for PHP.

940657.1k5](/packages/pgrimaud-instagram-user-feed)[instaphp/instaphp

A library for accessing Instagram's API (v2)

254195.9k](/packages/instaphp-instaphp)[pdir/social-feed-bundle

Social feed extension for Contao CMS

1414.8k](/packages/pdir-social-feed-bundle)[panlatent/schedule

Schedule plugin for CraftCMS

1034.1k](/packages/panlatent-schedule)

PHPackages © 2026

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