The title speaks itself. So here is my project structure:
|src |Database |Core |MySQL.php |Support start.php |vendor comp
You need to include namespace when you are initializing a class:
$mysql = new Database\Core\MySQL();
or
use Database\Core\MySQL; $mysql = new MySQL();
See Using namespaces: Aliasing/Importing