If you expect this to be a major project, I would highly recommend using one of the many installed frameworks already existing as Symfony or Zend. You would:
- drastically reduce the amount of code you need to write
- avoid errors in your components.
- learning best practices
But if you insist on doing it yourself.
I plan to create a PHP file "core.php" that will be included at the beginning of each PHP SINGLE file in the project. This file will handle authentication and include basic features. Thoughts?
I cannot stress enough, "do not do this." There is a rule among experienced PHP developers that any project with a large core.php file that is a warning sign of poor development should be avoided.
Secondly, there is no need to reinvent the wheel when it comes to an abstract database; look at the MDB2 or Doctrine pear designs.
A large number of static classes is also a sign of poorly conceived development. Static classes should be used sparingly because they are difficult to verify and often not necessary.
xzyfer
source share