GithubHelp home page GithubHelp logo

felipens / mvc-php Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 48 KB

Padrão de arquitetura MVC desenvolvido em PHP

License: MIT License

CSS 0.36% PHP 90.52% HTML 9.12%
php php7 mvc mvc-framework mvc-framework-for-php architetural-patterns

mvc-php's Introduction

MVC - Model-view-controller

Model-view-controller (MVC), is a software architecture standard (not to be confused with a design pattern) that separates the representation of information from user interaction with it. The model consists of application data, business rules, logic, and functions. A view can be any output representation of the data, such as a table or a diagram. You can have multiple views of the same data, such as a bar chart for management and a tabular view for counters. The controller mediates the input, converting it into commands for the model or view. The core ideas behind MVC are code reuse and concept separation.

Model

  • Whenever you think of data manipulation, think of model. He is responsible for reading and writing data, as well as for his validations.

View

  • The user interaction layer. It just displays the data, being it by means of an html or xml.

Controller

  • Responsible for receiving all user requests. Its methods called actions are responsible for a page, controlling which model to use and which view will be shown to the user.

File Structure

  MVC
  |
  |--assets/
  |  |--css/
  |  |--img/
  |  |--js/
  |  
  |--controllers/
  |  |--all controllers/
  |
  |--lib/
  |  |--autoloader.php/
  |
  |--models/
  |  |--all models/
  |
  |--views/
  |  |--all views/
  |
  |--index.php/
  |

What is this repository?

It is a simple Lexico and Sintatico parser using the MVC standards in PHP. Project for learning MVC and POO standards in PHP.

All the files that are available in this repository are commented out to make it easier to understand what is happening in the code and so you can build your MVC architecture base to make it easier to organize your application.

License

This repository is licensed under the MIT License- see the file for details.

mvc-php's People

Contributors

felipens avatar

Stargazers

 avatar

Watchers

 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.