All Projects → bndwgn → Laravel Bandwagon

bndwgn / Laravel Bandwagon

Licence: mit
Social proof package for Laravel

Projects that are alternatives of or similar to Laravel Bandwagon

Aliyun Sts
基于阿里云openapi系列接口中STS最新版本的SDK进行封装的composer package,解耦其他产品SDK,各个产品SDK功能使用组件化加载,减少代码臃肿。
Stars: ✭ 19 (-79.57%)
Mutual labels:  laravel, composer
Lara Eye
Filter your Query\Builder using a structured query language
Stars: ✭ 39 (-58.06%)
Mutual labels:  laravel, composer
Easyhttp
A Laravel HTTP-client to make HTTP request easier and log requests and responses
Stars: ✭ 20 (-78.49%)
Mutual labels:  laravel, composer
Hookphp
HookPHP基于C扩展搭建内置AI编程的架构系统-支持微服务部署|热插拔业务组件-集成业务模型|权限模型|UI组件库|多模板|多平台|多域名|多终端|多语言-含常驻内存|前后分离|API平台|LUA QQ群:679116380
Stars: ✭ 575 (+518.28%)
Mutual labels:  laravel, composer
Easy Short Url
ESU 短网址,可在 Laravel、Yii、ThinkPHP 等框架 Composer 包引入,也可以独立搭建短网址站点
Stars: ✭ 71 (-23.66%)
Mutual labels:  laravel, composer
Sleepingowladmin
🦉 Administrative interface builder for Laravel (Laravel admin)
Stars: ✭ 671 (+621.51%)
Mutual labels:  laravel, composer
Htmlcache
Laravel middleware to cache the rendered html
Stars: ✭ 35 (-62.37%)
Mutual labels:  laravel, composer
Performance
⏱ PHP performance tool analyser your script on time, memory usage and db query. Support Laravel and Composer for web, web console and command line interfaces.
Stars: ✭ 429 (+361.29%)
Mutual labels:  laravel, composer
Laravel Restify
The fastest way to make a powerful JSON:API compatible Rest API with Laravel.
Stars: ✭ 62 (-33.33%)
Mutual labels:  laravel, composer
Larrock Core
Core components for LarrockCMS
Stars: ✭ 46 (-50.54%)
Mutual labels:  laravel, composer
Ip Location Zh
获取 IP 地址的真实地理位置
Stars: ✭ 556 (+497.85%)
Mutual labels:  laravel, composer
Project
⭐️ Antares Project Application Skeleton. This is the very first place you should start. It allows you to create a brand new awesome project in easy few steps.
Stars: ✭ 84 (-9.68%)
Mutual labels:  laravel, composer
Laravel React
Laravel 8 and React 17 boilerplate
Stars: ✭ 472 (+407.53%)
Mutual labels:  laravel, composer
Package Skeleton
📦 My base for PHP packages.
Stars: ✭ 6 (-93.55%)
Mutual labels:  laravel, composer
Laravel Kit
A desktop Laravel admin panel app
Stars: ✭ 440 (+373.12%)
Mutual labels:  laravel, composer
Nem Php
NEM Blockchain NIS API Wrapper and Software Development Kit for PHP
Stars: ✭ 32 (-65.59%)
Mutual labels:  laravel, composer
Docker Laravel
🐳 Build a simple laravel development environment with docker-compose.
Stars: ✭ 415 (+346.24%)
Mutual labels:  laravel, composer
Laravel Server Monitor
Server Monitoring Command for Laravel Applications
Stars: ✭ 424 (+355.91%)
Mutual labels:  laravel, composer
Datagrid
Datagrid for Laravel v5
Stars: ✭ 44 (-52.69%)
Mutual labels:  laravel, composer
Laravel Sitemap
Laravelium Sitemap generator for Laravel.
Stars: ✭ 1,231 (+1223.66%)
Mutual labels:  laravel, composer

Introduction

preview

This is a Laravel package to help promote social proof and legitimacy within your application. With a simple blade component added to any page you can share with potential customers or users that other customers are using and/or paying for your product. A simple pop-up will display in the corner of page with information such as "Someone from New York purchased the business plan 2 minutes ago."

Full documentation can be found at laravelbandwagon.com

Getting Started

Installation

You can install this package via composer using:

composer require bndwgn/laravel-bandwagon

The package will automatically register its service provider. To publish the config file to config/bandwagon.php run:

php artisan vendor:publish --provider="Bndwgn\Bandwagon\BandwagonServiceProvider"

Rendering the component

To render the component just add the component to any or all desired pages like so:

thumb

<x-bandwagon-renderer />

Publishing an event to users

To use the example of sharing a purchase with people who are on the purchase page of your application you would just add the following:

// App/Http/Controllers/PurchaseController.php 
use Bndwgn\Bandwagon\Bandwagon;

public function purchase(Request $request, Product $product)
{
    $user = Auth::user(); 
    // ... logic to charge a customer
    Bandwagon::createEvent(
        "Someone from ${$user->state}",
        "Purchased the ${$product->displayName} plan",
        $request->ip(),
        route('purchase', $product->id)
    ); 
}

This will create a new Bandwagon record which then any users who are on the purchase page where you render the component (<x-bandwagon-renderer />) will see.

Credits

License

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].