Library to validate and parse social media profile URLs

v1.1 2021-11-05 14:34 UTC

This package is auto-updated.

Last update: 2022-10-05 16:50:24 UTC


README

GitHub tag * Build Status * codecov * Scrutinizer Code Quality * StyleCI Badge

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

Installation

The recommended way is using Composer. You also can download the latest release and start from there.

Composer

If you don’t have Composer installed, follow the installation instructions.

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

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

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

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

Please see the license file for more information.