承接 ageekdev/laravel-social-link-validator 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ageekdev/laravel-social-link-validator

最新稳定版本:v1.2.0

Composer 安装命令:

composer require ageekdev/laravel-social-link-validator

包简介

To validate the social profile link

README 文档

README

Latest Version on Packagist Laravel 10.x Laravel 11.x Laravel 12.x GitHub Tests Action Status Total Downloads

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

Installation

You can install the package via composer:

composer require ageekdev/laravel-social-link-validator

Supported Platforms

Platform Name slug
Facebook facebook
Instagram instagram
Line line
Linkedin linkedin
Twitter twitter
Whatsapp whatsapp
Youtube youtube

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

composer test

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

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Credits

This package contains code copied from Social Validate

License

GPL-3.0 license. Please see License File for more information.

统计信息

  • 总下载量: 192
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 12
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 12
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0
  • 更新时间: 2023-10-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固