定制 yiimaker/yii2-social-share 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

yiimaker/yii2-social-share

最新稳定版本:v2.3.4

Composer 安装命令:

composer require yiimaker/yii2-social-share

包简介

Extension for sharing on social networks

README 文档

README

Stand With Ukraine

Extension for sharing on social networks

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

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.3" 

to the require section of your composer.json.

Usage

Configure social networks in config file

 '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

<?= \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 tests 

or using following command

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

Contributing

For information about contributing please read CONTRIBUTING.md.

Sponsoring

Buy Me A Coffee

License

License

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

Copyright (c) 2017-2021, Volodymyr Kupriienko

统计信息

  • 总下载量: 109.29k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 48
  • 点击次数: 4
  • 依赖项目数: 4
  • 推荐数: 0

GitHub 信息

  • Stars: 48
  • Watchers: 9
  • Forks: 13
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固