All Projects → ahegazy → php-mvc-skeleton

ahegazy / php-mvc-skeleton

Licence: other
A PHP OOP web application skeleton that uses MVC architectural pattern to create a basic application that contains login and multi language systems and can be used in any web project.

Programming Languages

PHP
23972 projects - #3 most used programming language
hack
652 projects

Projects that are alternatives of or similar to php-mvc-skeleton

UMVC
UMVC - Model-View-Controller Generator built for Unity
Stars: ✭ 36 (-21.74%)
Mutual labels:  mvc, mvc-pattern
app
Aplus Framework App Project
Stars: ✭ 338 (+634.78%)
Mutual labels:  mvc, skeleton
trac-nghiem-online
Xây dựng hệ thống trắc nghiệm online cho các trường THCS, THPT một cách nhanh chóng và dễ dàng. Không cần phải là lập trình viên
Stars: ✭ 64 (+39.13%)
Mutual labels:  mvc, oop
spe
A series of PHP8 examples based around a super simple MVC framework (WIP)
Stars: ✭ 14 (-69.57%)
Mutual labels:  mvc, oop
Pmanager
A project management system built using laravel. Watch full video here
Stars: ✭ 260 (+465.22%)
Mutual labels:  mvc, oop
softn-cms
Sistema de gestión de contenidos
Stars: ✭ 22 (-52.17%)
Mutual labels:  mvc, oop
spring-web-initializr
Spring Web Initializr is a library that helps you easily create Web Apps with Spring Boot.
Stars: ✭ 16 (-65.22%)
Mutual labels:  mvc, mvc-pattern
LMPHP
Multi-language management and support on the site.
Stars: ✭ 19 (-58.7%)
Mutual labels:  oop, multilanguague
miniPHP
A small, simple PHP MVC framework skeleton that encapsulates a lot of features surrounded with powerful security layers.
Stars: ✭ 147 (+219.57%)
Mutual labels:  mvc, php-mvc-skeleton
mvc
PHP MVC boilerplate with user authentication, basic security and MySQL CRUD operations.
Stars: ✭ 28 (-39.13%)
Mutual labels:  mvc, oop
estore
Electronic Store Application - A web based application developed using PHP and Driven by MySQL Database
Stars: ✭ 48 (+4.35%)
Mutual labels:  mvc, oop
Interviews
A list of fancy questions I've been asked during the interviews I had. Some of them I ask when interviewing people.
Stars: ✭ 140 (+204.35%)
Mutual labels:  mvc, oop
Laconia
🏺 ‎ A minimalist MVC framework.
Stars: ✭ 307 (+567.39%)
Mutual labels:  mvc, oop
Slim Born
Slim Framework 3 and 4 skeleton application has authentication MVC construction.
Stars: ✭ 179 (+289.13%)
Mutual labels:  mvc, skeleton
jet
Jet is a simple OOP, dynamically typed, functional language that runs on the Erlang virtual machine (BEAM). Jet's syntax is Ruby-like syntax.
Stars: ✭ 22 (-52.17%)
Mutual labels:  oop
Angular4-boilerplate-webpack2
Clean Angular Boilerplate with webapack 2
Stars: ✭ 17 (-63.04%)
Mutual labels:  skeleton
cactoos-matchers
Elegant object-oriented hamcrest matchers
Stars: ✭ 30 (-34.78%)
Mutual labels:  oop
TwistPHP
A fresh, new PHP MVC framework built from the ground up
Stars: ✭ 27 (-41.3%)
Mutual labels:  mvc
vue-apple-signin
A simple Vue plugin to include an Apple sign-in button into your web app.
Stars: ✭ 19 (-58.7%)
Mutual labels:  login
insta-story
🤖 📷 Instagram Story Downloader Anonymously - PHP
Stars: ✭ 25 (-45.65%)
Mutual labels:  oop

PHP-MVC SKELETON

A PHP OOP web application skeleton that uses MVC architectural pattern to create a basic application that contains login and multi language systems and can be used in any web project.

  • It was created to get rid of the trouble of creating a MVC script from scratch

Description

Basic php skeleton of an MVC (model-view-controller) web application that you can use to build your application upon it or to understand the MVC pattern.

Features

  1. MVC based application
  2. MYSQL database connection
  3. multi language
  4. login system
  5. session store and recovery

How it works

It's a normal MVC application so it consists of models/views/controllers

  1. First it runs the initiation script init.php
    • The initiation script loads main scripts and confinguration files.
  2. Then a new app instance is created and the url is parsed in the App.php class
  3. In App.php class the requested language is set and the requested controller is loaded ex: home.php controller.
  4. A controller class instance is created and the requested method called
  5. The method calls the model method and in the model loading method we check for login Controller model
    • If the user is loggedin it'll get the requested model, else it'll redirect to login
  6. The controller method then calls the view method and in the view loading method we load the language files and the page layout. Controller view

Directory structure

  1. app: Application backend

    • config: configuration files
    • core: core scripts called in app initiation
    • Helper: helper function such as common used and database functions
    • languages: languages contain directories with language code
    • controllers: application controllers
    • models: application models
    • views: application views
    • init.php: initiation script that includes necessary scripts.
    • .htaccess: htaccess file to prevent entering this area for users
  2. public

    • index.php: creates an app instance.
    • .htaccess: htaccess to control the url writing
    • css: contains css style files.
    • js: contains javascript files.

How to use it

  • Just clone the repo and start building upon the provided skeleton

Finally

I'll be pleased to see contribution send a pull request, if you have any questio you can open an issue.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].