Skip to content
/ KylaFw Public

Kyla Framework. Framework for Kyla AI Project.

License

Notifications You must be signed in to change notification settings

ppabcd/KylaFw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kyla Framework

Kyla framework is a framework for the Kyla AI project

Getting started

Prerequisites

Install Composer to manage all of the PHP dependencies, and git to clone and manage the repository.

Install

  1. Clone the project with git with the next command:
$ git clone https://github.com/ppabcd/KylaFw.git
$ cd KylaFw
  1. Once the repository has been cloned in your environment install PHP dependencies with Composer. (The next command line might not work if the environment variables are not properly configured)
$ composer install

Database Setup

Edit connection.php in Config Folder with your configuration.

<?php
return [
  'host' => 'HOST',
  'username' => 'USERNAME',
  'password' => 'PASSWORD',
  'database' => 'DATABASE'
];

If there is no databse KylaFW will automatically create a new database; just reload the project page and the databse should be created.

How To Use

In this framework will be routing automatically using URL Segment. You must configurare segments. You can config the segments in app.php file in Bootstrap Folder. If you create this project in a subfolder, edit the $class_data and $method_data variables to acount for the subfolder

Examples (in Bootstrap/app.php):
Focus on the index in SEGMENT, if the the project is in the root of your domain then the indexes must be 0 and 1.

$class_data = isset(SEGMENT[0]) ? SEGMENT[0] : 'home'; // if in root domain
$method_data = isset(SEGMENT[1]) ? SEGMENT[1] : 'index';

If the project is in a subfolder then the indexes should be 0+[subfolder depth], the next example is if the project is one folder inside of the root domain (e.g website.com/path/folder)

$class_data = isset(SEGMENT[1]) ? SEGMENT[1] : 'home'; // if in sub folder
$method_data = isset(SEGMENT[2]) ? SEGMENT[2] : 'index';

License

Released under MIT License - see the LICENSE for details.

About

Kyla Framework. Framework for Kyla AI Project.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages