August 5th, 2024

Learn PHP the Right Way

The GitHub repository presents a YouTube series, "Learn PHP The Right Way," covering basic to advanced PHP concepts, including a project section for building a web application with user authentication and AJAX.

Read original articleLink Icon
Learn PHP the Right Way

The GitHub repository outlines a YouTube series titled "Learn PHP The Right Way," structured into three main sections: basic, intermediate, and advanced PHP concepts, along with a project section. The basic section covers fundamental topics such as installation, syntax, data types, control structures, functions, and error handling. The intermediate section focuses on object-oriented programming (OOP) in PHP, including classes, inheritance, interfaces, and database interactions using PDO. The advanced section delves into more complex subjects like testing, dependency injection, and frameworks such as Laravel.

Additionally, there is a project section named "Project Expennies," which involves building a web application featuring user authentication, AJAX requests, and file uploads. Notable lessons include basic PHP topics like installation and error handling, intermediate lessons on OOP principles and MVC introduction, and advanced lessons covering unit testing and email handling. The series aims to be comprehensive and is updated to align with the latest PHP version (8.1). Contributions are encouraged, allowing users to report typos or mistakes through pull requests. Each lesson is linked to its corresponding video, providing a structured learning path for PHP developers at various skill levels.

Related

From the Transistor to the Web Browser

From the Transistor to the Web Browser

A GitHub course titled "From the Transistor to the Web Browser" covers topics like transistors, hardware coding, processors, compilers, operating systems, and web browsers. It explores computing evolution from basics to complexities.

From the Transistor to the Web Browser, a rough outline for a 12 week course

From the Transistor to the Web Browser, a rough outline for a 12 week course

A GitHub course titled "From the Transistor to the Web Browser" covers topics like transistors, hardware coding, processors, compilers, operating systems, browsers, and real hardware execution. It provides a comprehensive understanding of the computer stack.

Brian Kernighan Reflects on "The Practice of Programming" [video]

Brian Kernighan Reflects on "The Practice of Programming" [video]

The YouTube video features author Brian Kernighan discussing "The Practice of Programming" book, programming language development, industry changes, memory management in C/C++, CSV parsing challenges, and computing resources impact on software engineering.

Free Introduction to Bash Scripting eBook

Free Introduction to Bash Scripting eBook

The GitHub guide on Bash scripting covers Bash structure, variables, loops, functions, and debugging. It offers downloads in dark mode, light mode, and ePub format. Additional resources include sponsors, a web page, video course, training, author details, PDF generation tool, and book cover creation tool. Links to the author's blog and other ebooks are provided for further exploration.

MIT: The Missing Semester of Your CS Education

MIT: The Missing Semester of Your CS Education

The Missing Semester of Your CS Education course focuses on essential computer science skills like command line usage and version control, running from January 13 to January 30, 2020, with resources available online.

Link Icon 9 comments
By @hu3 - 2 months
This playlist is a great overview.

I watched it myself and learned a thing or two despite also working with PHP professionally for years.

Highly recommend to also stop after each video and try to implement a quick example of what it is teaching.

By @muglug - 2 months
Passively watching YouTube is probably not the right way to learn any progamming language.
By @calvinmorrison - 2 months
PHP in 2024 is really nice. It's come a long way but is still very rock steady.
By @replwoacause - 2 months
I like PHP, and guess what? I also like PowerShell for web apps. I don't really care what anybody says—I can build fast in PowerShell. My clients are happy, it's simple to debug, and I can tap into .NET classes when necessary. PowerShell + HTML + Alpine = productivity. I'm not building the next Netflix or Amazon and the end-user isn't going to notice or care that I haven't selected Node and React.

I just can't get behind the complexity of build steps and compiling, all just to get a website online. It's crazy. The simplicity that PowerShell (and PHP) bring to this process can't be overlooked... so I like to beat on this drum whenever I get the chance.

Choose the tool that is right for the job, and PHP can be that tool in a surprising number of cases.

By @cletus - 2 months
It's disappointing that PHP still gets hate in 2024. PHP of 2024 isn't the PHP of 2004. As someone with a bunch of experience in Java, C, C++, Python, PHP, Hack, Javascript and a handful of others, PHP is (IMHO) almost a perfect language for serving HTTP requests because of these characteristics:

1. Essentially an HTML document is a valid PHP program. This is an excellent starting point for beginners;

2. PHP has a stateless API that means there's basically zero start up cost, unlike, say, loading libraries like you do in Java or even Python;

3. There's no threading within the context of a request. This is what you want 99.99% of the time. Hack extended this with cooperative async/await;

4. Because of (3) everything you allocate/use within a request context just gets thrown away. There's no persistent state (eg like Java's servlet model). Again, this is almost ideal;

5. Because of all the above, PHP hosting is incredibly cheap and accessible.

The two things I'd probably add to PHP come from Hack: a modern type system with nullable support and the collections (vec, map, set).

By @pluc - 2 months
...why take a title that's already quite famous in the industry?

https://phptherightway.com/

By @Alifatisk - 2 months
Take me back to the LAMP stack days, good times
By @djaouen - 2 months
The only reason to learn PHP in 2024 is if you are specifically targeting PHP jobs. Learning PHP is like learning Perl: suboptimal.

Edit: Jesu X. Chris, I didn’t mean to start a language war. Learn PHP if you want, I won’t stop you lol