elephpant/social-share 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

elephpant/social-share

Composer 安装命令:

composer require elephpant/social-share

包简介

A simple way to generate social share links.

README 文档

README

Maintainer Source Code PHP from Packagist Latest Version Software License Build Quality Score Total Downloads

A simple way to generate social share links.

Um jeito simples de gerar links de compartilhamento social.

Highlights

  • Simple installation (Instalação simples)
  • Composer ready and PSR-2 compliant (Pronto para o composer e compatível com PSR-2)

Available services

  • Facebook
  • Twitter
  • LinkedIn
  • Pinterest
  • WhatsApp
  • Telegram
  • Reddit
  • Email

Installation

SocialShare is available via Composer:

"elephpant/social-share": "2.0.*"

or run

composer require elephpant/social-share

Documentation

For details on how to use, see a sample folder in the component directory. In it you will have an example of using the class. It works like this:

Para mais detalhes sobre como usar, veja uma pasta de exemplo no diretório do componente. Nela terá um exemplo de uso da classe. Ele funciona assim:

Basic Usage:
<?php
require __DIR__ . '/../vendor/autoload.php';

use ElePHPant\SocialShare\SocialShare;

// [required] $url, [required] $text
$share = new SocialShare('https://github.com', 'Build software better, together');
?>

<ul>
    <li><a href="<?= $share::facebook(); ?>" target="_blank">Facebook</a></li>
    <li><a href="<?= $share::twitter(/* $username */); ?>" target="_blank">Twitter</a></li>
    <li><a href="<?= $share::linkedin(/* $summary, $source */); ?>" target="_blank">LinkedIn</a></li>
    <li><a href="<?= $share::pinterest(/* $image */); ?>" target="_blank">Pinterest</a></li>
    <li><a href="<?= $share::whatsapp(); ?>" target="_blank">WhatsApp</a></li>
    <li><a href="<?= $share::telegram(); ?>" target="_blank">Telegram</a></li>
    <li><a href="<?= $share::reddit(); ?>" target="_blank">Reddit</a></li>
    <li><a href="<?= $share::email(/* $recipientEmail */); ?>" target="_blank">Email</a></li>
</ul>

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 249
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 7
  • 点击次数: 6
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 3
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-09-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固