Skip to content

SEARCAPhil/sdft_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dts_api

Restful API for DTS


Server Requirements

PHP version 5.6 or newer is recommended.

It should work on 5.3.7 as well, but we strongly advise you NOT to run such old versions of PHP, because of potential security and performance issues, as well as missing features. You will also need to install composer for installing dependencies.


Dependency

For all commands available please visit their website

$ composer install

Database Configuration

Change database configuration in config/database.php

Look for the lines below and change it with your server's configuration

<?php
/*DATABASE CONFIGURATION*/

$_host = '127.0.0.1';
$_username = 'root';
$_password = '';
$_dbname = 'sdft';

$db = new \PDO('mysql:host='.$_host.';dbname='.$_dbname.';',$_username);
$db->setAttribute(\PDO::ATTR_ERRMODE,\PDO::ERRMODE_EXCEPTION);

?>

Replace the $db value if $_password is required
$db = new \PDO('mysql:host='.$_host.';dbname='.$_dbname.';',$_username, $password);

About

Restful API for SDFT_CORDOVA_APP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages