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

ActiveLibrary

datumsquareit/social-share
==========================

Create posts on social platforms

02PHP

Since Jun 22Pushed 2y ago1 watchersCompare

[ Source](https://github.com/salmanallshore/social-share)[ Packagist](https://packagist.org/packages/datumsquareit/social-share)[ RSS](/packages/datumsquareit-social-share/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

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

[](#social-share)

Create posts for various social platforms such as Twitter and Facebook. This package offers a user-friendly facade that allows you to effortlessly generate new posts without the need for complex coding.

`composer require datumsquareit/social-share`

Package Configuration
---------------------

[](#package-configuration)

To run this project, you will need to add the following environment variables to your `.env` file and configuration in `app/services.php`

```
'facebook' => [
        'client_id' => env('FACEBOOK_APP_ID', ''),
        'client_secret' => env('FACEBOOK_APP_SECRET', ''),
        'redirect' => env('FACEBOOK_REDIRECT_URI', config('app.url') . '/auth/facebook/callback'),
        'default_graph_version' => 'v17.0',
        'scopes' => [
            'email',
            'instagram_content_publish',
            'user_posts',
            'pages_manage_posts',
        ]
    ],

    'twitter' => [
        'client_id' => env('TWITTER_CLIENT_ID', ''),
        'client_secret' => env('TWITTER_CLIENT_SECRET', ''),
        'redirect' => env('TWITTER_REDIRECT_URL', config('app.url') . '/auth/twitter/callback'),
        'api_url' => 'https://api.twitter.com/2',
        'oauth' => 2,
        'scopes' => [
            'tweet.write',
            'tweet.read',
            'users.read'
        ]
    ],
```

**Publish Vendor File:**

`php artisan vendor:publish --provider=Datumsquare\SocialShare\SocialShareProvider`

You can change the model and column names for access token and provider.

**Environment Variables:**

`FACEBOOK_APP_ID``FACEBOOK_APP_SECRET`

`TWITTER_CLIENT_ID``TWITTER_CLIENT_SECRET``TWITTER_REDIRECT_URL`

**Register Service Provider and Facade:**

Register package service provider and facade in `config/app.php` file:

Provider: `\Datumsquare\SocialShare\SocialShareProvider::class`

Alias/Facade: `'SocialShare' => \Datumsquare\SocialShare\SocialShare::class`

Usage/Examples
--------------

[](#usageexamples)

```
SocialShare::post('twitter', ['message' => 'New Tweet']);

SocialShare::post('facebook', ['message' => 'New post', 'url' => Object]);
```

Features
--------

[](#features)

- Facebook (Text, Image)
- Twitter (Text)

Badges
------

[](#badges)

Add badges from somewhere like: [shields.io](https://shields.io/)

[![MIT License](https://camo.githubusercontent.com/784362b26e4b3546254f1893e778ba64616e362bd6ac791991d2c9e880a3a64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e737667)](https://choosealicense.com/licenses/mit/)[![GPLv3 License](https://camo.githubusercontent.com/da9c3abfd62c32a94031c3a382cb7c85dbd4cede411416837adfe6b8fda05ba1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d47504c25323076332d79656c6c6f772e737667)](https://opensource.org/licenses/)[![AGPL License](https://camo.githubusercontent.com/aed477ac82de60abd644cfa7c9d381eebe9a00d5d32168644f7e6d2a23957d1b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4147504c2d626c75652e737667)](http://www.gnu.org/licenses/agpl-3.0)

Authors
-------

[](#authors)

- [@salman](https://github.com/salmanallshore)

Feedback
--------

[](#feedback)

If you have any feedback, please reach out to us at

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity22

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/345f58624f81d256be13dcaece351abd31c7511b8c3c03e77eff8ab7f119bd2d?d=identicon)[salmanallshore](/maintainers/salmanallshore)

---

Top Contributors

[![salmanallshore](https://avatars.githubusercontent.com/u/130784325?v=4)](https://github.com/salmanallshore "salmanallshore (10 commits)")

### Embed Badge

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

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

PHPackages © 2026

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