Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8950293
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T13:25:17+00:00 2026-06-15T13:25:17+00:00

When I use the PHP class Normalizer (e.g. \Normalizer::normalize($string, Normalizer::FORM_KD); ) in my class

  • 0

When I use the PHP class Normalizer (e.g. \Normalizer::normalize($string, Normalizer::FORM_KD);) in my class Text.php in custom namespace Utils, I get the following error:

Fatal error: Class 'Utils\Normalizer' not found 
in C:\xampp\htdocs\MyProject\src\Utils\text.php on line 380

My project runs under XAMPP with PHP 5.4.4. I know also that:

  • Normalizer should work since PHP 5 >= 5.3.0.
  • The extension php_intl.dll is enabled in my php.ini
    file.

What am I missing?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T13:25:18+00:00Added an answer on June 15, 2026 at 1:25 pm

    You forgot the leading backslash In Normalizer::FORM_KD when calling \Normalizer::normalize($string, Normalizer::FORM_KD) notice you only used one backslash in front of the class name, but not when you’re using the class constant.

    In PHP when you declare or import a namespace you are telling PHP to alias all of your function, class/interface, and constant names to your namespace.

    So the following code would issue a similar fatal error…

    <?php
    namespace foo;
    
    var_dump(DateTime::createFromFormat('Y-m-d','2012-12-06'));
    

    The above code would issue an error of PHP Fatal error: Class 'foo\DateTime' not found in /testfile.php on line 4

    To fix this make sure you always call those functions/classes/interfaces/constants which are not declared in your namespace/alias to the global namespace.

    <?php
    namespace foo;
    /* Notice the leading backslash infront of DateTime*/
    var_dump(\DateTime::createFromFormat('Y-m-d','2012-12-06'));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm receiving this PHP error while trying to use the Normalizer class, specifically the
I am getting this error in a PHP class... Fatal error: Can't use method
well I get this error trying to use php class FPDF: FPDF error: Some
I am attempting to use the following PHP class: <?php class Service { public
In PHP I know many people will use a class to SET and GET
I want to use PHP DOM to get all elements in a particular class.
I have a custom class named MathLib.php and I need to use some login
I have turned a normal PHP class into a library so I can use
For class, I would like a to use PHP MVC framework very similar to
How to use oAuth with PHP ? I can't install oauth class with pecl

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.