定制 vblinden/laravel-blade-add-to-slack-button 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

vblinden/laravel-blade-add-to-slack-button

最新稳定版本:v1.0.1

Composer 安装命令:

composer require vblinden/laravel-blade-add-to-slack-button

包简介

Add to Slack button

README 文档

README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Easily add an "Add to Slack" button to your site.

Installation

You can install the package via composer:

composer require vblinden/laravel-blade-add-to-slack-button

Run the install command

php artisan add-to-slack:install

Add CSS via build tool or simply add with stylesheet link

@import '../../public/vendor/add-to-slack/css/button.css';
<link rel="stylesheet" href="/vendor/add-to-slack/css/button.css">

Optionally, you can publish the views using

php artisan vendor:publish --tag="laravel-blade-add-to-slack-button-views"

Usage

Basic Usage

Use the Blade component to render an "Add to Slack" button:

<x-add-to-slack::button href="your-oauth-flow" />

Customization Options

Large Button

<x-add-to-slack::button href="your-oauth-url" large />

Custom Label

<x-add-to-slack::button href="your-oauth-flow" label="Install App" />

Additional HTML Attributes

You can pass any additional HTML attributes to the button:

<x-add-to-slack::button 
    href="your-oauth-flow"
    target="_blank"
    rel="noopener"
    class="my-custom-class"
/>

Slack Icon Component

You can also use the Slack icon separately:

<x-add-to-slack::icon />

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

Disclaimer

Slack is a trademark of Slack Technologies, LLC, a Salesforce company. This package is not affiliated with, endorsed by, or sponsored by them.

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 124
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-08-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固