Tayo
v1.0
Toggle sidebar
Tayo

Installation

Tayo is a Laravel package for creating interactive charts using Livewire and Alpine. Install it with one command and start rendering charts from Blade immediately.

Stable: v1.1.1
Packagist GitHub

Requirements

Dependency

PHP

Version

^8.1

Dependency

Laravel

Version

^10.0 | ^11.0 | ^12.0

Dependency

Livewire

Version

^3.0 | ^4.0

Install the package

Run the following command from your project root.

shell
composer require sadam/tayo

The package registers itself via Laravel's package auto-discovery. No configuration publishing is required, and no changes to app.js are needed.

Use it

The x-tayo::chart component is available in any Blade file immediately after installation.

blade
<x-tayo::chart
    type="bar"
    :data="$chartData"
    title="Revenue"
    colors="ocean"
    :height="320"
/>

Customising the component
Optional

To override the Blade template — for example to change the loading state or wrapper markup — publish the package view.

shell
php artisan vendor:publish --tag=tayo-views

The file is published to resources/views/vendor/tayo/components/chart.blade.php. Laravel will use your published copy in preference to the package version.