yiimaker/yii2-social-share Extension for sharing on social networks

24204902

Extension for sharing on social networks

  1. Installation
  2. Usage
  3. Tests
  4. Contributing
  5. License

Latest Stable Version Monthly Downloads Total Downloads Build Status Scrutinizer Code Quality

With this extension you can share data from your web pages to any social network! Features: SEO support, default icons for social networks, easy creation of custom drivers for other social networks and more!

Documentation is at docs/guide/README.md.

Extension supports from the box next social network drivers:

drivers for messengers:

and other drivers:

also you can create your driver, it's very simple!

Installation

The preferred way to install this extension is through composer.

Either run

$ composer require yiimaker/yii2-social-share

or add

"yiimaker/yii2-social-share": "~2.2"

to the require section of your composer.json.

Usage

Call widget in view file

<?= \ymaker\social\share\widgets\SocialShare::widget([
    'configurator'  => 'socialShare',
    'url'           => \yii\helpers\Url::to('absolute/route/to/page', true),
    'title'         => 'Title of the page',
    'description'   => 'Description of the page...',
    'imageUrl'      => \yii\helpers\Url::to('absolute/route/to/image.png', true),
]); ?>

Tests

You can run tests with composer command

$ composer test

or using following command

$ codecept build && codecept run

Contributing

For information about contributing please read CONTRIBUTING.md.

License

License

This project is released under the terms of the BSD-3-Clause license.

Copyright (c) 2017-2018, Yii Maker

1 0
1 follower
3 632 downloads
Yii Version: 2.0
License: BSD-3-Clause
Category: Web Service
Developed by: greeflas
Created on: Apr 28, 2018
Last updated: (not set)
Packagist Profile
Github Repository

Related Extensions