Download the PHP package elqora/chart without Composer
On this page you can find all versions of the php package elqora/chart. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package chart
Short Description Framework-neutral, renderer-agnostic chart data definitions for PHP.
License MIT
Informations about the package chart
Elqora Chart
Elqora Chart is a framework-neutral PHP package for describing portable chart data. It provides immutable DTOs, backed enums, serialization, hydration, and structured validation for chart definitions that can be rendered by a host using any charting system.
It does not render charts, generate HTML, build JavaScript options, or depend on frontend or PHP frameworks.
System Architecture & React Registry
The Elqora Chart system consists of two complementary components:
- PHP Package (
elqora/chart): The protocol authority. Runs on your backend to construct, validate, and serialize portable chart data models into deterministic JSON. - Elqora Shadcn React Registry: The customizable host implementation. An editable React component registry built with Recharts, Tailwind CSS, and shadcn UI. It receives serialized JSON payloads directly from your PHP backend and renders them dynamically on the frontend.
Installing React Registry Components
You can install the React chart infrastructure directly into your React / Next.js / Vite application using the shadcn CLI with the organization/repo/component namespace:
Or directly from the registry manifest URL:
This installs editable components into your project's components/chart/ directory, including:
<Chart />/<ChartRenderer />: Top-level unified chart router.cartesian-renderer: Line, Area, Bar, Stacked Bar, Sparklines.categorical-renderer: Pie, Doughnut.coordinate-renderer: Scatter, Bubble.radial-renderer: Radar, Gauge.flow-renderer: Funnel.matrix-renderer: Heatmap.hierarchical-renderer: Treemap, Sunburst.statistical-renderer: Box Plot.financial-renderer: Candlestick.
Frontend React Usage
Once installed, your frontend simply fetches the JSON response from your PHP backend API and passes it to the unified <Chart /> component:
Installation
Convenience builders
The Charts facade creates the same canonical Chart objects as manual construction.
Minimal line chart
Bar chart
Pie chart
Scatter chart
Manual construction
The builders are only convenience methods. Manual construction remains the canonical chart protocol and is useful when you need direct access to payload DTOs.
Hierarchical chart
Financial chart
Serialization
All DTOs serialize to deterministic, JSON-compatible arrays. Nullable fields are omitted consistently.
Validation
Validation collects structured issues and does not rely on exceptions for expected user-data errors.
Renderer neutrality
Elqora Chart describes chart meaning and data. Hosts decide how to map that model into a renderer, a report, a data table, or another output. The public API deliberately avoids renderer option objects, callbacks, CSS, framework service identifiers, DOM behavior, and component names.
Non-goals
- Rendering charts.
- Building renderer-specific options.
- Providing frontend components.
- Providing Laravel, Symfony, or other framework integrations.
- Acting as a dashboard, analytics, reporting, or database package.