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

ActiveLibrary

hilalahmad/social-share
=======================

The Social-share PHP package is a versatile and easy-to-use library designed to simplify the integration of social media sharing functionality into PHP applications. With this package, developers can effortlessly generate share links for various social media platforms and customize the associated styles.

1.0.0(2y ago)3951MITPHPPHP ^7.2 || ^8.0

Since Nov 11Pushed 2y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

Social-share PHP Package
========================

[](#social-share-php-package)

 *The Social-share PHP package is a versatile and easy-to-use library designed to simplify the integration of social media sharing functionality into PHP applications. With this package, developers can effortlessly generate share links for various social media platforms and customize the associated styles.*

 [ ![GitHub issues](https://camo.githubusercontent.com/d1f1b38f1504231dd16a157590e3b1edd288a78716595679becfe3f676469027/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f66756c6c737461636b3132342f736f6369616c2d7368617265) ](https://github.com/fullstack124/social-share/issues) [ ![GitHub stars](https://camo.githubusercontent.com/12be2b0f87001f3d97a8610f444b6201fd7e1a07719c9704d2c6ac88ad281225/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f66756c6c737461636b3132342f736f6369616c2d7368617265) ](https://github.com/fullstack124/social-share/stargazers) [ ![Total Downloads](https://camo.githubusercontent.com/23c7dcfcb83b9fcb7c2454cd24a183dfb3c9bd611391b22e557f9bfbf0943124/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f66756c6c737461636b3132342f736f6369616c2d7368617265) ](https://packagist.org/packages/fullstack124/social-share) [ ![License](https://camo.githubusercontent.com/94ccee33f3a1d8fc0b26f17ff6c3cc8841dee1ad122cbe2537e3f00ebb2da31f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f66756c6c737461636b3132342f736f6369616c2d7368617265) ](https://github.com/fullstack124/social-share/blob/main/LICENSE)

Table of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Features](#features)
- [Usage](#usage)
    - [Basic Usage](#basic-usage)
- [Contribution](#contribution)
- [License](#license)

Installation
------------

[](#installation)

You can install this package using Composer, a popular PHP package manager:

```
composer require hilalahmad/social-share
```

Features
--------

[](#features)

### Platform Support:

[](#platform-support)

- Generate share links for popular social media platforms including Facebook, WhatsApp, Email, SMS, Pinterest, Reddit, Outlook, LinkedIn, and Twitter.

### Custom Styling:

[](#custom-styling)

- Easily apply custom styles to the generated share links to seamlessly integrate them with your application's design.

### Simple Integration:

[](#simple-integration)

- The package provides a straightforward interface, making it simple for developers to incorporate social media sharing features into their PHP projects.

### Flexibility:

[](#flexibility)

- Adapt the package to your specific use case by customizing the default design styles and easily extending it to support additional social media platforms.

Basic Usage
-----------

[](#basic-usage)

Here's an example of how to use the HttpClient package to send a GET request:

```
use Hilalahmad\SocialShare\SocialShare;

$socialShare = new SocialShare();

echo $socialShare->facebook(url);
echo $socialShare->whatsapp(url);
echo $socialShare->email(url);
echo $socialShare->sms($phoneNumber,$message);
echo $socialShare->linkedin($url);
echo $socialShare->pinterest($url,$image_url,$content);
echo $socialShare->reddit($url,$content);
echo $socialShare->tumblr($url,$title);
echo $socialShare->outlook($url,$subject,$body);
echo $socialShare->twitter($url,$text);
```

### Generate Share Links in HTML

[](#generate-share-links-in-html)

- You can now directly embed the generated share links with custom styles into your HTML code:

Contribution
------------

[](#contribution)

If you'd like to contribute to this package or report issues, please check the [ Github repo](https://github.com/fullstack124/social-share/issues) for more details.

License
-------

[](#license)

This package is open-source and is licensed under the MIT License.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity47

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

Unknown

Total

1

Last Release

919d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8130aa2a0353184f190feb106a6c11f57afa8872ec9e15e75b782d9e03dc5bde?d=identicon)[hilal ahmad](/maintainers/hilal%20ahmad)

---

Top Contributors

[![hilalahmad0101](https://avatars.githubusercontent.com/u/115874624?v=4)](https://github.com/hilalahmad0101 "hilalahmad0101 (1 commits)")

---

Tags

sharesocialmediasocialsharesharemedia

### Embed Badge

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

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

###  Alternatives

[jorenvanhocht/laravel-share

Optional package for Laravel to generate social share links.

5341.1M5](/packages/jorenvanhocht-laravel-share)[chencha/share

Share links with Laravel

182272.6k](/packages/chencha-share)[social-links/social-links

PHP library to generate share buttons

112338.6k2](/packages/social-links-social-links)[yiimaker/yii2-social-share

Extension for sharing on social networks

48111.3k4](/packages/yiimaker-yii2-social-share)[kudashevs/laravel-share-buttons

A Laravel social media share buttons package.

4355.1k](/packages/kudashevs-laravel-share-buttons)[jonom/silverstripe-share-care

Social media sharing previews and customisation for Silverstripe

2932.7k1](/packages/jonom-silverstripe-share-care)

PHPackages © 2026

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