承接 accelade/widgets 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

accelade/widgets

Composer 安装命令:

composer require accelade/widgets

包简介

Dashboard widgets for Laravel applications using Accelade components

README 文档

README

Dashboard Widgets for Laravel. Zero Complexity.

Tests Latest Version Total Downloads License

Build beautiful, interactive dashboards with minimal code. Accelade Widgets provides a powerful set of dashboard components including stats, charts, tables, and calendars.

use Accelade\Widgets\Components\StatsWidget;
use Accelade\Widgets\Components\Stat;

$widget = StatsWidget::make()
    ->columns(4)
    ->stats([
        Stat::make('Total Users', '12,345')
            ->description('3.5% increase')
            ->icon('heroicon-o-users')
            ->color('primary'),
    ]);

That's it. Render with <x-widgets::stats-widget :widget="$widget" />.

Why Accelade Widgets?

  • Filament-Compatible API - Familiar syntax if you use Filament
  • Stats Widget - Display key metrics with icons, descriptions, and trends
  • Chart Widget - Line, bar, pie, doughnut, and area charts via Chart.js
  • Table Widget - Display tabular data with sorting and formatting
  • Calendar Widget - Display events in a calendar view
  • Grid Layout - Responsive widget arrangement
  • Dark Mode - Built-in dark mode support
  • Polling - Auto-refresh widgets at configurable intervals
  • Lazy Loading - Load widgets on demand with placeholders
  • Lightweight - Minimal dependencies, maximum performance

Quick Start

composer require accelade/widgets

The service provider will be automatically registered.

Publish Configuration

php artisan vendor:publish --tag=widgets-config

Features at a Glance

Stats Widget

use Accelade\Widgets\Components\StatsWidget;
use Accelade\Widgets\Components\Stat;

$widget = StatsWidget::make()
    ->columns(4)
    ->stats([
        Stat::make('Total Users', '12,345')
            ->description('3.5% increase')
            ->descriptionIcon('heroicon-m-arrow-trending-up', 'success')
            ->icon('heroicon-o-users')
            ->color('primary'),

        Stat::make('Revenue', '$45,678')
            ->description('12% increase')
            ->icon('heroicon-o-currency-dollar')
            ->color('success'),

        Stat::make('Orders', '1,234')
            ->description('New this month')
            ->icon('heroicon-o-shopping-cart')
            ->color('warning'),

        Stat::make('Conversion', '3.2%')
            ->description('From last month')
            ->icon('heroicon-o-chart-bar')
            ->color('info'),
    ]);
<x-widgets::stats-widget :widget="$widget" />

Chart Widget

use Accelade\Widgets\Components\ChartWidget;

$chart = ChartWidget::make()
    ->heading('Revenue Overview')
    ->description('Monthly revenue for the past 12 months')
    ->line()
    ->height(350)
    ->data([
        'labels' => ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'],
        'datasets' => [
            [
                'label' => 'Revenue',
                'data' => [12000, 19000, 15000, 25000, 22000, 30000],
                'borderColor' => '#3b82f6',
                'backgroundColor' => 'rgba(59, 130, 246, 0.1)',
                'tension' => 0.4,
                'fill' => true,
            ],
        ],
    ]);

Supported chart types: line(), bar(), pie(), doughnut(), area(), radar(), polarArea().

Table Widget

use Accelade\Widgets\Components\TableWidget;
use Accelade\Widgets\Components\Column;

$table = TableWidget::make()
    ->heading('Recent Orders')
    ->columns([
        Column::make('id')->label('#')->width('60px'),
        Column::make('customer')->label('Customer')->sortable(),
        Column::make('amount')
            ->label('Amount')
            ->alignRight()
            ->formatStateUsing(fn ($value) => '$' . number_format($value, 2)),
        Column::make('status')
            ->label('Status')
            ->badge()
            ->color(fn ($value) => match ($value) {
                'completed' => 'success',
                'pending' => 'warning',
                'cancelled' => 'danger',
                default => 'gray',
            }),
    ])
    ->records($orders)
    ->striped()
    ->hoverable();

Calendar Widget

use Accelade\Widgets\Components\CalendarWidget;

$calendar = CalendarWidget::make()
    ->heading('Upcoming Events')
    ->events([
        ['title' => 'Team Meeting', 'start' => '2024-01-15', 'color' => '#3b82f6'],
        ['title' => 'Product Launch', 'start' => '2024-01-20', 'end' => '2024-01-22'],
    ]);

Grid Layout

<x-widgets::grid :columns="12" :gap="6">
    <div class="col-span-8">
        <x-widgets::chart-widget :widget="$chartWidget" />
    </div>
    <div class="col-span-4">
        <x-widgets::stats-widget :widget="$statsWidget" />
    </div>
    <div class="col-span-12">
        <x-widgets::table-widget :widget="$tableWidget" />
    </div>
</x-widgets::grid>

Polling (Auto-Refresh)

$widget = StatsWidget::make()
    ->pollingInterval('30s')  // Refresh every 30 seconds
    ->stats([...]);

Lazy Loading

$widget = ChartWidget::make()
    ->lazy(true, 'Loading chart...')
    ->data([...]);

Requirements

  • PHP 8.2+
  • Laravel 11.x or 12.x

Documentation

Guide Description
Getting Started Installation and basic usage
Stats Widget Display key metrics and statistics
Chart Widget Charts with Chart.js integration
Table Widget Tabular data display
Calendar Widget Calendar view for events

Accelade Ecosystem

Accelade Widgets is part of the Accelade ecosystem:

Package Description
accelade/accelade Core reactive Blade components
accelade/schemas Schema-based layouts
accelade/forms Form builder with validation
accelade/infolists Display read-only data
accelade/tables Data tables with filtering
accelade/actions Action buttons with modals
accelade/widgets Dashboard widgets (this package)

License

MIT License. See LICENSE for details.

accelade/widgets 适用场景与选型建议

accelade/widgets 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 26 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 01 月 19 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「stats」 「charts」 「laravel」 「dashboard」 「widgets」 「accelade」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 accelade/widgets 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 accelade/widgets 我们能提供哪些服务?
定制开发 / 二次开发

基于 accelade/widgets 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-19