use auto loader

For next time don’t use require_once in the file, except require_once
for core.php, and if you have new library / helpers, just added in
core.php function autoloadLibrary