Download the PHP package linpar/socialshare without Composer
On this page you can find all versions of the php package linpar/socialshare. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download linpar/socialshare
More information about linpar/socialshare
Files in linpar/socialshare
Package socialshare
Short Description Client library for the Social Share API
License MIT
Homepage https://github.com/linpar/Socialshare-Client-Php
Informations about the package socialshare
SocialShare API PHP Client
SocialShare API can be used to fetch number of shares for a single or multiple URLs on social platforms.
Features
- Support for Facebook.
- Support for Twitter.
- Fetch data for multiple URLs.
- Fetch total number of shares/comments/clicks/likes of multiple URLs on Facebook.
- Fetch combined total number of shares/comments/clicks/likes of multiple URLs on Facebook.
- Fetch total number of shares of multiple URLs on Twitter.
Easy Installation
Install with git
From the command line switch to the directory where dompdf will reside and run the following commands:
Install with composer
To install with Composer, simply add the requirement to your composer.json
file:
And run Composer to update your dependencies:
Before you can use the Composer installation of SocialShare in your application you must include the Composer autoloader
Simple example
Note: To get API key, send an email to [email protected]
1) Fetch number of shares/click/comments/likes of a URL on Facebook/Twitter (in case of shares).
Output:
2) Fetch number of shares/click/comments/likes of multiple URLs on Facebook/Twitter (in case of shares).
Output:
3) Fetch combined total number of shares/clicks/comments/likes of multiple URLs on Facebook/Twitter (in case of shares).
Output:
TODO
- Add support for more platforms (Pinterest etc)