有缺陷的代码 / 链接分享
1.0.0
2023-09-30 15:03 UTC
Requires
- php: >=8.2
Requires (Dev)
- laravel/pint: ^1.8
- nunomaduro/collision: ^7.0
- orchestra/testbench: ^8.3
- phpunit/phpunit: ^10.0
This package is auto-updated.
Last update: 2024-09-04 13:12:34 UTC
README
英语 | 阿拉伯语 | 孟加拉语 | 波斯尼亚语 | 德语 | 西班牙语 | 法语 | 印地语 | 意大利语 | 日语 | 韩语 | 马拉地语 | 葡萄牙语 | 俄语 | 斯瓦希里语 | 泰米尔语 | 泰卢固语 | 土耳其语 | 乌尔都语 | 越南语 | 中文
简介
此包简化了将分享链接添加到您的Laravel应用程序的过程。如果您发现我们遗漏了一个服务,请随时提交一个pull request!
分享链接是将社交媒体基本URL与查询参数结合的URL,用于分享您网站或应用程序中的内容。参数通常包括内容URL和预置消息。这些链接,如示例所示,让用户能够轻松地在Twitter、Facebook和Telegram等平台上分享帖子。使用此开源包,通过Laravel的blade组件系统快速创建分享链接。
示例
<x-link-sharer service="twitter" text="Share me!" url="https://www.defectivecode.com" hashtags="awesome,links" class="p-4"> <!-- Your HTML code here to control the look and feel of the share button --> <span class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded">Click me!</span> </x-link-sharer>
文档
您可以在我们网站上阅读文档。
许可证
MIT许可证(MIT)。有关更多信息,请参阅许可证文件。