2017 © Pedro Peláez
 

yii2-extension yii2-social-share

Extension for sharing on social networks

image

yiimaker/yii2-social-share

Extension for sharing on social networks

  • Saturday, July 7, 2018
  • by greeflas
  • Repository
  • 9 Watchers
  • 27 Stars
  • 3,906 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 0 Open issues
  • 13 Versions
  • 46 % Grown

The README.md

Stand With Ukraine, (*1)

, (*2)

Extension for sharing on social networks

Build Status Scrutinizer Code Quality Total Downloads Monthly Downloads Latest Stable Version StandWithUkraine, (*3)

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!, (*4)

Documentation is at docs/guide/README.md., (*5)

Extension supports from the box next social network drivers:, (*6)

drivers for messengers:, (*7)

and other drivers:, (*8)

also you can create your driver, it's very simple!, (*9)

Installation

The preferred way to install this extension is through composer., (*10)

Either run, (*11)

$ composer require yiimaker/yii2-social-share

or add, (*12)

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

to the require section of your composer.json., (*13)

Usage

Configure social networks in config file, (*14)

    'components' => [
        // ...
        'socialShare' => [
            'class' => \ymaker\social\share\configurators\Configurator::class,
            'socialNetworks' => [
                'facebook' => [
                    'class' => \ymaker\social\share\drivers\Facebook::class,
                ],
            ],
        ],
    ],

and then call widget in view file, (*15)

<?= \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, (*16)

$ composer tests

or using following command, (*17)

$ ./vendor/bin/codecept build && ./vendor/bin/codecept run

Contributing

For information about contributing please read CONTRIBUTING.md., (*18)

Sponsoring

Buy Me A Coffee, (*19)

License

License, (*20)

This project is released under the terms of the BSD-3-Clause license., (*21)

Copyright (c) 2017-2021, Volodymyr Kupriienko, (*22)

The Versions

07/07 2018

dev-master

9999999-dev

Extension for sharing on social networks

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Vladimir Kuprienko

social yii2 widget media share networks

23/06 2018

3.0.x-dev

3.0.9999999.9999999-dev

Extension for sharing on social networks

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Vladimir Kuprienko

social yii2 widget media share networks

22/04 2018

v2.2.0

2.2.0.0

Extension for sharing on social networks

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Vladimir Kuprienko

social yii2 widget media share networks

22/04 2018

2.2.x-dev

2.2.9999999.9999999-dev

Extension for sharing on social networks

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Vladimir Kuprienko

social yii2 widget media share networks

18/03 2018

2.1.x-dev

2.1.9999999.9999999-dev

Extension for sharing on social networks

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Vladimir Kuprienko

social yii2 widget media share networks

18/03 2018

2.1.0

2.1.0.0

Extension for sharing on social networks

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Vladimir Kuprienko

social yii2 widget media share networks

18/01 2018

2.0.0

2.0.0.0

Extension for sharing on social networks

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Vladimir Kuprienko

social yii2 widget media share networks

25/12 2017

1.4.1

1.4.1.0

Extension for sharing on social networks

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Vladimir Kuprienko

social yii2 widget media share networks

12/12 2017

1.4.0

1.4.0.0

Extension for sharing on social networks

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Vladimir Kuprienko

social yii2 widget media share networks

02/10 2017

1.3.0

1.3.0.0

Extension for sharing to social networks

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Vladimir Kuprienko

social yii2 widget media share networks

29/08 2017

1.2.0

1.2.0.0

Extension for sharing to social networks

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Vladimir Kuprienko

social yii2 widget media share networks

29/08 2017

1.1.0

1.1.0.0

Widget for sharing to social networks

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Vladimir Kuprienko

social yii2 widget share networks

29/03 2017

1.0.0

1.0.0.0

Widget for sharing to social networks

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Vladimir Kuprienko

social yii2 widget share networks