Code Monkey home page Code Monkey logo

mvcv2's Introduction

DIY MVC Inspired by Laravel

This DIY MVC (Model-View-Controller) framework is inspired by Laravel and aims to provide a simplified yet effective way to structure and organize your web application. It includes routing syntax and migrations for efficient development.

Getting Started

Prerequisites

  • PHP installed on your local machine (PHP 8.1x recommended).
  • Composer installed to manage dependencies.
  • MySQL or any other database of your choice.

Installation

  1. Clone or download this repository to your local machine.
  2. Run composer install to install the required dependencies.
  3. Configure your database settings in .env file.
  4. Run migrations to set up the database schema: php migrate.php.

Usage

  1. Define your routes in resources/web.php using the specified routing syntax.
  2. Create controllers in the app/controllers directory and define actions for handling routes.
  3. Implement models in the app/models/ directory to interact with the database.
  4. Create corresponding views in the resources/views/ directory for each controller action.
  5. Access your application through the defined routes.

Routing Syntax

The routing syntax is inspired by Laravel and follows a similar pattern:

Route::get('/path', [UserController::class, 'login']);
Route::post('/path', [UserController::class, 'login']);

mvcv2's People

Contributors

jaybayron9 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.