PHP Classes

File: backend/index.php

Recommend this page to a friend!
  Classes of Rodrigo Faustino   PHP AJAX Login with JWT and Fetch API   backend/index.php   Download  
File: backend/index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP AJAX Login with JWT and Fetch API
Login users using AJAX to send JWT to a server API
Author: By
Last change:
Date: 5 months ago
Size: 203 bytes
 

Contents

Class file image Download
<?php
namespace App\Router;
require
"../vendor/autoload.php";
$db = new \App\Database\Connection();

if (
$db->isConnected()) {
    echo
"Conexão bem-sucedida!";
} else {
    echo
"Erro ao conectar.";
}