====== Development Environment ====== Traffic Elf is designed to run on a standard LAMP-style stack. ===== Requirements ===== * Apache or Nginx * PHP 8.x * MySQL 8.x * Modern browser (Chrome, Firefox) ----- ===== Recommended Folder Structure ===== /trafficelf /api clients.php campaigns.php /css app.css /js app.js index.html ---- ===== Database Connection (PHP) ===== Example reusable database connection file. PDO::ERRMODE_EXCEPTION, PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC, ]; $pdo = new PDO($dsn, $user, $pass, $options);