Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
709 commits
Select commit Hold shift + click to select a range
8b26427
The tests for Malvinas Day and National Sovereignty Day in Argentina …
stelgenhof Jan 9, 2023
9ca3bb6
Adds ext-intl to required extensions (#306)
freshleafmedia Jan 9, 2023
c64e61d
Updated the Changelog with all unreleased commits until Dec. 25th 2022.
stelgenhof Jan 31, 2023
55b574d
Small formatting fix.
stelgenhof Jan 31, 2023
709cb76
Bumped versions of some dependencies.
stelgenhof Feb 23, 2023
ba2265f
Cleaned up comment and correct reference to private method.
stelgenhof Feb 24, 2023
d04c88f
Cast to string to ensure it matches the method signature.
stelgenhof Feb 24, 2023
7df3126
Temporarily suppress some errors as these are introduced with a later…
stelgenhof Feb 24, 2023
cb88b5b
The year 1988 was incorrectly omitted from observing the Emperors' bi…
stelgenhof Feb 25, 2023
f1420ed
Add PHP 8.2 to version matrix of GitHub actions.
stelgenhof Feb 25, 2023
1fcfc3b
Excluded some years for the assertions of Sports Day after 2000 as th…
stelgenhof Feb 26, 2023
0988f7e
Remove unnecessary type casting.
stelgenhof Mar 4, 2023
f948f29
Bump package version to latest minimum installed version.
stelgenhof Mar 20, 2023
c015187
Bump package version to latest minimum installed version.
stelgenhof Apr 1, 2023
9b25608
Normalize the composer.json contents.
stelgenhof Apr 2, 2023
ac0a5fa
Updated changelog with commits made until Dec. 28th.
stelgenhof Apr 3, 2023
04fdf42
Bump PHP CS Fixer version to latest working version.
stelgenhof Apr 5, 2023
281d084
Included remaining changes and redacted the 'Added' and 'Removed' sec…
stelgenhof Apr 17, 2023
dca45e6
Add PER ruleset and remove rules already part of other rulesets.
stelgenhof Apr 17, 2023
004b4ad
Reformat argument order.
stelgenhof Apr 17, 2023
6d72a2c
Update CHANGELOG.md
stelgenhof Apr 18, 2023
391d4f4
Fix additional grammar and spelling mistakes. Remove minor changes an…
stelgenhof Apr 18, 2023
971ac95
Include version 2.6 as a supported version.
stelgenhof Apr 24, 2023
1384fb3
Remove explicit versions of PHP to avoid keeping it up to date all th…
stelgenhof Apr 26, 2023
8db37cd
Added release of version 2.6
stelgenhof Apr 26, 2023
a73f198
Merge branch 'release/2.6.0'
stelgenhof Apr 26, 2023
5ebc18b
Merge tag '2.6.0' into develop
stelgenhof Apr 26, 2023
b55d0b8
Remove composer cache step as it is failing for MacOS (not sure it is…
stelgenhof Apr 26, 2023
51c79d8
Remove MacOS from testing matrix as it returns errors (requires furth…
stelgenhof Apr 26, 2023
6f43b69
Denmark: Great Prayer Day abolished from 2024 (#308)
c960657 Apr 27, 2023
489e251
Add 2 new official holidays for Romania starting 2024 (#310)
AngelinCalu Apr 27, 2023
f19150a
Fix code styling/formatting.
stelgenhof Apr 27, 2023
6dd4757
Move settings to common section.
stelgenhof Apr 30, 2023
4108c64
Put parameters on separate lines for readability.
stelgenhof Apr 30, 2023
23d4edd
Introduce assertion for DateTime objects with delta to avoid variatio…
stelgenhof May 1, 2023
e1819b4
Update and cleanup GitHub actions.
stelgenhof May 22, 2023
f50c537
Add code styling rules to have a space after the NOT operator and mar…
stelgenhof May 23, 2023
2cd7a4e
Fix comment.
stelgenhof May 23, 2023
323883a
Made closure static as it has no context to the class itself.
stelgenhof May 23, 2023
002ce9a
Refactored the rules for calculating holidays in South Korea based on…
barami Jun 7, 2023
1ceeea2
Refactor code for improved readability and consistency
stelgenhof Jun 10, 2023
c6fa50c
Remove unused method parameter and simplified array by directly retur…
stelgenhof Jun 10, 2023
75399e1
refactor: Extract constant representing the date format (avoid 'magic…
stelgenhof Jun 14, 2023
b781aaa
refactor: Replaced the anonymous function inside array_map with arrow…
stelgenhof Jun 14, 2023
a9732a4
style: Simplify the code and remove useless doc blocks/annotations.
stelgenhof Jun 16, 2023
62e7f3a
style: Simplify the code making it more concise and readable.
stelgenhof Jun 16, 2023
825cb49
refactor: Remove unnecessary method argument as method accepts none a…
stelgenhof Jun 16, 2023
69d3943
style: Add expected newline between different annotations.
stelgenhof Jun 16, 2023
89dfcd9
style: Remove unnecessary intermediate variable.
stelgenhof Jun 17, 2023
993084e
refactor: Optimize some if/then statements and other parts to be more…
stelgenhof Jun 17, 2023
0278ba4
refactor: Simplify the calculation of the three Carnival Days in the …
stelgenhof Jun 17, 2023
e1a4369
style: Remove unnecessary blank lines in doc blocks.
stelgenhof Jun 18, 2023
b3156b9
style: Convert implicit variables into explicit ones in double-quoted…
stelgenhof Jun 19, 2023
a76da12
build: Include PHPInsights configuration for additional code analysis.
stelgenhof Jun 19, 2023
1b394d3
refactor: Introduced private methods for each holiday to eliminate co…
stelgenhof Jun 19, 2023
08956fe
refactor: Simplify the calculation of Carnival in Brazil to reduce du…
stelgenhof Jun 19, 2023
223cacc
refactor: Simplify the calculation of Carnival in Argentina to reduce…
stelgenhof Jun 19, 2023
ce803e4
build: Remove checks for Superfluous naming as we follow PER which su…
stelgenhof Jun 19, 2023
0b09075
style: Avoid use of the empty() function.
stelgenhof Jun 20, 2023
494d5f6
style: Remove redundant parentheses and fix array indentation.
stelgenhof Jun 20, 2023
00b89c9
refactor: Simplify the conditions for the Coming of Age day calculation.
stelgenhof Jun 24, 2023
fe31974
refactor: Add check for the Australia provider in case date subtracti…
stelgenhof Jun 24, 2023
d1f0fbf
refactor: Add check in case date subtraction fails.
stelgenhof Jun 24, 2023
c7087f3
refactor: extract Day of Antifascist Struggle calculation to a privat…
stelgenhof Jun 25, 2023
3b0da70
refactor: change nested ifs to early return as it is best to exit ear…
stelgenhof Jun 25, 2023
6f87212
refactor: check for type rather than null value to be more explicit. …
stelgenhof Jun 25, 2023
3be9528
refactor: simplify foreach loop in order to remove unused variables.
stelgenhof Jun 25, 2023
3c1928d
Fix code style issues.
stelgenhof Oct 10, 2023
18e49f0
Correct return type
stelgenhof Oct 10, 2023
5a94ca9
Optimize method for the Emperor's birthday.
stelgenhof Oct 11, 2023
893a7f9
Remove useless parentheses
stelgenhof Oct 14, 2023
ae895d0
Remove summer and wintertime (#322)
stelgenhof Oct 15, 2023
9da5acb
Add International Womens Day to DE-MV (#311)
ihmels Oct 15, 2023
eaeb1d3
Update changelog with recent changes.
stelgenhof Oct 15, 2023
cedccb6
Optimize the between filter class.
stelgenhof Oct 22, 2023
5f0faa1
Bump package versions to latest working versions.
stelgenhof Nov 30, 2023
8d67a7a
Remove infection (#327)
stelgenhof Dec 3, 2023
404b641
Fixes : (#326)
rChassat Dec 3, 2023
3111af9
remove back tests (#323)
fezfez Dec 3, 2023
0067415
Test PHP 8.3 (#328)
fezfez Dec 3, 2023
3b49432
Fix New Years Day tests of South Korea.
stelgenhof Dec 3, 2023
8b224c2
Update changelog with all changes made since the last release.
stelgenhof Dec 3, 2023
84fd5fb
Fix link to user profile.
stelgenhof Dec 3, 2023
1c4ad1a
Drop PHP 7.4 support
stelgenhof Dec 3, 2023
c3de06d
Mexico Provider (#329)
gogl92 Dec 4, 2023
2d3ef24
Update changelog noting new Mexico provider.
stelgenhof Dec 4, 2023
940385d
Add PHP 8.3 version to other GitHub action workflows.
stelgenhof Dec 4, 2023
d8a136b
Fix formatting issues.
stelgenhof Dec 4, 2023
151a477
Avoid silent exceptions by throwing a new one from the previous excep…
stelgenhof Dec 4, 2023
3499515
Promote some properties to the constructor.
stelgenhof Dec 5, 2023
e46b9d3
Simplify function by using class constant and removing intermediate v…
stelgenhof Dec 5, 2023
ae7ac46
Ensure empty line exists after declare statement.
stelgenhof Dec 6, 2023
de1693d
style: Fix code style issues.
stelgenhof Dec 30, 2023
a1aed3d
Fix typos.
stelgenhof Dec 30, 2023
3f6855a
Add a few more PHPStan settings and fix indendation.
stelgenhof Dec 30, 2023
15998c9
style: Fix indendation
stelgenhof Dec 30, 2023
c7506f4
style: Simplify the code for selecting holidays before and after 2013…
stelgenhof Jan 2, 2024
6cc00f1
docs: Update the changelog to reflect changes for the 2.7.0 release
stelgenhof Jan 2, 2024
59e2bf6
refactor: Update copyright year
stelgenhof Jan 2, 2024
52c287b
style: Add a few more PHPStan settings and fix indendation
stelgenhof Jan 2, 2024
87f6285
style: Fix indendation
stelgenhof Jan 2, 2024
32f8dbd
style: Simplify the code for selecting holidays before and after 2013…
stelgenhof Jan 2, 2024
40dc08f
Merge branch 'develop' into release/2.7.0
stelgenhof Jan 2, 2024
5cbfbed
style: Fix naming of fully qualified class names
stelgenhof Jan 5, 2024
a9d7dd3
build: Remove unused infections Composer script entry
stelgenhof Jan 7, 2024
37d1215
Merge branch 'release/2.7.0'
stelgenhof Jan 7, 2024
9c8af7f
Merge tag '2.7.0' into develop
stelgenhof Jan 7, 2024
0dc328a
build: pin version of PHP CS Fixer to 3.46 as latest (3.47) release p…
stelgenhof Jan 16, 2024
30d56d6
refactor: update methods visibility in multiple Providers (#332)
attepulkkinen Jan 16, 2024
babcb46
build: bump package versions to latest working versions
stelgenhof Jan 26, 2024
ae0b17d
build: use shared PHP CS Fixer config
stelgenhof Jan 30, 2024
aaa8d41
style: fix code styling and formatting issues (#338)
stelgenhof Apr 10, 2024
97e60a9
test(portugal): fix issue with Republic Day failing for the restored …
stelgenhof Apr 10, 2024
b0314bf
test: increase memory_limit, to be able to run all tests on MacOS
fbett Apr 12, 2024
fc7869b
fix(slovakia): update rules for Anniversary of the Declaration of the…
hamrak Jun 11, 2024
8abe19f
feat: add Iran provider (#341)
thrashzone13 Jul 6, 2024
1c64419
fix(germany): Pentecost is not an official holiday - except in Brande…
fbett Jul 6, 2024
7afb8e4
refactor: remove astray var_dump use
stelgenhof Jul 8, 2024
a7a2e79
feat(germany): add Assumption of Mary holiday to Bavaria
stelgenhof Jul 8, 2024
f600b3f
style: fix code styling issues
stelgenhof Oct 21, 2024
029e80e
doc: Add initial git-cliff configuration
stelgenhof Oct 25, 2024
3af1427
feat(germany): Day of Liberation is celebrated in Berlin in 2025 too.
stelgenhof Oct 25, 2024
8dab110
docs: Sort the first time contributors alphabetically (a-z)
stelgenhof Oct 25, 2024
65cc0f2
chore: Exclude phpactor configuration file from Git
stelgenhof Oct 25, 2024
631fb0c
build: add dependabot configuration file
stelgenhof Oct 31, 2024
9589e85
build(deps): bump actions/checkout from 3 to 4 (#347)
dependabot[bot] Oct 31, 2024
df1f5e7
build(deps): bump actions/cache from 3 to 4 (#348)
dependabot[bot] Oct 31, 2024
fa2efa4
build(deps): bump actions/stale from 3.0.14 to 9.0.0 (#349)
dependabot[bot] Oct 31, 2024
2070bda
build: replace deprecated PHPstan configuration option
stelgenhof Nov 23, 2024
074fe08
style: fix code styling issues
stelgenhof Dec 13, 2024
5e7d67d
test: fix test for the previous function
stelgenhof Dec 13, 2024
46ec931
test(portugal): fix official holidays tests
stelgenhof Dec 13, 2024
96653c0
refactor: make the Holiday class implement the Stringable interface
stelgenhof Dec 23, 2024
9309835
build: upgrade PHPStan to v2.0
stelgenhof Dec 23, 2024
724aa44
test(portugal): fix official holidays tests
stelgenhof Dec 23, 2024
26c3455
docs: update copyright year
stelgenhof Jan 7, 2025
2af4d5c
docs: remove duplicate commit messages from the changelog
stelgenhof Jan 8, 2025
6f3ef4a
build(deps): bump actions/stale from 9.0.0 to 9.1.0 (#356)
dependabot[bot] Feb 11, 2025
2472243
docs: add announcement of new documentation site
stelgenhof Feb 11, 2025
4a73f56
build: bump package versions to latest working versions
stelgenhof Feb 16, 2025
141921c
build: drop PHP 8.0 support and add support for PHP 8.4
stelgenhof Feb 16, 2025
2bf10b5
build: report unused classes, etc by Psalm as informational
stelgenhof Feb 16, 2025
625e87d
Merge branch 'feature-supported-php' into develop
stelgenhof Feb 16, 2025
a8aacd0
Mark three AR holidays as official
c960657 Mar 9, 2025
23031aa
Changelog
c960657 Mar 10, 2025
0c5499e
refactor: fix use of concatenation with mixed types
stelgenhof Mar 10, 2025
306ec5a
build: disable enforcing the Override attribute by Psalm
stelgenhof Mar 10, 2025
36b0214
Merge remote-tracking branch 'origin/develop' into ar-official
c960657 Mar 11, 2025
cf35ee3
Update CHANGELOG.md
c960657 Mar 11, 2025
ab078ac
Merge pull request #360 from c960657/ar-official
stelgenhof Mar 11, 2025
07017a0
feat(brazil): Black Consciousness Day (#365)
c960657 Mar 13, 2025
63180cf
fix(czech-republic): Christmas Eve is official (#366)
c960657 Mar 13, 2025
10a6a8b
fix(portugal): Corpus Christi is official (#363)
c960657 Mar 13, 2025
7b881dc
fix(mexico): mark three holidays as official (#359)
c960657 Mar 14, 2025
8a4d904
feat(mexico): add Transmission of Federal Executive Power Holiday (#361)
c960657 Mar 14, 2025
b54f7f9
docs: fix parameter types that do not match signature
stelgenhof Mar 15, 2025
e769536
docs: clean up examples and correct spelling mistakes
stelgenhof Mar 15, 2025
75d684a
fix(mexico): mark several holidays as observance (#362)
c960657 Mar 15, 2025
bc00339
docs: move DCO fulltext to its own file
stelgenhof Mar 15, 2025
3cf0263
feat(lithuania): Mother's Day and Father's Day (#370)
c960657 Mar 16, 2025
bac2ccd
fix(ireland): Easter Sunday is not an official holiday (#373)
c960657 Mar 19, 2025
88a537a
feat(ireland): Saint Brigid's Day (#374)
c960657 Mar 19, 2025
1f12039
build: update maintainer information in composer.json
stelgenhof Mar 20, 2025
461f6a5
docs: include supported PHP versions with security updates
stelgenhof Mar 20, 2025
574476c
build: remove Phan static analysis tool
stelgenhof Mar 20, 2025
4fd1064
feat(poland): Christmas Eve is a public holiday from 2025 (#371)
c960657 Mar 20, 2025
93a9bbd
feat(argentina): Movable holidays (#367)
c960657 Mar 20, 2025
54649ec
fix(ukraine): Ukraine 2021-2023 changes (#369)
c960657 Mar 21, 2025
5544dc1
feat(latvia): Add Pentecost and Mother's Day (#368)
c960657 Mar 24, 2025
1829bdf
chore(readme): fix markdown syntax of headings
stelgenhof Mar 26, 2025
9335aaa
chore(readme): remove newline at file end
stelgenhof Apr 2, 2025
6bcb684
fix(ireland): New Year's Day on a Saturday also gives a substitute ho…
c960657 Apr 3, 2025
6d2d54d
fix(scotland): Easter Monday is not a bank holiday (#372)
c960657 Apr 7, 2025
cc9f39f
refactor(south korea): simplify code by using early returns
stelgenhof Apr 8, 2025
7938b80
build: remove phpinsights config
stelgenhof Apr 8, 2025
1e92779
chore(composer): bump dependencies versions
stelgenhof Apr 15, 2025
077c3f1
feat: add Bulgaria provider
stelgenhof Apr 29, 2025
37628ea
chore(readme): remove new documentation site announcement
stelgenhof Apr 30, 2025
08f3260
feat(canada): Nunavut Day for the Nunavut province
stelgenhof Apr 30, 2025
2adab2c
chore(changelog): update git-cliff config
stelgenhof May 9, 2025
c747552
build: bump composer package versions to latest installed versions
stelgenhof Jun 8, 2025
4625072
fix(brazil): add passing $this->locale for calculateProclamationOfRep…
mtbossa Jul 8, 2025
1fdabfd
chore(changelog): limit the number of commits
stelgenhof Jul 13, 2025
8a66777
chore(changelog): add changelog archive
stelgenhof Jul 13, 2025
882d047
chore(changelog): include git-cliff ignore file
stelgenhof Jul 13, 2025
cc07874
chore(release): prepare for 2.8.0
stelgenhof Jul 13, 2025
94903d0
chore(composer): update dependencies
stelgenhof Jul 14, 2025
069da33
chore(changelog): remove versions prior to 2.8.0
stelgenhof Jul 14, 2025
ac2614c
doc: update list of supported versions
stelgenhof Jul 14, 2025
be5e880
build(deps): bump actions/checkout from 4 to 5 (#383)
dependabot[bot] Aug 12, 2025
5cd2c11
feat(new zealand): Add Matariki public holiday (#378)
timeshifting Aug 27, 2025
bbe464a
feat: Add New York Stock Exchange (NYSE) provider (#384)
mgwebgroup Sep 1, 2025
8116887
fix: typo
stelgenhof Sep 1, 2025
56e4cc6
build(deps): bump actions/stale from 9.1.0 to 10.0.0 (#385)
dependabot[bot] Sep 8, 2025
fd8a630
fix(new zealand): add missing namespace in the MatarikiTest
stelgenhof Sep 20, 2025
e486b6e
build(deps): bump actions/stale from 10.0.0 to 10.1.0 (#386)
dependabot[bot] Oct 7, 2025
3fee43e
chore(changelog): update git-cliff config
stelgenhof Oct 7, 2025
e59894c
feat: Add Slovenia holiday provider (#387)
soukicz Nov 6, 2025
7fda9e6
perf: fix needless sorting on every holiday insert
stelgenhof Nov 6, 2025
637a3ca
perf: optimize filter count()
stelgenhof Nov 6, 2025
6932624
feat(slovakia): Slovak State Consolidation Package for 2025 (#389)
hamrak Nov 14, 2025
487bd92
refactor: use strict comparison with equal types
stelgenhof Nov 14, 2025
656f044
test(slovakia): fix failing tests for the years 2025 and 2026
stelgenhof Nov 26, 2025
81bb7a3
build(deps): bump actions/checkout from 5 to 6 (#390)
dependabot[bot] Nov 26, 2025
4960a96
build: fix deprecated 'set-output' command
stelgenhof Nov 27, 2025
556e5c1
build: remove Psalm static analysis tool
stelgenhof Dec 7, 2025
1c7ef41
build: add support for PHP 8.5
stelgenhof Nov 27, 2025
cc553d0
doc: add requirements and installation/quick start sections
stelgenhof Dec 7, 2025
98b83d9
build(deps): bump actions/stale from 10.1.0 to 10.1.1 (#391)
dependabot[bot] Dec 8, 2025
1a5c206
build(deps): bump actions/cache from 4 to 5 (#392)
dependabot[bot] Dec 16, 2025
2756fa2
feat(netherlands): add new holiday-equivalent days 2026 till 2028 (#393)
Stollie Dec 24, 2025
654cf38
test(poland): fix Christmas Eve test
stelgenhof Dec 25, 2025
c324302
chore(changelog): replace simple typo message
stelgenhof Dec 27, 2025
9f206ae
chore(changelog): update git-cliff config
stelgenhof Dec 29, 2025
36005a0
chore(release): prepare for 2.9.0
stelgenhof Dec 29, 2025
871f4bc
doc: update list of supported versions
stelgenhof Dec 29, 2025
5f2ef40
build: drop PHP 8.1 support
stelgenhof Jan 15, 2026
f5b9b0d
docs: update copyright year
stelgenhof Jan 15, 2026
5b0aae9
chore(changelog): update changelog
stelgenhof Jan 19, 2026
b9b26a7
chore(release): prepare for 2.10.0
stelgenhof Jan 22, 2026
7634562
style(netherlands): use strict comparison operators
stelgenhof Feb 2, 2026
3d4d504
chore(readme): remove astray plus character
stelgenhof Feb 2, 2026
fb2959d
feat: Add "Czechia" provider as a short form of "Czech Republic" (#397)
ppaulis Feb 6, 2026
fb8b847
build(deps): bump actions/stale from 10.1.1 to 10.2.0 (#398)
dependabot[bot] Feb 23, 2026
5bf0489
build: add AGENTS.md file
stelgenhof Feb 27, 2026
013d4ed
refactor(test): add context to base assertion failure messages
stelgenhof Mar 1, 2026
7d57fac
refactor(test): tighten default range for random year generator
stelgenhof Mar 1, 2026
196aa76
refactor(test): add context to base assertion failure messages
stelgenhof Mar 1, 2026
333e3a4
test(nyse): fix tests for NYSE provider
stelgenhof Mar 1, 2026
d25785c
feat: Add Andorra holiday provider
stelgenhof Mar 1, 2026
9f80471
refactor: remove redundant initialize interface method
stelgenhof Mar 1, 2026
50a40ac
refactor: remove deprecated isHolidayNameNotEmpty method
stelgenhof Mar 1, 2026
615e47b
refactor: remove unnecessary sorting on getHoliday
stelgenhof Mar 1, 2026
b931ea2
refactor: add key validation to removeHoliday
stelgenhof Mar 1, 2026
4e03407
refactor: add sorting to getHolidayNames
stelgenhof Mar 1, 2026
00dc2b1
test(spain): fix Extremadura test
stelgenhof Mar 2, 2026
85887db
style: fix code styling issue
stelgenhof Mar 2, 2026
7e8898a
test(south korea): fix twoDaysLaterNewYearsDay test
stelgenhof Mar 3, 2026
74ac4d8
test(slovakia): fix excluded years in data providers
stelgenhof Mar 3, 2026
073f78e
test(united kingdom): fix year boundary and test conditions
stelgenhof Mar 4, 2026
b18f94f
build: increase PHPStan analysis level to 8
stelgenhof Mar 4, 2026
fdc4d95
build(test): upgrade to PHPUnit 11
stelgenhof Mar 5, 2026
e1fc314
test(south korea): fix holiday type test of HangulDay
stelgenhof Mar 5, 2026
cb2ace9
feat: Add San Marino holiday provider
stelgenhof Mar 8, 2026
8138d8b
build(test): add missing provider test suites
stelgenhof Mar 8, 2026
885241b
test(spain): fix murciaDay minimum year in RegionOfMurcia test
stelgenhof Mar 8, 2026
bf2df69
docs: improve contribution guidelines
stelgenhof Mar 8, 2026
721d3a2
feat: add Venezuela holiday provider
stelgenhof Mar 10, 2026
a718a36
chore(changelog): update changelog
stelgenhof Mar 20, 2026
e24bc34
chore(release): prepare for 2.11.0
stelgenhof Mar 30, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 5 additions & 0 deletions .cliffignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# skip commits by their SHA1

# 2.8.0 release
074fe08b5e48cea705943f5d77d0fc8956aa3be8
4049db27e2dc197865aa857531d6baaa4e76be04
15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[*.json]
indent_size = 2

[*.{yml,yaml}]
indent_size = 2
9 changes: 9 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/.github export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/.php_cs export-ignore
/CHANGELOG.md export-ignore
/CODE_OF_CONDUCT.md export-ignore
/CONTRIBUTING.md export-ignore
/phpunit.xml.dist export-ignore
/tests export-ignore
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: "composer"
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
53 changes: 53 additions & 0 deletions .github/workflows/coding-standard.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: "Coding Standard"

on:
- push
- pull_request

jobs:
run:
name: "CI"
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: false
matrix:
operating-system: [ubuntu-latest, windows-latest]
php-versions: ["8.2", "8.3", "8.4", "8.5"]

steps:
- name: Set git to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf

- name: Checkout
uses: actions/checkout@v6

- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: intl

- name: Get Composer Cache Directory
id: composer-cache
shell: bash
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Cache Composer dependencies
uses: actions/cache@v5
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-

- name: Check Composer configuration
run: composer validate --strict

- name: Install dependencies
run: composer install --no-progress --prefer-dist --optimize-autoloader

- name: Check Code Style
run: vendor/bin/php-cs-fixer --diff --dry-run -v fix
env:
PHP_CS_FIXER_IGNORE_ENV: 1
30 changes: 30 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: "Stale issues and pull requests"

on:
schedule:
- cron: "0 0 * * *"

env:
DAYS_BEFORE_CLOSE: 10
DAYS_BEFORE_STALE: 90

jobs:
stale:

runs-on: "ubuntu-latest"

steps:
- name: "Prune stale issues and pull requests"
uses: "actions/stale@v10.2.0"
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
days-before-close: "${{ env.DAYS_BEFORE_CLOSE }}"
days-before-stale: "${{ env.DAYS_BEFORE_STALE }}"
stale-issue-label: "no-issue-activity"
stale-issue-message: |
Since this issue has not had any activity within the last ${{ env.DAYS_BEFORE_STALE }} days, I have marked it as stale.
I will close it if no further activity occurs within the next ${{ env.DAYS_BEFORE_CLOSE }} days.
stale-pr-label: "no-pr-activity"
stale-pr-message: |
Since this pull request has not had any activity within the last ${{ env.DAYS_BEFORE_STALE }} days, I have marked it as stale.
I will close it if no further activity occurs within the next ${{ env.DAYS_BEFORE_CLOSE }} days.
51 changes: 51 additions & 0 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: "Static analysis"

on:
- push
- pull_request

jobs:
run:
name: "CI"
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: false
matrix:
operating-system: [ubuntu-latest, windows-latest]
php-versions: ["8.2", "8.3", "8.4", "8.5"]

steps:
- name: Set git to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf

- name: Checkout
uses: actions/checkout@v6

- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: intl

- name: Get Composer Cache Directory
id: composer-cache
shell: bash
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Cache Composer dependencies
uses: actions/cache@v5
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-

- name: Check Composer configuration
run: composer validate --strict

- name: Install dependencies
run: composer install --no-progress --prefer-dist --optimize-autoloader

- name: Run static analysis - PHPStan
run: composer phpstan
51 changes: 51 additions & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: "Testing"

on:
- push
- pull_request

jobs:
run:
name: "CI"
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: false
matrix:
operating-system: [ubuntu-latest, windows-latest]
php-versions: ["8.2", "8.3", "8.4", "8.5"]

steps:
- name: Set git to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf

- name: Checkout
uses: actions/checkout@v6

- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: intl, calendar

- name: Get Composer Cache Directory
id: composer-cache
shell: bash
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Cache Composer dependencies
uses: actions/cache@v5
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-

- name: Check Composer configuration
run: composer validate --strict

- name: Install dependencies
run: composer install --no-progress --prefer-dist --optimize-autoloader

- name: Run unit tests
run: vendor/bin/phpunit
10 changes: 7 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
.DS_Store
.idea/
vendor
composer.lock
.php-cs-fixer.cache
.php_cs.cache
bin/_*
.phpactor.json
.phpunit.cache
.phpunit.result.cache
bin/_*
composer.lock
var
vendor
27 changes: 27 additions & 0 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php

declare(strict_types = 1);

/**
* This file is part of the 'Yasumi' package.
*
* The easy PHP Library for calculating holidays.
*
* Copyright (c) 2015 - 2026 AzuyaLabs
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @author Sacha Telgenhof <me at sachatelgenhof dot com>
*/

$config = new AzuyaLabs\PhpCsFixerConfig\Config('2015', null, 'Yasumi');
$config->getFinder()->in(__DIR__)->notPath('var');

$defaults = $config->getRules();

$config->setRules(array_merge($defaults, [
'php_unit_method_casing' => ['case' => 'camel_case'],
]));

return $config;
24 changes: 0 additions & 24 deletions .php_cs

This file was deleted.

23 changes: 0 additions & 23 deletions .scrutinizer.yml

This file was deleted.

12 changes: 0 additions & 12 deletions .styleci.yml

This file was deleted.

48 changes: 0 additions & 48 deletions .travis.yml

This file was deleted.

Loading