HassanZahirnia/laravel-package-ocean

NumberFormatter and intl Extension Related Errors

Closed this issue · 1 comments

Hi @HassanZahirnia,

I've discovered a couple of issues while testing your Laravel Package Ocean project. Even with all PHP extensions (including intl) properly installed and configured on my system, I'm encountering the following errors:

Issue 1

Endpoint: Base URL (/)
Error:

Class "NumberFormatter" not found

ss1

Issue 2

Endpoint: /admin/packages
Error:

The "intl" PHP extension is required to use the [format] method.

ss2

I've confirmed that my PHP environment has the intl extension properly installed and enabled:

  • PHP 8.2.24
  • All required extensions including intl are installed and configured
  • Laravel 11.29.0 running correctly

Could you please look into these issues? It seems there might be a missing service provider or class import that's preventing the NumberFormatter from being recognized properly.

Looking forward to your response. Let me know if you need any additional information!

Best regards

Hey, this is not an issue related to this project, but rather your dev environment.

Few contributors have forked and used this project with no issue, so I'm strongly positive this is on your side.

Please double check whether the intl extension is enabled on your system. Obviously there are many ways to do that. A quick google could answer your question.

Thanks.