Skip to content

aamirshahzadxerobug/yii2-social-share

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Extension for sharing on social networks

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

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:

and drivers for messengers:

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 xerobug/yii2-social-share

or add

"xerobug/yii2-social-share": "dev-main"

to the require section of your composer.json.

Usage

Call widget in view file

<?= \ymaker\social\share\widgets\SocialShare::widget([
    'configuratorId' => '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

License

License

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

Copyright (c) 2017, Yii Maker

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published