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

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

potelo/shareable
================

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

1.0.6(4mo ago)19.2k↓32.1%MITPHPPHP &gt;=5.3.0

Since Mar 10Pushed 4mo ago3 watchersCompare

[ Source](https://github.com/Potelo/shareable)[ Packagist](https://packagist.org/packages/potelo/shareable)[ Docs](https://github.com/RyanNielson/shareable)[ RSS](/packages/potelo-shareable/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (4)Versions (9)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

47

—

FairBetter than 94% of packages

Maintenance74

Regular maintenance activity

Popularity26

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 74.5% 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 ~718 days

Recently: every ~1077 days

Total

7

Last Release

140d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ffd057699c6f31586d7883c4f8a903048c26a1c3ccef618caf02738ddfd254ee?d=identicon)[potelo](/maintainers/potelo)

---

Top Contributors

[![RyanNielson](https://avatars.githubusercontent.com/u/794694?v=4)](https://github.com/RyanNielson "RyanNielson (38 commits)")[![marivaldojr](https://avatars.githubusercontent.com/u/2505142?v=4)](https://github.com/marivaldojr "marivaldojr (7 commits)")[![gabrielpeixoto](https://avatars.githubusercontent.com/u/3699061?v=4)](https://github.com/gabrielpeixoto "gabrielpeixoto (2 commits)")[![koomai](https://avatars.githubusercontent.com/u/1274618?v=4)](https://github.com/koomai "koomai (1 commits)")[![jprodrigues70](https://avatars.githubusercontent.com/u/9157395?v=4)](https://github.com/jprodrigues70 "jprodrigues70 (1 commits)")[![bratao](https://avatars.githubusercontent.com/u/1090152?v=4)](https://github.com/bratao "bratao (1 commits)")[![andrewalkermo](https://avatars.githubusercontent.com/u/20683045?v=4)](https://github.com/andrewalkermo "andrewalkermo (1 commits)")

---

Tags

laravelfacebooktwittersocialsharegoogle plus

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[ryannielson/shareable

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

222.8k](/packages/ryannielson-shareable)[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)
