Giter VIP home page Giter VIP logo

lighty's Introduction

Overview

Lighty is a free open-source PHP & MVC based framework, created by Noura and tested/cleaned by Anass (aka: AXeL) for learning purpose. The current version is v.1.0 was launched on 8 May 2019 provides a very light reusable code which is going to be improved in the upcoming version, including the architecture and adding new features.

Installation

Requirements

  • PHP >= 7.2
  • Python 3.4 for Argon2i hashing
  • mod_rewrite enabled
  • Composer installed

Download

Clone $ git clone https://github.com/nouraellm/Lighty.git or download the zip folder.

Setup

if you used the the download button unzip the folder and then open it, you can use the following commands if you like terminal:

  $ cd Lighty-master  

Then run composer to install dependecies

  $/Lighty-master# composer install  

Now it's all done, you only need to create a database and change configurations in conf/Config.php to match your server's configuration, for example:

                        
 /*
  * Database Configuration
  */
  define('ENABLED', TRUE);
  define('HOST',      '127.0.0.1');
  define('USERNAME',  'root');
  define('PASSWORD',  '');
  define('DATABASE',  'framework');  
  
  

Architecture

Lighty is easy to use and understand, if you still have a doubt about how PHP/MVC works, you can use this framework to give you a push forward.

                                     ├── app
                                     │   ├── Controller.php
                                     │   ├── Core.php
                                     │   ├── Database.php
                                     │   ├── Errors.php
                                     │   ├── Model.php
                                     │   └── View.php
                                     ├── composer.json
                                     ├── conf
                                     │   ├── Config.php
                                     │   ├── Functions.php
                                     │   └── Routes.php
                                     ├── controllers
                                     │   └── HomeController.php
                                     ├── models
                                     │   └── Home.php
                                     ├── public
                                     │   ├── assets
                                     │   │   ├── css
                                     │   │   │   ├── bootstrap.min.css
                                     │   │   │   ├── prism.css
                                     │   │   │   └── styles.css
                                     │   │   ├── images
                                     │   │   │   ├── favicon.ico
                                     │   │   │   └── logo.png
                                     │   │   └── js
                                     │   │       ├── all.js
                                     │   │       ├── bootstrap.min.js
                                     │   │       ├── jquery-3.3.1.min.js
                                     │   │       ├── jquery.scrollTo.min.js
                                     │   │       ├── main.js
                                     │   │       ├── prism.js
                                     │   │       └── stickyfill.js
                                     │   └── index.php
                                     ├── vendor
                                     │   ├── autoload.php
                                     │   └── composer
                                     │       ├── autoload_classmap.php
                                     │       ├── autoload_namespaces.php
                                     │       ├── autoload_psr4.php
                                     │       ├── autoload_real.php
                                     │       ├── autoload_static.php
                                     │       ├── ClassLoader.php
                                     │       ├── installed.json
                                     │       └── LICENSE
                                     └── views
                                         ├── errors
                                         │   └── index.php
                                         ├── includes
                                         │   ├── Footer.php
                                         │   └── Header.php
                                         └── Welcome.php

Note

This project was made for learning purpose. Feel free to and contribute.

lighty's People

Contributors

nouraellm avatar axel-dev avatar mouadziani avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.