C#

Learning C# and .NET from a Laravel/PHP background — the fundamentals, mapped to what you already know.

~1 min read updated Jul 19, 2026 Dev
  • #csharp
  • #dotnet
  • #basics

Notes for picking up C# with a Laravel/PHP mental model already in place. The language is different, but the shapes are familiar — classes, services, models, namespaces. Most of the work is learning what each Laravel idea is called over here.

Coming from Laravel, the fastest way in is translation, not memorisation. When you hit something new, ask "what's the Laravel equivalent?" — a service is still a service, composer is dotnet/NuGet, Collections are LINQ, Eloquent is EF Core.

Start here

The mental model

C# is compiled and statically typed — the opposite of PHP on both counts. You declare types up front, the compiler checks them before the program runs, and you build/run with the dotnet CLI instead of pointing a web server at a folder. That feels heavier at first, then pays off: the editor knows exactly what everything is, so autocomplete and refactoring are excellent.

In this section

Related notes