Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

C3Js Laravel Package

phpanonymous/c3js

A Laravel package that brings C3.js charting to your PHP app. Generate interactive, D3-based visualizations in Blade views using simple helpers and configurable options, streamlining chart setup without complex JavaScript. Ideal for dashboards, reports, and admin panels.

View on GitHub
Deep Wiki
Context7

phpanonymous/c3js is a Laravel package that integrates C3.js, the D3-based charting library, into your PHP application. It provides a convenient way to generate interactive, responsive charts from server-side data without writing verbose JavaScript by hand.

  • Seamless Laravel integration with publishable config and assets
  • Build bar, line, pie, spline, and area charts from PHP arrays
  • Fluent, chainable API for axes, legends, tooltips, and colors
  • Renders through Blade-friendly output for quick embedding
  • Powered by D3.js for smooth, responsive visualizations
Frequently asked questions about C3Js
How do I install phpanonymous/c3js in a Laravel application?
Install it with Composer using the package name phpanonymous/c3js, then check whether Laravel package discovery registers a service provider and whether config or assets need publishing. Because the package has a single 2023 release and no ecosystem validation, inspect the source and composer.json before installing. Confirm PHP and Laravel version constraints and asset registration strategy first.
Which Laravel and PHP versions does phpanonymous/c3js support?
The evaluation does not confirm supported Laravel or PHP versions, and the package has only one release dated 2023-09-10. Audit composer.json and the source for version constraints before adopting it. Treat it as a source-code reference or vendorable MIT asset until compatibility with your current stack is proven.
Does phpanonymous/c3js bundle C3.js and D3 or load them from a CDN?
This is flagged as an audit item rather than confirmed documentation: the package likely wraps client-side C3.js and D3, but CDN versus bundled assets must be verified. Inspect the service provider, published assets, and Blade output to see how JavaScript is referenced. CDN usage affects CSP rules, offline behavior, and Vite asset pipelines.
Can I use phpanonymous/c3js with Blade templates and Vite?
It is intended for server-rendered Laravel applications using Blade, where quick charts are needed for dashboards, reports, or internal tools. Vite compatibility is not validated and is a known risk because the package may publish assets in a way that does not align with Vite. Run a time-boxed proof of concept on one low-risk page before committing.
Does phpanonymous/c3js work with Livewire and Alpine.js?
Livewire and Alpine.js interaction is not documented in the evaluation, so compatibility must be tested. C3.js renders on the client side, and dynamic Livewire updates may require re-initializing charts after DOM changes. Watch for D3 global conflicts and Alpine integration issues, and wrap chart rendering behind an internal component.
Is phpanonymous/c3js safe and actively maintained for production use?
It is high risk as a strategic dependency: low adoption, a single maintainer, one release in 2023, zero dependents, and reliance on the legacy C3.js library. There is no vendor SLA or security response path, so assume internal ownership from day one. Limit rollout to internal dashboards after a source and license audit.
How do I pass chart data and options to phpanonymous/c3js without XSS?
The package exposes a fluent API for building charts from server-side data, but unescaped chart labels are a flagged risk. Audit how data and options are serialized into JavaScript and prefer safe JSON encoding for labels and values. Apply a strict Content Security Policy and test chart output with hostile label content.
Are there tests or documentation for phpanonymous/c3js?
The evaluation notes no known test coverage and minimal community support, so do not rely on upstream tests for confidence. Review the README and source directly, then add smoke tests around your internal wrapper. Keep documentation for the wrapper API so support does not depend on the original maintainer.
What are alternatives to phpanonymous/c3js for Laravel charts?
Alternatives include direct C3.js, Chart.js, ApexCharts, and ECharts, or a maintained Laravel chart wrapper if one fits your stack. If you only need simple Blade charts, building a small internal wrapper may be safer than adopting a low-adoption package. Define an exit path before rollout so replacement is straightforward.
Should I fork or vendor phpanonymous/c3js instead of requiring it via Composer?
Given zero dependents, sparse releases, and an MIT license, the recommended approach is to audit the source and then vendor or fork it under internal ownership. Wrap it behind an internal chart service or Blade component so application views do not call package APIs directly. Estimate whether forking and owning it costs less than one engineer-week, then review quarterly for maintenance and replacement triggers.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
vento/laravel-airbrake
wfeller/laravel-batch
maco-studios/mage-os-installer
busarm/armie
siberfx/laravel-logger
kfteam1991/dcat-admin
dashed/dashed-laposta
dashed/dashed-ecommerce-montaportal
dashed/dashed-ecommerce-etsy
neohq/string-blade-compiler
log1x/acf-composer
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core
nodisrupt/laravel-agent
sierratecnologia/media-manager