We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

New Locale class up for perusal

I've put up a locale class on BitBucket that uses best practices to determine a client's locale and return the "best" one based on a list of possible locales configured in the application. It can also do URL redirection if you include a call in your bootstrap file. It uses the intl extension and optionally the geoip extension to go figure stuff out.

Right now the README is pretty sparse, but I will be working on that over the weekend along with a composer.json file. In the meantime the code itself is pretty well documented. I will be happy to look over any issues that are submitted.

https://bitbucket.org/moderndeveloperllc/phalconlocale

More docs have been added, so it's a bit easier to understand what is going on.

This is now available on packagist.org, so can be used in composer:

https://packagist.org/packages/moderndeveloperllc/phalconlocale