emtiazzahid/userlike-laravel

A userlike chat widget for Laravel.

v0.0.1 2021-10-01 16:28 UTC

This package is auto-updated.

Last update: 2024-10-29 06:19:14 UTC


README

License Latest Version Total Downloads

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

Minimum Requirements

  • PHP 7.0+
  • Laravel 5.5+

Installation

  1. composer require emtiazzahid/userlike-laravel
  2. php artisan vendor:publish --provider="EmtiazZahid\UserLike\UserLikeServiceProvider"
  3. Add your chat link to your .env file:
USERLIKE_KEY="**84ea169c8b4049a*******ec2f982d58fca8b147184ea6a6d356154036****"

####To get your widget key:

  • Visit: your dashboard
  • Select your website
  • Select Install from right side
  • Select Credentials for Applications

Usage

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

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

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

        ...
        {{ \EmtiazZahid\UserLike\UserLike::widgetCode('your_widget_key') }}
    </body>
</html>

License

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