aVadim483 / fast-excel-writer

Lightweight and very fast XLSX Excel Spreadsheet Writer in PHP
MIT License
163 stars 31 forks source link

Fatal error: Uncaught Error: Class "Locale" not found #52

Closed patrickteng closed 6 months ago

patrickteng commented 6 months ago

Fatal error: Uncaught Error: Class "Locale" not found in /Applications/XAMPP/xamppfiles/htdocs/project_name/vendor/avadim/fast-excel-writer/src/FastExcelWriter/Excel.php:295

After some fiddling around, I managed to make it work (temp directory was a pain to configure as well, the error message is always using "sys_get_temp_dir()" even when tempDir is overwrite. But nonetheless, it work after. The last error was the above, I managed to make it work by commenting out the lines to set Locale, but is it the intended result or is a file missing?

Thanks

Screenshot 2024-03-25 at 3 59 48 PM

aVadim483 commented 6 months ago

Locale is the class from php extension intl, you need enable this extension in php.ini