Weave Code
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

Holidays Laravel Package

spatie/holidays

Calculate public holidays for supported countries in PHP. Fetch holidays for the current or a specific year using an ISO country code or country class (with region-based holidays). Simple API: Holidays::for(...)->get() returns an array of holiday dates/names.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Feature Development: Enables accurate holiday date calculations for scheduling, leave policies, or workflow automation (e.g., "disable checkout on holidays").
  • Regulatory Compliance: Supports country-specific legal requirements (e.g., labor laws, tax deadlines tied to holidays).
  • Build vs. Buy: Avoids reinventing holiday logic; leverages a maintained, tested solution with global coverage.
  • Use Cases:
    • HR Systems: Auto-calculate paid time off (PTO) balances or adjust workdays.
    • E-commerce: Disable shipping/payments on holidays or adjust promotions.
    • Calendar Apps: Sync public holidays with user schedules.
    • Finance: Align payment deadlines or interest calculations with local holidays.

When to Consider This Package

  • Adopt if:
    • Your app requires country-specific holiday logic (e.g., regional payroll, legal deadlines).
    • You need scalability (supports 200+ countries without manual updates).
    • Your team lacks time/resources to maintain custom holiday logic.
    • You’re using Laravel/PHP and want a lightweight, dependency-free solution.
  • Look elsewhere if:
    • You need custom holiday rules (e.g., company-specific observances).
    • Your app requires real-time updates (package updates are version-controlled, not live).
    • You’re in a highly regulated industry needing audit trails for holiday changes (consider a SaaS API like HolidayAPI).
    • Your stack is non-PHP (e.g., Node.js, Python).

How to Pitch It (Stakeholders)

For Executives: "This package eliminates manual holiday maintenance—saving dev time and reducing errors. For example, a global SaaS company using this could auto-adjust support hours or payment deadlines across 50+ countries without hiring a compliance team. MIT-licensed, battle-tested, and used by 393+ devs—it’s a low-risk, high-reward decision."

For Engineering: *"Spatie’s holidays package is a 5-minute install that replaces error-prone custom logic. Key benefits:

  • Global coverage: 200+ countries, including regional holidays (e.g., Quebec vs. Canada).
  • Performance: Cached responses; minimal overhead.
  • Extensible: Hook into Laravel’s Carbon or schedule events (e.g., Holidays::for('us')->get('2024-01-01')).
  • Maintained: Actively updated (last release: Jan 2026); no vendor lock-in. Tradeoff: No real-time updates, but updates are versioned—ideal for most use cases."*
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.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport
twbs/bootstrap4