balazscsaba2006/socially
Composer 安装命令:
composer require balazscsaba2006/socially
包简介
Library to validate and parse social media profile URLs
关键字:
README 文档
README
Socially
Library to validate and parse social media profile URLs.
Currently supported social media platforms:
- Github
- Google Plus
- AngelList
- Gravatar
- Klout
- Behance
- Bitbucket
- Dribbble
- Flickr
- Stackoverflow
- Quora
Requirements
- PHP: >= 7.1
- PHP extensions:
- mbstring
- json
- layershifter/tld-extract: ^2.0
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.
统计信息
- 总下载量: 36.9k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-02-21