PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Marco Cesarato   PHP API Database   index.php   Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP API Database
Provide access to database records via REST API
Author: By
Last change: Reformatted code (php-cs-fixer)

Added code standard,
Added hooks git for code standard,
Fixed parse where on null elements
Date: 4 years ago
Size: 437 bytes
 

Contents

Class file image Download
<?php
/**
 * Index.
 *
 * @author Marco Cesarato <cesarato.developer@gmail.com>
 * @license http://opensource.org/licenses/gpl-3.0.html GNU Public License
 *
 * @see https://github.com/marcocesarato/Database-Web-API
 */
use marcocesarato\DatabaseAPI\API;

header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Methods: GET, POST, PATCH, PUT, DELETE');

include
__DIR__ . '/includes/loader.php';
API::run();