bndwgn/
laravel-bandwagon
g4t.io

Bandwagon is a Social Proof Package for Laravel

113 stars by Paul Redmond

Social proof package for Laravel

README from bndwgn/laravel-bandwagon Open on GitHub →

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.

More from the ecosystem

marcreichel/
laya-php
g4t.io
3 53

LayaPHP: Self-Hosted Text Classification for PHP and Laravel

Classify text in PHP without an LLM bill: typed decisions in 100+ languages, self-hosted. Laravel-ready SDK for Laya, a Jev AI alternative.

ai classification decision-engine
marcreichel/laya-php via Laravel News
Josh-Dovey/
postcodes-laravel
g4t.io
5 9

Postcodes for Laravel: GB Postcode Lookup and Geography Data

Postcodes for Laravel adds typed GB postcode lookups, validation, geography data, distance searches, and test fakes through the GB Postcodes API.

Josh-Dovey/postcodes-laravel via Laravel News
RedberryProducts/
mailbox-for-laravel
g4t.io
4 115

Mailbox for Laravel: Preview and Test Rendered Email

Mailbox for Laravel captures outgoing mail in a local dashboard and lets you test rendered HTML, recipients, and attachments with fluent assertions.

RedberryProducts/mailbox-for-laravel via Laravel News