vblinden / laravel-blade-add-to-slack-button
Add to Slack button
Fund package maintenance!
vblinden
Requires
- php: ^8.3
- illuminate/contracts: ^10.0||^11.0||^12.0
- spatie/laravel-package-tools: ^1.16
Requires (Dev)
- larastan/larastan: ^2.9||^3.0
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.1.1||^7.10.0
- orchestra/testbench: ^10.0.0||^9.0.0||^8.22.0
- pestphp/pest: ^2.0||^3.0
- pestphp/pest-plugin-arch: ^2.5||^3.0
- pestphp/pest-plugin-laravel: ^2.0||^3.0
- phpstan/extension-installer: ^1.3
- phpstan/phpstan-deprecation-rules: ^1.1||^2.0
- phpstan/phpstan-phpunit: ^1.3||^2.0
README
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.