CodeSkate is a framework written in PHP OOP under a minimalist concept. CodeSkate is not based on the MVC model, here the classes inherit the connection to the database and are complemented by a group of functions designed to optimize working time.
git clone https://github.com/stndc/codeskate.git
cd codeskate
functions.php
<?php
require_once 'helpers/functions.php';
config.php
You can configure two connections. One local and the other with the IP of the server you want.
<?php
if($_SERVER['SERVER_NAME'] == 'localhost'){
// Localhost
define("DB_HOST", "localhost");
define("DB_USER", "root");
define("DB_PASS", "");
define("DB_NAME", "dbname");
} else{
// DB Extern
define("DB_HOST", "");
define("DB_USER", "");
define("DB_PASS", "");
define("DB_NAME", "");
}
This work is licensed under a Creative Commons Attribution 4.0 International License.