PHPackages                             ageekdev/laravel-social-link-validator - 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. ageekdev/laravel-social-link-validator

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

ageekdev/laravel-social-link-validator
======================================

To validate the social profile link

v1.2.0(1y ago)121431[1 PRs](https://github.com/ageekdev/laravel-social-link-validator/pulls)GPL-3.0PHPPHP ^8.1CI passing

Since Oct 23Pushed 1mo ago2 watchersCompare

[ Source](https://github.com/ageekdev/laravel-social-link-validator)[ Packagist](https://packagist.org/packages/ageekdev/laravel-social-link-validator)[ Docs](https://github.com/ageekdev/laravel-social-link-validator)[ RSS](/packages/ageekdev-laravel-social-link-validator/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (10)Versions (7)Used By (0)

Laravel Social Link Validator
=============================

[](#laravel-social-link-validator)

[![Latest Version on Packagist](https://camo.githubusercontent.com/071d330932890571538f8b3df2b8bb4a2051a2c6a1637998802ebf8d4a0d48bb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616765656b6465762f6c61726176656c2d736f6369616c2d6c696e6b2d76616c696461746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ageekdev/laravel-social-link-validator)[![Laravel 10.x](https://camo.githubusercontent.com/77d579450465c8f91cf6e423135e0e63f0a86228512e20ee1f9f85dad715bfe1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d31302e782d7265642e7376673f7374796c653d666c61742d737175617265)](https://laravel.com/docs/10.x)[![Laravel 11.x](https://camo.githubusercontent.com/6af540d86774b68377b5404150551aad9a1c12ae64d639fe671176a7192d794a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d31312e782d7265642e7376673f7374796c653d666c61742d737175617265)](https://laravel.com/docs/11.x)[![Laravel 12.x](https://camo.githubusercontent.com/19d5bb0370853f3f5f64da8e47f7b2e14803b7fa5f7c8d04e347ac6849edb9ee/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d31322e782d7265642e7376673f7374796c653d666c61742d737175617265)](https://laravel.com/docs/12.x)[![GitHub Tests Action Status](https://camo.githubusercontent.com/628db369414d5af11b0d4c5bbb0009f7055cc271f2263ee7d083037d188cdc33/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f616765656b6465762f6c61726176656c2d736f6369616c2d6c696e6b2d76616c696461746f722f72756e2d74657374732e796d6c3f6c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/ageekdev/laravel-social-link-validator/actions/workflows/run-tests.yml)[![Total Downloads](https://camo.githubusercontent.com/48d467ac0b8962fadee30a181181eb34a274023cccccc89007296be0290f2c8a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616765656b6465762f6c61726176656c2d736f6369616c2d6c696e6b2d76616c696461746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ageekdev/laravel-social-link-validator)

You can validate the social profile link by using of this package.

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

[](#installation)

You can install the package via composer:

```
composer require ageekdev/laravel-social-link-validator
```

### Supported Platforms

[](#supported-platforms)

Platform NameslugFacebookfacebookInstagraminstagramLinelineLinkedinlinkedinTwittertwitterWhatsappwhatsappYoutubeyoutubeUsage
-----

[](#usage)

We can use as validation rule to validate in Request.

```
$validated = $request->validate([
    'link' => 'social_link'
]);
```

Validate with platform slug

```
$validated = $request->validate([
    'facebook_link' => 'social_link:facebook'
]);
```

To Check Platform of URL

```
use AgeekDev\SocialLinkValidator\Facades\SocialLinkValidator;

$platform = SocialLinkValidator::guess($link);
```

To Validate of URL of platform

```
use AgeekDev\SocialLinkValidator\Facades\SocialLinkValidator;

$platform = SocialLinkValidator::guess($url);

if ($platform) {
    $isValid = SocialLinkValidator::driver($platform)->isValid($url);
}
```

Testing
-------

[](#testing)

```
composer test
```

Request or add new platform
---------------------------

[](#request-or-add-new-platform)

Please create PR or issue for it if it does not already exist.

- create new platform class in `src/Validators/Platforms` folder.
- add new class in `config/social-link-validator.php`.
- Then PR you code for review.

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

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

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Ye Thu Soe](https://github.com/yethusoe91)
- [All Contributors](../../contributors)

This package contains code copied from [Social Validate](https://github.com/cfpinto/social-validate)

License
-------

[](#license)

GPL-3.0 license. Please see [License File](LICENSE.md) for more information.

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance70

Regular maintenance activity

Popularity19

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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

Total

3

Last Release

435d ago

PHP version history (2 changes)v1.0.0PHP ^8.0

v1.2.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/df0d5d9951712e7ff48fee3cf8767e4eefb48ef922c7661a13d802f30187ca82?d=identicon)[TintNaingWinn](/maintainers/TintNaingWinn)

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")[![tintnaingwin](https://avatars.githubusercontent.com/u/13062143?v=4)](https://github.com/tintnaingwin "tintnaingwin (3 commits)")[![yethusoe91](https://avatars.githubusercontent.com/u/487033?v=4)](https://github.com/yethusoe91 "yethusoe91 (3 commits)")[![pavelbier](https://avatars.githubusercontent.com/u/426724?v=4)](https://github.com/pavelbier "pavelbier (1 commits)")

---

Tags

laravelsocial-linksvalidationageekdevlaravel-social-link-validator

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/ageekdev-laravel-social-link-validator/health.svg)

```
[![Health](https://phpackages.com/badges/ageekdev-laravel-social-link-validator/health.svg)](https://phpackages.com/packages/ageekdev-laravel-social-link-validator)
```

###  Alternatives

[spatie/laravel-honeypot

Preventing spam submitted through forms

1.6k6.0M60](/packages/spatie-laravel-honeypot)[proengsoft/laravel-jsvalidation

Validate forms transparently with Javascript reusing your Laravel Validation Rules, Messages, and FormRequest

1.1k2.3M49](/packages/proengsoft-laravel-jsvalidation)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[axlon/laravel-postal-code-validation

Worldwide postal code validation for Laravel and Lumen

3853.3M1](/packages/axlon-laravel-postal-code-validation)[sunspikes/clamav-validator

Custom Laravel 5 anti-virus validator for file uploads.

3651.8M3](/packages/sunspikes-clamav-validator)[laravel-validation-rules/credit-card

Validate credit card number, expiration date, cvc

2412.2M5](/packages/laravel-validation-rules-credit-card)

PHPackages © 2026

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