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

ActiveProject

jringeisen/social-share
=======================

A package that allows you to connect and post to your social media platforms.

v1.1.0(4y ago)411MITPHP

Since Apr 17Pushed 4y ago1 watchersCompare

[ Source](https://github.com/jringeisen/social-share)[ Packagist](https://packagist.org/packages/jringeisen/social-share)[ RSS](/packages/jringeisen-social-share/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

Social Share
============

[](#social-share)

Social Share is a Laravel package that allows you to connect and post to social platforms such as Twitter, Facebook, and Instagram.

Getting Started
---------------

[](#getting-started)

Install the package with the following command

```
composer require jringeisen/social-share
```

Social Share depends on Laravel Socialite to be able to connect your social platforms, so make sure to install it.

```
composer require laravel/socialite
```

Then migrate the databse

```
php artisan migrate
```

How to use Social Share
-----------------------

[](#how-to-use-social-share)

Social share uses Laravel's Socialite package to connect to your social media platforms. We've provided the following routes for you to use.

Facebook

```
route('facebook.oauth') // Authenticates facebook and instagram
route('facebook.callback') // Redirect to dashboard and stores pages in database
```

Twitter

```
route('twitter.oauth') // Authenticates twitter
route('twitter.callback') // Redirect to dashboard and stores pages in database
```

Once you have connected your accounts you can post to them by initializing the class you want to post to. For example this is how we would post to our Facebook page.

```
// Get our Facebook page that was stored in the database when we connected to it.
$page = Jringeisen\SocialShare\SocialPage::where('platform', 'facebook')->first();

// Initialize the Facebook class with our facebook page.
$facebook = new Jringeisen\SocialShare\Facebook($page);

// Post a link with text to Facebook
$facebook->postLink($link, $text);

// Post a photo wtih text to Facebook
$facebook->postPhoto($url, $text);
```

Todo
----

[](#todo)

- Create tests.
- Implement posting images to Twitter.
- Add other social platforms such as LinkedIn, Youtube, Pinterest.
- Add callback redirect path to config

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

Every ~0 days

Total

3

Last Release

1486d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3441c2b56648bbf9b04e46c71b005bf2fa285b901eec4d012220d874f65cc5da?d=identicon)[jringeisen](/maintainers/jringeisen)

---

Top Contributors

[![jringeisen](https://avatars.githubusercontent.com/u/7864804?v=4)](https://github.com/jringeisen "jringeisen (6 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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