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

Carbon Bundle Laravel Package

lightsuner/carbon-bundle

LightSuner Carbon Bundle integrates Carbon, the popular PHP DateTime extension, into Symfony applications. It provides Carbon services, Twig filters, Doctrine types, and form helpers, making date and time handling cleaner, more expressive, and consistent across your Symfony projects.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Framework-fit check (important): despite being framed as a Laravel/PHP package, this is a Symfony 2 bundle — a thin service-container wrapper that registers nesbot/carbon (the Carbon date/time library) and its carbon.extension Twig helper. If your product is Laravel, Carbon is already a first-party dependency; this package adds nothing. This assessment should be routed to the team owning any legacy Symfony 2.x surface, not the Laravel roadmap.
  • Build vs. buy: the package's entire value is ~20–40 lines of service definition plus a Twig extension registration. The "build" side is trivial and fully under your control; the "buy" side carries a 2018-era maintenance risk. This tilts the decision strongly toward inlining the config rather than adding a dependency.
  • Standardization of date/time handling: if you have a legacy Symfony app with inconsistent \DateTime usage across services, adopting Carbon (not necessarily this bundle) is a legitimate decision to reduce timezone/DST/immutability bugs. Decide the library on its merits; decide the bundle on convenience only.
  • Roadmap and platform-lifecycle planning: adoption implicitly pins you to Symfony 2 (EOL since 2019) and PHP 5.x/7.0-era constraints. Any decision to use this should be recorded as a legacy-only, sunset-bound choice, not a forward-looking one.
  • Vendor-risk triage: 15 stars, 0 dependents, last release 2018-11-30, opportunity score 2.17 — these are abandonment signals, not adoption signals. Useful as input to a dependency-approval policy that flags single-maintainer, pre-2019 packages in the "tolerate but don't expand" tier.

When to Consider This Package

Consider it only if all of the following hold:

  • You actively maintain a Symfony 2.8 / early 3.x application on a PHP version it supports.
  • You want Carbon available as an autowired service and a Twig carbon helper without writing the service definition yourself.
  • You have an existing dependency-approval process that accepts unmaintained-but-frozen packages (i.e., the risk is a known, accepted one).

Look elsewhere when any of these is true:

  • You're on Laravel — Carbon ships with the framework; there is nothing to add.
  • You're on Symfony 3.4+ / 4 / 5 / 6+ — register Carbon with a two-line service definition, use symfony/clock for testable time, or rely on the serializer's DateTimeNormalizer.
  • You're starting anything new — use CarbonImmutable directly; skip the bundle layer entirely.
  • You need maintained dependencies — with zero releases since 2018 and zero dependents, there is no ecosystem pressure to keep it compatible with modern PHP or Symfony versions, and no evident maintainer commitment.
  • You need Twig date formatting specifically — Twig's built-in date filter covers most uses without a third-party bundle.

How to Pitch It (Stakeholders)

Bottom line: do not adopt for new work; treat as legacy-only and plan to remove it.

For executives: this is a convenience wrapper around a widely used open-source date library, scoped to a framework generation (Symfony 2) that reached end of life in 2019. It has 15 stars, no downstream dependents, and no release in over six years. The strategic value is near zero and the maintenance liability is real. Adopting it would add a dependency we cannot expect anyone to patch.

For engineering: the functional need — consistent, timezone-safe, immutable date handling — is legitimate and worth solving. The right solve is nesbot/carbon (or CarbonImmutable) declared directly, plus a short service definition and, if needed, a Twig extension. That gives us the same capability in code we own, with no unmaintained third party in the dependency graph. If a legacy service already depends on this bundle, quarantine it: freeze the version, document the inline replacement, and schedule removal alongside the broader Symfony 2 exit.

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.
ignibyte/aic-framework
glavweb/data-schema-bundle
glavweb/datagrid-bundle
tacticmedia/scim-server
uni-method/frame
neika-ai/sdk
adachsoft/php-code-style
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
frankyso/ipaymu
3mdikram/worldmoneywords
snowsoft/config
itmosoft/laravel-subscriptions
larva/laravel-ai-qwen
adachsoft/api-version-bundle