PHPackages                             prajwal89/share-to - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. prajwal89/share-to

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

prajwal89/share-to
==================

Generate and render social share buttons without any hassle

v1.0.0(3y ago)816MITPHP

Since Dec 26Pushed 3y ago2 watchersCompare

[ Source](https://github.com/prajwal89/share-to)[ Packagist](https://packagist.org/packages/prajwal89/share-to)[ RSS](/packages/prajwal89-share-to/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)DependenciesVersions (2)Used By (0)

About ShareTo
=============

[](#about-shareto)

Generate and render social share buttons without any hassle

Installation
------------

[](#installation)

```
composer require prajwal89/share-to

```

Usage
-----

[](#usage)

```
include 'vendor/autoload.php';

use Prajwal89\ShareTo;

$share = new ShareTo('McqMate - MCQ Portal for Students', 'https://mcqmate.com/');
echo $share->all()->getButtons();

```

**Get all available buttons**

```
echo $share->all()->getButtons();

```

**Get single button**

```
echo $share->whatsapp()->getButtons();

```

**Get multiple buttons**

```
echo $share->whatsapp()->twitter()->getButtons();
//or
echo $share->only(['whatsapp','twitter'])->getButtons();

```

**Get all links**This will return array of share urls
you can use this to render buttons according to your need

```
$share->all()->getRawLinks();

```

**Options**Customize appearance of buttons

```
 $options = [
  //options for container
  'buttonGap' => 10, //in px
  'alignment' => 'center', // accepts (start|center|end) alignment of of buttons in container

  //options for button
  'borderWidth' => 2,
  'radius' => 4,
  'paddingX' => 4,
  'paddingY' => 8,
 ];

$share = new ShareTo('McqMate - MCQ Portal for Students', 'https://mcqmate.com/',$options);
echo $share->all()->getButtons();

```

To do list
----------

[](#to-do-list)

StatusTodo✔inline styles✔customize inline styles✔add testsadd iconstailwind supportbootstrap supportmail-to buttoninstagram buttonlinkedin buttonreddit buttonpinterest buttonLicense
-------

[](#license)

ShareTo package is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1231d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3eb26ed1148ea7d71ba384fe0e1a08f01dc17fb0ec09058cd8d8b60aec3d6afc?d=identicon)[prajwal89](/maintainers/prajwal89)

---

Top Contributors

[![prajwal89](https://avatars.githubusercontent.com/u/22263436?v=4)](https://github.com/prajwal89 "prajwal89 (16 commits)")

### Embed Badge

![Health badge](/badges/prajwal89-share-to/health.svg)

```
[![Health](https://phpackages.com/badges/prajwal89-share-to/health.svg)](https://phpackages.com/packages/prajwal89-share-to)
```

###  Alternatives

[responsiv/currency-plugin

Currency plugin for October CMS

171.3k1](/packages/responsiv-currency-plugin)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
