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

Laravel Brazil Holidays Laravel Package

jeffersongoncalves/laravel-brazil-holidays

Laravel package for working with Brazilian holidays. Determine national holidays, check if a given date is a holiday, and use the data in your PHP applications with a simple, framework-friendly API.

View on GitHub
Deep Wiki
Context7

Technical Evaluation

  • Architecture fit: A lightweight domain utility package for Brazilian holiday and business-day calculations. It fits Laravel service-layer, scheduling, billing, SLA, logistics, HR, and workflow code where teams currently hard-code holiday arrays or date arithmetic. No persistence or external service dependency is implied.
  • Integration feasibility: High for Laravel/PHP applications. Expected integration is Composer installation, optional config publishing, and injection or static use in application services. The config-driven state/municipal holiday extension is useful but shifts data-accuracy ownership to the adopting team.
  • Technical risk: Moderate-low. The core calculation surface is narrow and testable, and pure-PHP Easter avoids a native extension dependency. Primary risks are legal-rule drift, timezone/date-boundary behavior, correctness of state/municipal configuration, and unproven maturity at initial 1.0.0 release.
  • Key questions: What PHP and Laravel versions are supported? How are timezones handled? Are dates immutable or mutable? What is the exact addBusinessDays behavior for start dates, holidays, and optional holidays? Is state/municipal holiday data provided, or entirely custom config? What is the test coverage and license? Who maintains annual holiday-rule updates?

Integration Approach

  • Stack fit: Strong fit for Laravel/PHP applications that need national holiday awareness, optional Carnival/Corpus Christi handling, and business-day arithmetic. Less suitable as a cross-language shared holiday service unless wrapped behind an internal API.
  • Migration path: Replace ad-hoc holiday arrays and custom business-day loops incrementally. Start with read-only calculations such as reporting or display, then move to operational workflows such as due dates, SLAs, and scheduling after validation.
  • Compatibility: Confirm PHP/Laravel support matrix, Carbon/DateTime compatibility, and config format before adoption. Validate that Consciência Negra is applied from 2024 onward and that optional holidays are excluded by default unless explicitly enabled.
  • Sequencing: Install and publish config; validate national holidays for current and next year; define state/municipal holiday ownership; add automated tests for isHoliday, isBusinessDay, and addBusinessDays; then roll out to non-critical workflows before business-critical scheduling.

Operational Impact

  • Maintenance: Low runtime maintenance, but ongoing ownership is required for legal holiday changes and config data. Annual review should confirm national, state, and municipal rules, especially around optional holidays and newly effective dates.
  • Support: Initial release has limited operational history. Adopters should pin versions, monitor package activity, and maintain an internal fallback or adapter if holiday calculations affect revenue, compliance, or customer commitments.
  • Scaling: Negligible infrastructure impact; calculations are in-process and low-cost. Caching is likely unnecessary unless used at very high volume, and should be avoided if config changes dynamically.
  • Failure modes: Incorrect holiday configuration, timezone/date-boundary errors, off-by-one behavior in addBusinessDays, optional holidays being treated as mandatory, and stale state/municipal rules. These can cause missed SLAs, incorrect billing dates, scheduling errors, or compliance exposure.
  • Ramp-up: Low for Laravel developers. TPM should sponsor a small validation checklist and assign ownership for holiday-rule configuration before using the package in customer-facing or financially material workflows.
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.
stevenay/myanfont
gmostafa/php-graphql-client
xeviant/paystack
snowsoft/faker
meditationsteps/blogetc
animalyoung/laravel-influxdb
onix-solutions/sms-telera
lonely-lights/prosetta
oxygen/data
oxygen/core
jengo/base
xiloryx/log-collector
a21ns1g4ts/filament-stripe
la-php/laravel-admin
artisan-build/community-prompts
vleroy/smart
ayles-software/laravel-australian-public-holidays
cboxdk/laravel-id-spatie
cboxdk/laravel-id-billing
cboxdk/laravel-id-billing-bridge