Zend certified PHP/Magento developer

I have a problem with my php-intl. I am working on a MacBook with macOS Catalina on it and I want to install a php extension named intl. I want to run it on XAMPP and I want to install it with home-brew, but when I come to sudo pecl install intl, it fails and I get an error. Please help me.