[x] Have you checked to ensure there aren't other open Pull Requests for the same country?
Create a new class in the Countries directory. It should extend the Country class.
Add a test for the new country in the tests directory.
Run the tests so a snapshot gets created.
Verify the result in the newly created snapshot is correct.
Changes
Added a new Taiwan class in the Holidays directory.
Implemented holiday calculations specific to Taiwan, including both fixed-date holidays and those that require lunar calendar calculations.
Used the ext-intl extension and IntlDateFormatter for accurate lunar calendar calculations, ensuring that holidays based on the lunar calendar are correctly determined.
Additional Notes
The ext-intl extension is required for this addition. It is referenced in the composer.json file.
Contributing a new country ?
Changes
Taiwan
class in theHolidays
directory.ext-intl
extension andIntlDateFormatter
for accurate lunar calendar calculations, ensuring that holidays based on the lunar calendar are correctly determined.Additional Notes
ext-intl
extension is required for this addition. It is referenced in thecomposer.json
file.References