PHPackages                             ryannielson/shareable - 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. ryannielson/shareable

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

ryannielson/shareable
=====================

A Laravel 4 package to make it easy to add social sharing buttons to your application.

1.0.4(11y ago)222.8k8MITPHPPHP &gt;=5.3.0

Since Mar 10Pushed 11y ago4 watchersCompare

[ Source](https://github.com/RyanNielson/shareable)[ Packagist](https://packagist.org/packages/ryannielson/shareable)[ Docs](https://github.com/RyanNielson/shareable)[ RSS](/packages/ryannielson-shareable/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (2)Dependencies (4)Versions (6)Used By (0)

\#shareable

A Laravel 4 package to make it easy to add social sharing buttons to your application.

This Laravel 4 package provides helpers for easily adding social sharing buttons to your views. This package includes support for:

- Facebook
- Google Plus
- Twitter

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

[](#installation)

Run the following Composer command in your terminal, or simply add `'ryannielson/shareable': '1.0.*'` to your composer.json file:

```
composer require ryannielson/shareable:'1.0.*'

```

Once complete, you now have to add the the service provider to the providers array in `app/config/app.php`:

```
'RyanNielson\Shareable\ShareableServiceProvider'

```

Finally, add the following entry entry to the aliases array in `app/config/app.php`:

```
'Shareable' => 'RyanNielson\Shareable\Facades\Shareable'

```

That's it!

Usage
-----

[](#usage)

Shareable current supports only a few social networks, which are accessed through a similar Shareable facade which should be used in your views. Each of these methods can also be passed an array of options which correspond to the options shown on the respective button creation pages and listed below.

Render all share buttons, specified in the config.php (default all buttons), within a unordered list:

```
{{ Shareable::all() }}

```

### Facebook

[](#facebook)

[developers.facebook.com/docs/plugins/share-button](https://developers.facebook.com/docs/plugins/share-button/)

```
{{ Shareable::facebook($options = array()) }}

```

OptionTypeDefaultPossible Optionsurlstring''widthinteger100typestring'button\_count''box\_count', 'button\_count', 'button', 'icon\_link', 'icon', 'link'### Google Plus

[](#google-plus)

[developers.google.com/+/web/share](https://developers.google.com/+/web/share/)

```
{{ Shareable::googlePlus($options = array()) }}

```

OptionTypeDefaultPossible Optionsurlstring''sizestring'medium''small', 'medium', 'large'langstring'en-US'See [developers.google.com/+/web/share/](https://developers.google.com/+/web/share/)widthintegernullannotationstring'bubble''none', 'bubble', vertical-bubble', 'inline'### Twitter

[](#twitter)

[about.twitter.com/resources/buttons#tweet](https://about.twitter.com/resources/buttons#tweet)

```
{{ Shareable::twitter($options = array()) }}

```

OptionTypeDefaultPossible Optionsurlstring''textstring''countbooleantrueviastring''recommendstring''hashtagsstring''sizestring''langstring'en'View and Configuration Changes
------------------------------

[](#view-and-configuration-changes)

Like most Laravel packages, you can edit the configuration and views for this package by running a few commands to put the files into your app's project directory.

Edit configuration: `php artisan config:publish ryannielson/shareable`

Edit views: `php artisan view:publish ryannielson/shareable`

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 97.4% 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

Every ~29 days

Total

5

Last Release

4331d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/794694?v=4)[Ryan Nielson](/maintainers/RyanNielson)[@RyanNielson](https://github.com/RyanNielson)

---

Top Contributors

[![RyanNielson](https://avatars.githubusercontent.com/u/794694?v=4)](https://github.com/RyanNielson "RyanNielson (38 commits)")[![koomai](https://avatars.githubusercontent.com/u/1274618?v=4)](https://github.com/koomai "koomai (1 commits)")

---

Tags

laravelfacebooktwittersocialsharegoogle plus

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ryannielson-shareable/health.svg)

```
[![Health](https://phpackages.com/badges/ryannielson-shareable/health.svg)](https://phpackages.com/packages/ryannielson-shareable)
```

###  Alternatives

[social-links/social-links

PHP library to generate share buttons

112338.6k2](/packages/social-links-social-links)[dragon-code/pretty-routes

Pretty Routes for Laravel

10058.7k4](/packages/dragon-code-pretty-routes)[pdir/social-feed-bundle

Social feed extension for Contao CMS

1414.8k](/packages/pdir-social-feed-bundle)[bjuppa/laravel-blog

Add blog functionality to your Laravel project

483.3k2](/packages/bjuppa-laravel-blog)[yaro/soc-share

Social network share link builder

101.9k](/packages/yaro-soc-share)

PHPackages © 2026

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