emtiazzahid/tidio-laravel

A tidio chat widget for Laravel.

v0.0.1 2021-10-02 07:46 UTC

This package is auto-updated.

Last update: 2024-03-29 04:39:48 UTC


README

License Latest Version Total Downloads

tidio has a lot of integrations, but not for Laravel. This is an tidio chat widget for Laravel.

135708172-13bb6ead-2cff-4b0c-a655-cf015e4efbf3.png

Minimum Requirements

  • PHP 7.0+
  • Laravel 5.5+

Installation

  1. composer require emtiazzahid/tidio-laravel
  2. php artisan vendor:publish --provider="EmtiazZahid\Tidio\TidioServiceProvider"
  3. Add your chat link to your .env file:
TIDIO_KEY="*yi7****lo1cfaxvmcr*****cuipc***"

####To get your widget key:

Usage

Just echo the widget code in your app layout blade inside the body tag:

        ...
        {{ \EmtiazZahid\Tidio\Tidio::widgetCode() }}
    </body>
</html>

Or, if you don't want to use a config file, you can set your link directly like this:

        ...
        {{ \EmtiazZahid\Tidio\Tidio::widgetCode('your_public_key') }}
    </body>
</html>

License

tidio-laravel is released under the MIT license. See LICENSE for details.