PHPackages                             linkorb/socialshare - 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. linkorb/socialshare

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

linkorb/socialshare
===================

Retrieve sharing stats for any url for various social networks

72.0k↓50%1PHP

Since Jan 23Pushed 11y ago3 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

LinkORB SocialShare Library
===========================

[](#linkorb-socialshare-library)

Retrieve sharing stats for any url for various social networks.

Simple example
--------------

[](#simple-example)

```
$url = new LinkORB\Component\SocialShare\Url('http://google.com');
print_r($url->getShareCounts());
```

Output:

```
Array
(
    [pinterest] => Array
        (
            [count] => 10610
            [countlabel] => 10.6K
        )

    [twitter] => Array
        (
            [count] => 7485
            [countlabel] => 7.5K
        )

    [facebook] => Array
        (
            [id] => http://google.com
            [comments] => 133545
            [shares] => 2
            [likes] =>
            [talking_about_count] =>
            [were_here_count] =>
            [count] => 133547
            [countlabel] => 133.5K
        )

    [linkedin] => Array
        (
            [count] => 63420
            [countlabel] => 63.4K
        )

    [googleplus] => Array
        (
            [count] => 5142375
            [countlabel] => 5142.4K
        )
)

```

Features
--------

[](#features)

- PSR-0 compatible, works with composer and is registered on packagist.org
- Optional caching support through any Doctrine CacheProvider (FileSystem, Memcached, etc..)
- Support for twitter.com
- Support for facebook.com
- Support for linkedin.com
- Support for pinterest.com
- Support for plus.google.com

Installing
----------

[](#installing)

Check out [composer](http://www.getcomposer.org) for details about installing and running composer.

Then, add `linkorb/socialshare` to your project's `composer.json`:

```
{
    "require": {
        "linkorb/socialshare": "dev-master"
    }
}
```

Try the commandline utility:
----------------------------

[](#try-the-commandline-utility)

There is a simple example commandline utility to test the functionality:

```
bin/console socialshare:urlsharecount http://google.com

```

This will retrieve all supported sharing stats, and output the resulting array to the console.

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

[](#contributing)

Ready to build and improve on this repo? Excellent! Go ahead and fork/clone this repo and we're looking forward to your pull requests!

If you are unable to implement changes you like yourself, don't hesitate to open a new issue report so that we or others may take care of it.

Todo
----

[](#todo)

- Add support for more networks (Tumblr, QQ, etc...)

License
-------

[](#license)

Please check LICENSE.md for full license information

Brought to you by the LinkORB Engineering team
----------------------------------------------

[](#brought-to-you-by-the-linkorb-engineering-team)

[![](https://camo.githubusercontent.com/62fb66b034de7ea7fca9fd9776424b5348daa76ef8622caf92c2f7622003e5ef/687474703a2f2f7777772e6c696e6b6f72622e636f6d2f642f6d6574612f74696572312f696d616765732f6c696e6b6f7262656e67696e656572696e672d6c6f676f2e706e67)](https://camo.githubusercontent.com/62fb66b034de7ea7fca9fd9776424b5348daa76ef8622caf92c2f7622003e5ef/687474703a2f2f7777772e6c696e6b6f72622e636f6d2f642f6d6574612f74696572312f696d616765732f6c696e6b6f7262656e67696e656572696e672d6c6f676f2e706e67)
Check out our other projects at [linkorb.com/engineering](http://www.linkorb.com/engineering).

Btw, we're hiring!

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/1db66b320db18b8036ea68211b7d8a39e7c6da97e6fd29f59a50380ebb69d0bb?d=identicon)[joostfaassen](/maintainers/joostfaassen)

---

Top Contributors

[![joostfaassen](https://avatars.githubusercontent.com/u/411113?v=4)](https://github.com/joostfaassen "joostfaassen (12 commits)")

### Embed Badge

![Health badge](/badges/linkorb-socialshare/health.svg)

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

PHPackages © 2026

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