The solution is to decouple the project name from the files.
This change also makes it easier to learn from existing projects. Instead of just looking at the code, you could deploy the game on your own studio project (e.g., hanabi code could be deployed to a new project quietminthanabi), allowing devs to make and test their own modifications to existing games.
- Change the file structure so the filenames are generic, like view.php instead of myproject.view.php
- Change the file contents so the class names are generic, like game_view_implementation instead of view_myproject_myproject
This change also makes it easier to learn from existing projects. Instead of just looking at the code, you could deploy the game on your own studio project (e.g., hanabi code could be deployed to a new project quietminthanabi), allowing devs to make and test their own modifications to existing games.