Skip to content

stndc/codeskate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Sponsors

CodeSkate

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.

ko-fi

Get Started

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", "");
}

License

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.