How to use namespace? in MVC when PHP Namespace is not in use with frames

I am a rookie, and now I have a problem. In the file file1.php, how to use the namespace in file2.php? In the absence of a framework, use the MVC pattern.

<?php
//file1.php
namespace file1;
class File1
{
    public function Test()
    {
        echo "file1.php";
    }
}
?>

<?php
//file2.php
namespace file2;
class File2
{
    public function Test2()
    {
        echo "file2.php";
    }
}

now I want to use the Test method in file2.php. What should I do with a namespace? Does it have to be require_one file1.php? How is it implemented in the framework? Why can you write use file1;? directly in file2.php when you use it in other places?

Php
Dec.30,2021

require_one file1.php;
use file1\File1;

the framework uses spl_autoload_register

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eb23cf-46e3c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eb23cf-46e3c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?