Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
e92941f
Bump PHP to 8.4+, upgrade dev tooling to latest major versions
Nielsvanpach Feb 25, 2026
ffe35a2
remove stale snapshot files
Nielsvanpach Feb 25, 2026
475fef4
remove stale snapshot files
Nielsvanpach Feb 25, 2026
98b0d65
Fix Germany DE-ST fall-through into DE-TH in regionHolidays switch
Nielsvanpach Feb 25, 2026
2635232
Remove deprecated 'da' country code alias for Denmark
Nielsvanpach Feb 25, 2026
6a6ba29
Fix Syria: implement Islamic holidays, fix newline escapes in holiday…
Nielsvanpach Feb 25, 2026
13d2e67
Fix Egypt: zero-pad date format strings for consistency
Nielsvanpach Feb 25, 2026
2392a9a
Fix Malaysia: replace placeholder dates for Hari Wesak, Thaipusam, an…
Nielsvanpach Feb 25, 2026
1f75786
Rename IndianCalender to IndianCalendar (fix typo)
Nielsvanpach Feb 25, 2026
0c85f31
Add Pest v4 snapshot files
Nielsvanpach Feb 25, 2026
99c3994
Fix snapshot conflict markers, drop Carbon version matrix from CI
Nielsvanpach Feb 25, 2026
b65a2af
Merge branch 'v2' into bug/fix-existing-bugs
Nielsvanpach Feb 25, 2026
727dd4c
Regenerate PHPStan baseline for Syria IslamicCalendar trait
Nielsvanpach Feb 25, 2026
5fbca82
Merge pull request #310 from spatie/bug/fix-existing-bugs
Nielsvanpach Feb 25, 2026
4e0f7af
create a Holiday VO
Nielsvanpach Feb 25, 2026
f9658c4
use the new VO in the Holidays class
Nielsvanpach Feb 25, 2026
e3ea5fb
adapt tests
Nielsvanpach Feb 25, 2026
6afb658
change the docs
Nielsvanpach Feb 25, 2026
7bf7aea
Merge pull request #311 from spatie/feature/holiday-value-object
Nielsvanpach Feb 25, 2026
d4e9ff6
Replace glob-based country discovery with static CountryRegistry
Nielsvanpach Feb 25, 2026
2304efb
Replace glob-based country discovery with static CountryRegistry
Nielsvanpach Feb 25, 2026
d8dfb28
Fix styling
Nielsvanpach Feb 25, 2026
16efffa
Merge pull request #312 from spatie/feature/country-registry
Nielsvanpach Feb 25, 2026
03b20a3
Remove country/year overrides from get(), isHoliday(), getName()
Nielsvanpach Feb 25, 2026
e4b10f2
Merge pull request #314 from spatie/feature/simplify-holidays-api
Nielsvanpach Feb 25, 2026
fb7d7bb
Require allHolidays() to return CarbonImmutable, remove string date p…
Nielsvanpach Feb 25, 2026
85ece93
Merge pull request #315 from spatie/feature/allholidays-carbonimmutable
Nielsvanpach Feb 25, 2026
3167507
Standardize regional holidays with HasRegions interface
Nielsvanpach Feb 25, 2026
e4d0c58
Merge pull request #316 from spatie/feature/has-regions
Nielsvanpach Feb 25, 2026
12681d4
Extract ResolvesCalendarDates trait, simplify Observable, tighten con…
Nielsvanpach Feb 25, 2026
76e3898
Merge pull request #317 from spatie/feature/calendar-cleanup
Nielsvanpach Feb 25, 2026
301c3a3
Refactor translation system: remove HasTranslations/Translatable, use…
Nielsvanpach Feb 25, 2026
658e096
Merge pull request #318 from spatie/feature/translation-refactor
Nielsvanpach Feb 25, 2026
36c4bd4
Rename Observable to HasObservedHolidays, accept CarbonInterface in C…
Nielsvanpach Feb 25, 2026
a4dd8ea
Merge branch 'main' into feature/observable-cleanup
Nielsvanpach Feb 25, 2026
133ed63
Merge v2 into feature/observable-cleanup
Nielsvanpach Feb 25, 2026
7ee5399
Merge pull request #319 from spatie/feature/observable-cleanup
Nielsvanpach Feb 25, 2026
dac057b
move supported years to the countries itself
Nielsvanpach Feb 25, 2026
8f1b17a
Merge pull request #320 from spatie/feature/per-country-year-ranges
Nielsvanpach Feb 25, 2026
d44fbfc
improve upgrade guide and docs
Nielsvanpach Feb 25, 2026
0c9a965
fix bug
Nielsvanpach Feb 25, 2026
edc35fb
remove dead code
Nielsvanpach Feb 25, 2026
9500e1b
change Islamic inteface
Nielsvanpach Feb 25, 2026
ae91a9e
Fix styling
Nielsvanpach Feb 25, 2026
5bb58d3
get codebase in line with the spatie guidelines
Nielsvanpach Feb 25, 2026
0ec3709
phpstan fixes
Nielsvanpach Feb 25, 2026
32ac182
add support for regional, observed, banked and religious holidays
Nielsvanpach Feb 26, 2026
4a89f2e
phpstan fixes
Nielsvanpach Feb 26, 2026
90afa4a
fixes
Nielsvanpach Feb 26, 2026
61985bc
fix actual bugs for Guatemala and Argentine
Nielsvanpach Feb 26, 2026
e0a9bbd
more country fixes
Nielsvanpach Feb 26, 2026
1816410
solve phpstan errors with better exception handling
Nielsvanpach Feb 26, 2026
9d77103
make phpstan happy
Nielsvanpach Feb 26, 2026
c24b865
fix typehinting
Nielsvanpach Feb 26, 2026
5df8535
fixes
Nielsvanpach Feb 26, 2026
6b90b78
add docs
Nielsvanpach Feb 26, 2026
5dee0d1
Merge pull request #321 from spatie/feat/holiday-types
Nielsvanpach Feb 26, 2026
8e28cf8
fixes for Malaysia
Nielsvanpach Feb 26, 2026
5d18d7d
fixes for Albania, Honduras and Australia
Nielsvanpach Feb 26, 2026
2e59646
ignore some errors
Nielsvanpach Feb 26, 2026
a0d8cf0
change from using const to abstract methods to enforce an explicit co…
Nielsvanpach Feb 26, 2026
385a362
eid al fitr can happen twice in the same year and we need to support …
Nielsvanpach Feb 26, 2026
84a36c6
get phpstan 1 level up
Nielsvanpach Feb 26, 2026
832ea65
get phpstan 1 level up
Nielsvanpach Feb 26, 2026
87c4f51
switch to non nullable return types
Nielsvanpach Feb 26, 2026
654ca5b
set back to max
Nielsvanpach Feb 26, 2026
44ab5c6
remove the baseline
Nielsvanpach Feb 26, 2026
7cb80cf
restore comments
Nielsvanpach Feb 26, 2026
5029c31
set to religious holidays
Nielsvanpach Feb 26, 2026
d4d207f
Merge pull request #322 from spatie/bugs/phpstan-fixes
Nielsvanpach Feb 26, 2026
d916584
reduce duplication
Nielsvanpach Feb 26, 2026
3cda95a
reduce duplication
Nielsvanpach Feb 26, 2026
849d8ce
fix types
Nielsvanpach Feb 26, 2026
82eb93c
Avoid re-instantiating Holidays in getInRange
Nielsvanpach Feb 26, 2026
ef0c0b5
protect the constructor
Nielsvanpach Feb 26, 2026
2039946
reuse existing method
Nielsvanpach Feb 26, 2026
8a2a841
rewrite method
Nielsvanpach Feb 26, 2026
d6ccf67
add docs and test coverage
Nielsvanpach Feb 26, 2026
c6c67e5
Merge pull request #323 from spatie/feat/qof-improvements
Nielsvanpach Feb 26, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@
/.gitattributes export-ignore
/.gitignore export-ignore
/phpunit.xml.dist export-ignore
/psalm.xml.dist export-ignore
/tests export-ignore
/.editorconfig export-ignore
/.php-cs-fixer.dist.php export-ignore
/art export-ignore
/docs export-ignore
/UPGRADING.md export-ignore
2 changes: 1 addition & 1 deletion .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
php-version: '8.4'
coverage: none

- name: Install composer dependencies
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
php: [8.5, 8.4, 8.3, 8.2, 8.1]
php: [8.5, 8.4]
stability: [prefer-lowest, prefer-stable]
carbon: [2.72, 3.8.4]

name: P${{ matrix.php }} - ${{ matrix.stability }} - Carbon ${{ matrix.carbon }}
name: P${{ matrix.php }} - ${{ matrix.stability }}

steps:
- name: Checkout code
Expand All @@ -33,9 +32,7 @@ jobs:
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"

- name: Install dependencies
run: |
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
composer require nesbot/carbon:^${{ matrix.carbon }} --${{ matrix.stability }} -W --prefer-dist --no-interaction
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction

- name: List Installed Dependencies
run: composer show -D
Expand Down
Loading