Skip to content

jekill/sm-publisher

Repository files navigation

SM Publisher

A tool that helps to publish posts to different social networks (Facebook, VK.com)

It gets information from a single resource (e.g. an RSS feed) and publishes it to one or more social networks

This tool is written in PHP, you need installed PHP and Composer (https://getcomposer.org/) By the way, you can use Docker, follow the instructions below.

Installation

git clone git@github.com:jekill/sm-publisher.git
cd sm-publisher
composer install

Usage:

cp ./config/config.example.php ./config/config.php

Edit config/config.php file

<?php
return [
    'vk' => [
        'owner_id' => '',
        'group_id' => '',
        'token'    => ''
    ],
    'fb'=>[
        'app_id'            => '',
        'app_secret'        => '',
        'page_id'           => '',
        'page_access_token' => '',
    ]
];

Publish

php ./bin/publisher.php publish Rss https://your-site.com/rss-feed.xml

Using docker

Build a docker image

docker build -t sm-publisher .

Install dependencies

docker run -it --volume $PWD:/app sm-publisher /composer/composer install

Using

docker run -it --volume $PWD:/app sm-publisher php ./bin/publisher.php publish Rss https://your-site.com/rss-feed.xml

About

A tool that helps to publish posts to different social networks (Facebook, VK.com)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published