PHPackages                             social-media/social-media - 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. [API Development](/categories/api)
4. /
5. social-media/social-media

ActiveLibrary[API Development](/categories/api)

social-media/social-media
=========================

This Social Media PHP Class can (un)publish posts to any Social network.

1.0.1(11y ago)3931MITPHPPHP &gt;=5.4.0

Since Dec 16Pushed 10y ago2 watchersCompare

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

READMEChangelog (1)DependenciesVersions (3)Used By (1)

Social Media
============

[](#social-media)

[![Latest Stable Version](https://camo.githubusercontent.com/3ade79724f1ded56f905f855ae3be404762a2c72fc87f02e18eb8fab5d5ac20b/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736f6369616c2d6d656469612f736f6369616c2d6d656469612e737667)](https://packagist.org/packages/social-media/social-media)[![License](https://camo.githubusercontent.com/5a911ddcd16b9110e7821386ffd8d637005a8b856c14a3c0861b955e91da4eba/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d6c69676874677265792e737667)](https://github.com/social-media/social-media/blob/master/LICENSE)[![Build Status](https://camo.githubusercontent.com/4f7224c150149867ff95b984a1126cf2a63aa86efc2695fa92c43b43db5931d5/68747470733a2f2f7472617669732d63692e6f72672f736f6369616c2d6d656469612f736f6369616c2d6d656469612e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/social-media/social-media)

This Social Media PHP Class can (un)publish posts to any Social network.

Usage
-----

[](#usage)

### Installation

[](#installation)

```
{
    "require": {
        "social-media/social-media": "1.0.*"
    }
}
```

> Add the above in your `composer.json` file when using [Composer](https://getcomposer.org).

### Examples

[](#examples)

```
use SocialMedia\SocialMedia as SocialMedia;
use SocialMedia\Types\Post as Post;
use SocialMedia\Types\Service as Service;

// define api
$api = new SocialMedia();

// define external post objects
$service = new Post();
$post = new Service();

// (un)publish a message
$api->getTimeline()->publish($service, $post);
$api->getTimeline()->unpublish($service, $post);
```

> [View all examples](/examples/example.php) or check [the Social Media class](/src/SocialMedia.php).

Documentation
-------------

[](#documentation)

The class is well documented inline. If you use a decent IDE you'll see that each method is documented with PHPDoc.

Contributing
------------

[](#contributing)

Contributions are **welcome** and will be fully **credited**.

### Pull Requests

[](#pull-requests)

> To add or update code

- **Coding Syntax** - Please keep the code syntax consistent with the rest of the package.
- **Add unit tests!** - Your patch won't be accepted if it doesn't have tests.
- **Document any change in behavior** - Make sure the README and any other relevant documentation are kept up-to-date.
- **Consider our release cycle** - We try to follow [semver](http://semver.org/). Randomly breaking public APIs is not an option.
- **Create topic branches** - Don't ask us to pull from your master branch.
- **One pull request per feature** - If you want to do more than one thing, send multiple pull requests.
- **Send coherent history** - Make sure each individual commit in your pull request is meaningful. If you had to make multiple intermediate commits while developing, please squash them before submitting.

### Issues

[](#issues)

> For bug reporting or code discussions.

More info on how to work with GitHub on help.github.com.

Credits
-------

[](#credits)

- [Jeroen Desloovere](https://github.com/jeroendesloovere)
- [All Contributors](https://github.com/social-media/social-media/contributors)

License
-------

[](#license)

The module is licensed under [MIT](./LICENSE.md). In short, this license allows you to do everything as long as the copyright statement stays present.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

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 ~35 days

Total

2

Last Release

4131d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/588616?v=4)[Jeroen Desloovere](/maintainers/jeroendesloovere)[@jeroendesloovere](https://github.com/jeroendesloovere)

---

Top Contributors

[![jeroendesloovere](https://avatars.githubusercontent.com/u/588616?v=4)](https://github.com/jeroendesloovere "jeroendesloovere (72 commits)")

---

Tags

phpfacebooktwitterlinkedinpinterestsocial media

### Embed Badge

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

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

###  Alternatives

[fennb/phirehose

A PHP interface to the Twitter Streaming API.

698402.4k3](/packages/fennb-phirehose)[noweh/twitter-api-v2-php

This library provides methods for sending messages to Twitter and receiving statuses.

131225.2k1](/packages/noweh-twitter-api-v2-php)[edbizarro/laravel-facebook-ads

Facebook &amp; Instagram Ads for Laravel 5.6+

13629.5k](/packages/edbizarro-laravel-facebook-ads)[pdir/social-feed-bundle

Social feed extension for Contao CMS

1414.8k](/packages/pdir-social-feed-bundle)

PHPackages © 2026

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