All Projects → PatrickLouys → No Framework Tutorial

PatrickLouys / No Framework Tutorial

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

Projects that are alternatives of or similar to No Framework Tutorial

Solid
Книга о принципах объектно-ориентированного дизайна SOLID
Stars: ✭ 280 (-79.37%)
Mutual labels:  solid, tutorial, dependency-injection
movie-booking
An example for booking movie seat, combined of Android Data Binding, State Design Pattern and Multibinding + Autofactory. iOS version is: https://github.com/lizhiquan/MovieBooking
Stars: ✭ 80 (-94.1%)
Mutual labels:  dependency-injection, clean-code
solid
Solid Android components
Stars: ✭ 33 (-97.57%)
Mutual labels:  solid, dependency-injection
Discord bot.py
🍺 A simple discord bot that helps you getting started within discord.py
Stars: ✭ 313 (-76.93%)
Mutual labels:  tutorial, clean-code
Dotnet New Caju
Learn Clean Architecture with .NET Core 3.0 🔥
Stars: ✭ 228 (-83.2%)
Mutual labels:  solid, clean-code
clean architecture typescript example
This repository provides an implementation (or at least an attempt) of Uncle Bob's Clean Architecture with Typescript.
Stars: ✭ 78 (-94.25%)
Mutual labels:  solid, clean-code
aspnet-mvc5-starter-template
Asp.Net MVC 5 Starter Kit is a S.O.L.I.D, clean and globalized template with all the necessary boilerplate, ready to go.
Stars: ✭ 39 (-97.13%)
Mutual labels:  solid, dependency-injection
Android Modular Architecture
📚 Sample Android Components Architecture on a modular word focused on the scalability, testability and maintainability written in Kotlin, following best practices using Jetpack.
Stars: ✭ 2,048 (+50.92%)
Mutual labels:  solid, clean-code
Clean Code Typescript
Clean Code concepts adapted for TypeScript
Stars: ✭ 5,075 (+273.99%)
Mutual labels:  solid, clean-code
Service Pattern Go
Simple clean Go REST API architecture with dependency injection and mocking example, following SOLID principles.
Stars: ✭ 449 (-66.91%)
Mutual labels:  solid, dependency-injection
Android Dagger2 Example
This project implements the dagger 2 in android for dependency injection
Stars: ✭ 453 (-66.62%)
Mutual labels:  dependency-injection, clean-code
Solid Tutorial Intro
Introductory tutorial to Solid
Stars: ✭ 177 (-86.96%)
Mutual labels:  solid, tutorial
Architecture
.NET 6, ASP.NET Core 6, Entity Framework Core 6, C# 10, Angular 13, Clean Code, SOLID, DDD.
Stars: ✭ 2,285 (+68.39%)
Mutual labels:  solid, clean-code
djburger
Framework for safe and maintainable web-projects.
Stars: ✭ 75 (-94.47%)
Mutual labels:  solid, clean-code
Coroutines Flows Modularised
Clean Architecture Modular Project: MVVM + Coroutines+ Flows + Dagger2 + LiveData + UnitTests + UITests + MockWebServer
Stars: ✭ 166 (-87.77%)
Mutual labels:  solid, clean-code
Zenject Hero
Zenject 7 - Game example (WIP)
Stars: ✭ 44 (-96.76%)
Mutual labels:  solid, dependency-injection
Ios Learning Materials
📚Curated list of articles, web-resources, tutorials and code repositories that may help you dig a little bit deeper into iOS [and Apple Platforms].
Stars: ✭ 1,380 (+1.69%)
Mutual labels:  tutorial, clean-code
Php Programming Best Practices
Referencia para los desarrolladores de Tiendanube y para la comunidad de PHP.
Stars: ✭ 138 (-89.83%)
Mutual labels:  solid, clean-code
Clean Code Dotnet
🛁 Clean Code concepts and tools adapted for .NET
Stars: ✭ 4,425 (+226.09%)
Mutual labels:  solid, clean-code
Clean Ts Api
API em NodeJs usando Typescript, TDD, Clean Architecture, Design Patterns e SOLID principles
Stars: ✭ 619 (-54.38%)
Mutual labels:  solid, clean-code

Because this tutorial was so well-received, it inspired me to write a book. The book is a much more up to date version of this tutorial and covers a lot more. Click the link below to check it out (there is also a sample chapter available).

Professional PHP: Building maintainable and secure applications

The tutorial is still available in it's original form below.

Create a PHP application without a framework

Introduction

If you are new to the language, this tutorial is not for you. This tutorial is aimed at people who have grasped the basics of PHP and know a little bit about object-oriented programming.

You should have at least heard of SOLID. If you are not familiar with it, now would be a good time to familiarize yourself with the principles before you start with the tutorial.

I saw a lot of people coming into the Stack Overflow PHP chatroom and asking if framework X is any good. Most of the time the answer was that they should just use PHP and not a framework to build their application. But many are overwhelmed by this and don't know where to start.

So my goal with this is to provide an easy resource that people can be pointed to. In most cases a framework does not make sense and writing an application from scratch with the help of some third party packages is much, much easier than some people think.

This tutorial was written for PHP 7.0 or newer versions. If you are using an older version, please upgrade it before you start. I recommend that you use the current stable version.

So let's get started right away with the first part.

Parts

  1. Front Controller
  2. Composer
  3. Error Handler
  4. HTTP
  5. Router
  6. Dispatching to a Class
  7. Inversion of Control
  8. Dependency Injector
  9. Templating
  10. Dynamic Pages
  11. Page Menu
  12. Frontend
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].