Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
PHP
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
DB
View
.gitignore
Config.php
Controller.php
Error.php
Input.php
Model.php
Module.php
ObjectCovertor.php
README.md
Record.php
Session.php
SocialUser.php
System.php
TextConvertor.php
TextFilter.php
User.php
View.php
bootstrap.php

README.md

Gratheon Core platform

A simple MVC framework with composer support.
Core platform by Gratheon is licensed under a Creative Commons Attribution 3.0 Unported License. Creative Commons License

Installation

1.Add reference to this repo in your composer.json and run composer update 2.Add SiteConfig.php with some configuration. DB is optional.

define('sys_url', "https://example.com/myapp/");
define('sys_url_rel', "/myapp/");

class SiteConfig extends Gratheon\Core\Config {
    public $routes = array(
        'front'  => '/MyCompany/MyAppPackage',
        'content'=> '/Gratheon/CMS'
    );
    
  /*public $db = array(
        0 => array(
            'engine'    => 'Mysqli', //you can use PDO too
            'server'    => 'localhost',
            'database'  => 'yourMysqlDB',
            'login'     => 'root',
            'password'  => ''
        )
    );*/
}

3.Add index.php file with:

define('sys_root', realpath(dirname(__FILE__)) . DIRECTORY_SEPARATOR);
require 'vendor/autoload.php';
require_once('SiteConfig.php');
require_once('vendor/Gratheon/Core/bootstrap.php');
Something went wrong with that request. Please try again.