saammi/any-chat 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

saammi/any-chat

最新稳定版本:v1.0.0-beta.3

Composer 安装命令:

composer require saammi/any-chat

包简介

A no-auth livewire stateless chat-widget

README 文档

README

AnyChat Logo

AnyChat 💬

Lightweight. Stateless. Instant.
A support-first chat widget for Laravel, powered by Livewire and Alpine.js.

AnyChat Logo AnyChat Logo AnyChat Logo AnyChat Logo AnyChat Logo

Tests Code Style Latest Version License

AnyChat is a stateless Livewire chat widget designed for Laravel applications. It enables real-time support interactions with zero database migrations and zero authentication overhead. Messages persist in the local session, making it the perfect privacy-first solution for landing pages and lead generation.

✨ Key Features

  • Stateless by Design: No database bloat. Messages stay in the user's session.
  • Plug & Play: Zero configuration required to get started.
  • Reactive: Built on Livewire and Alpine.js for a snappy, real-time feel.
  • Theming: Full dark mode support and deep customization via Blade props.

📦 Installation

Install the package via Composer:

composer require saammi/any-chat

🛠 Usage

  1. The Chat Widget Place the component in your public-facing Blade templates:
 <livewire:anychat-widget />
  1. The Response Dashboard Access incoming messages using the administrative dashboard component:
<livewire:anychat-dashboard />

Prerequisites Ensure your layout file includes the required Livewire and Alpine.js assets:

<html>
<head>
    @livewireStyles
</head>
<body>
    {{ $slot }}

    @livewireScripts
    <script defer src="[https://unpkg.com/alpinejs@3.x.x/dist/cdn.min.js](https://unpkg.com/alpinejs@3.x.x/dist/cdn.min.js)"></script>
</body>
</html>

Setup reverb or pusher and you are good to go.

🎨 Customization You can fine-tune the widget appearance directly through props:

<livewire:anychat-widget 
    height="500px" 
    width="400px" 
    variant="outline" 
    primaryColor="#7c3aed"
    adminColor="#f3f4f6"
/>

🧪 Testing We maintain a robust test suite using PHPUnit and Laravel Dusk to ensure stability across PHP and Laravel versions.

Unit Tests:

./vendor/bin/phpunit --testsuite Unit

Browser Tests (Dusk):

# Update ChromeDriver to match your local version
./vendor/bin/dusk-updater detect --auto-update

# Run the browser suite
./vendor/bin/testbench dusk

🗺 Roadmap (Beta) [ ] File Uploads: Send images and documents via chat.

[ ] Notifications: Real-time alerts for new messages.

[ ] AI Integration: Optional support for LLM-powered auto-responders.

[ ] Database Driver: Optional persistence for long-term history.

🤝 Contributing Contributions are what make the open-source community an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated. Please see our Contributing Guide for details.

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

统计信息

  • 总下载量: 2
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: Blade

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-03-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固