PHPackages                             balazscsaba2006/socially - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. balazscsaba2006/socially

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

balazscsaba2006/socially
========================

Library to validate and parse social media profile URLs

v1.1.1(2y ago)336.9kMITPHPPHP ^7.4 || ^8.0

Since Feb 23Pushed 2y ago1 watchersCompare

[ Source](https://github.com/balazscsaba2006/socially)[ Packagist](https://packagist.org/packages/balazscsaba2006/socially)[ Docs](https://github.com/balazscsaba2006/socially)[ RSS](/packages/balazscsaba2006-socially/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (2)Dependencies (2)Versions (6)Used By (0)

[![GitHub tag](https://camo.githubusercontent.com/193be960b8badb651e24cb9db708db6e13053e796fc12d630c51f09f5d4aa90d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7461672f62616c617a736373616261323030362f736f6369616c6c792e737667)](https://github.com/balazscsaba2006/socially/tags) \* [![Build Status](https://camo.githubusercontent.com/4f44fb420bbdbe6bfec9a4e2ac2f2228ab7adc34cb71b4f40025f183132b6299/68747470733a2f2f7472617669732d63692e6f72672f62616c617a736373616261323030362f736f6369616c6c792e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/balazscsaba2006/socially) \* [![codecov](https://camo.githubusercontent.com/172a14eb959d4528b5134e70a78cb7ed0eaf2010dc254228bf1a592b0ea5a3f5/68747470733a2f2f636f6465636f762e696f2f67682f62616c617a736373616261323030362f736f6369616c6c792f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/balazscsaba2006/socially) \* [![Scrutinizer Code Quality](https://camo.githubusercontent.com/72504db77e9cedc23d43348966d6cbd57c16d3ec3b60014349e577878191ba36/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f62616c617a736373616261323030362f736f6369616c6c792f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/balazscsaba2006/socially/?branch=master) \* [![StyleCI Badge](https://camo.githubusercontent.com/31b87c6e0f2b9a29c8f493b74bbf7219fed8b2b1617bbb1e6c9f93c40256e801/68747470733a2f2f7374796c6563692e696f2f7265706f732f3137313832383135322f736869656c64)](https://styleci.io/repos/171828152/)

Socially
========

[](#socially)

Library to validate and parse social media profile URLs.

Currently supported social media platforms:

- Linkedin
- Github
- Twitter
- Google Plus
- Pinterest
- Facebook
- AngelList
- Gravatar
- Klout
- Behance
- Bitbucket
- Dribbble
- Flickr
- Stackoverflow
- Reddit
- Quora

Requirements
------------

[](#requirements)

- [PHP](https://secure.php.net/): &gt;= 7.1
- PHP extensions:
    - mbstring
    - json
- [layershifter/tld-extract](https://github.com/layershifter/TLDExtract): ^2.0

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

[](#installation)

The recommended way is using **[Composer](https://getcomposer.org/)**. You also can **[download the latest release](https://github.com/balazscsaba2006/socially/releases)** and start from there.

### Composer

[](#composer)

If you don’t have Composer installed, follow the [installation instructions](https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx).

Once composer is installed, execute the following command in your project root to install this library:

```
composer require balazscsaba2006/socially
```

Finally, remember to include the autoloader to your project:

```
require __DIR__ . '/vendor/autoload.php';
```

Usage
-----

[](#usage)

```
$parser = = new Parser();
$result = $parser->isSocialMediaProfile($url);
```

For more examples on usage take a look at the `/tests` directory.

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

[](#contributing)

I’d be happy if you contribute to this library. Please try to follow the existing coding style and use proper comments in your commit message. Thanks! 🙇

License
-------

[](#license)

Please see the [license file](https://github.com/balazscsaba2006/socially/blob/master/LICENSE) for more information.

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 94.1% 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 ~420 days

Total

5

Last Release

1003d ago

PHP version history (2 changes)v1.0.0PHP &gt;=7.1

v1.1PHP ^7.4 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/30c0431d32647bf0f71a0dbb9d2c6b9e71f18ae88124366d07a3305dc2505114?d=identicon)[balazscsaba2006](/maintainers/balazscsaba2006)

---

Top Contributors

[![balazscsaba2006](https://avatars.githubusercontent.com/u/1202594?v=4)](https://github.com/balazscsaba2006 "balazscsaba2006 (16 commits)")[![balazscsaba](https://avatars.githubusercontent.com/u/3343975?v=4)](https://github.com/balazscsaba "balazscsaba (1 commits)")

---

Tags

phpfacebookbitbucketgithubtwitterredditgravatarlinkedinpinterestflickrsocial mediadribbblestackoverflowgoogle plusangelbehancekloutQuorasocial media profile URL

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/balazscsaba2006-socially/health.svg)

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

###  Alternatives

[hwi/oauth-bundle

Support for authenticating users using both OAuth1.0a and OAuth2 in Symfony.

2.4k22.0M76](/packages/hwi-oauth-bundle)[and/oauth

Simple and amazing OAuth library with many providers. Just try it out!

4345.2k2](/packages/and-oauth)[socialconnect/auth

Social Connect Auth Component

563875.1k5](/packages/socialconnect-auth)[pdir/social-feed-bundle

Social feed extension for Contao CMS

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

PHPackages © 2026

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