PHPackages                             thujohn/share - 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. thujohn/share

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

thujohn/share
=============

Share links with Laravel 4

4219.0k6[4 issues](https://github.com/thujohn/share-l4/issues)PHP

Since May 20Pushed 12y ago6 watchersCompare

[ Source](https://github.com/thujohn/share-l4)[ Packagist](https://packagist.org/packages/thujohn/share)[ RSS](/packages/thujohn-share/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Share
=====

[](#share)

Share links with Laravel 4

[![Build Status](https://camo.githubusercontent.com/d58f648c467a62a89489a5e19027275264698660f42f709c193f9281636912f0/68747470733a2f2f7472617669732d63692e6f72672f7468756a6f686e2f73686172652d6c342e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/thujohn/share-l4)

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

[](#installation)

Add `thujohn/share` to `composer.json`.

```
"thujohn/share": "dev-master"

```

Run `composer update` to pull down the latest version of Share.

Now open up `app/config/app.php` and add the service provider to your `providers` array.

```
'providers' => array(
    'Thujohn\Share\ShareServiceProvider',
)

```

Now add the alias.

```
'aliases' => array(
    'Share' => 'Thujohn\Share\ShareFacade',
)

```

Usage
-----

[](#usage)

Get a link (example with Twitter)

```
Route::get('/', function()
{
	return Share::load('http://www.example.com', 'My example')->twitter();
});

```

Returns a string :

```
https://twitter.com/intent/tweet?url=http%3A%2F%2Fwww.example.com&text=Link+description

```

Get many links

```
Route::get('/', function()
{
	return Share::load('http://www.example.com', 'Link description')->services('facebook', 'gplus', 'twitter');
});

```

Returns an array :

```
{"facebook":"https:\/\/www.facebook.com\/sharer\/sharer.php?u=http%3A%2F%2Fwww.example.com&title=Link+description","gplus":"https:\/\/plus.google.com\/share?url=http%3A%2F%2Fwww.example.com","twitter":"https:\/\/twitter.com\/intent\/tweet?url=http%3A%2F%2Fwww.example.com&text=Link+description"}

```

Services available
------------------

[](#services-available)

- Delicious : delicious
- Digg : digg
- Evernote : evernote
- Facebook : facebook
- Gmail : gmail
- Google Plus : gplus
- LinkedIn : linkedin
- Pinterest : pinterest
- Reddit : reddit
- Scoop.it : scoopit
- Springpad : springpad
- Tumblr : tumblr
- Twitter : twitter
- Viadeo : viadeo
- vk.com : vk

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

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

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/580699?v=4)[Jonathan Thuau](/maintainers/thujohn)[@thujohn](https://github.com/thujohn)

---

Top Contributors

[![thujohn](https://avatars.githubusercontent.com/u/580699?v=4)](https://github.com/thujohn "thujohn (11 commits)")[![elvendor](https://avatars.githubusercontent.com/u/1143399?v=4)](https://github.com/elvendor "elvendor (2 commits)")[![gamergemparq](https://avatars.githubusercontent.com/u/380777?v=4)](https://github.com/gamergemparq "gamergemparq (1 commits)")

### Embed Badge

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

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

PHPackages © 2026

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