Skip to content

Version 1.1.0 - DB instanceof PHPDO

Compare
Choose a tag to compare
@turbopixel turbopixel released this 26 Apr 20:44
· 34 commits to master since this release
  • Add class DB(): Returns the current PHPDO instance (Example 1)
  • \PDOException instead of \Exception is used
  • update documentation
DB() Example
  • init.php
$PHPDO = new \PHPDO\PHPDO();
$PHPDO->connect("127.0.0.1", "database", "user", "password");
  • Authentification.php
$PHPDO = DB::getInstance();