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

Add to Slack button

v1.0.1 2025-08-01 14:48 UTC

This package is auto-updated.

Last update: 2025-08-04 09:08:14 UTC


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.