Trying to Learn MVC for Laravel but kind of not sold on it , can someone explain/help?

This page summarizes the projects mentioned and recommended in the original post on /r/PHPhelp

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • adr

    Action-Domain-Responder: a web-specific alternative to Model-View-Controller.

  • Others have covered MVC, but a somewhat similar alternative is ADR, which more API-centric in nature as opposed to a dynamic website where you are primarily returning HTML.

  • no-framework-tutorial

    A small tutorial to show how to create a PHP application without a framework.

  • Or you can also build your own by picking and choosing libraries. Follow the No Framework tutorial for one. Symfony has many components to choose. Laravel too, with some work. Add PHP-DI (Dependency Injection Container), FastRoute (router) or something similar, and you have your own version of Slim.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • php-mvc

    A simple PHP model-view-controller framework, built step-by-step as part of the "Write PHP like a pro: build an MVC framework from scratch" course on Udemy.

  • If you still want to go the custom route, though, Dave Hollingworth has some example code from his PHP MVC Udemy course that I found extremely helpful and was some of the first material that I used to start learning new stuff. Basically, you set up the server, or htaccess, to restructure the URL query string, then use regular expressions to parse it and get the values.

  • clean-code-php

    :bathtub: Clean Code concepts adapted for PHP

  • - Clean Code PHP - Examples of good and bad habits/standards to use in your code

  • Klein

    A fast & flexible router

  • - Klein

  • learning-oop-in-php

    A collection of resources to learn object-oriented programming and related concepts for PHP developers.

  • - Learning OOP in PHP - huge list of resources for learning

  • Fast Route

    Fast request router for PHP

  • - FastRoute

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • routing

    Maps an HTTP request to a set of configuration variables

  • - Symfony's Router

  • dispatch

    a tiny library for quick and easy PHP apps (by noodlehaus)

  • You can also use this for a simpler API to help you get started- https://github.com/noodlehaus/dispatch

  • slim4-skeleton

    A Slim 4 Skeleton

  • Try Slim again. The setup may be too much, but the concept is the same. Look at the first application or any of the skeleton apps to help (https://github.com/odan/slim4-skeleton for one).

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts