- Why use a framework?
- Introducing MVC-framework concepts
- Examining each framework's components
- Setting up the software
- Walking through sample apps built in each framework
- Comparing frameworks
Skill Level Intermediate
- Hi. I'm Drew Falkman. I've been developing web applications since before PHP even existed. PHP is a solid platform, but it's even more powerful when you're using one of the MVC frameworks. So I spend a lot of time researching and testing these frameworks. Frameworks are made up of both prescribed patterns to structure and organize your code and pre-built, pre-tested components that you can use to shorten your development time and to aid in code organization. I've worked on projects without frameworks, with overly complicated frameworks, and I realize that choosing a framework is probably one of the most important decisions you'll make about making your PHP application.
It will determine how long it takes to develop different aspects of your app. It will determine how well you can have multiple developers working on the same code base. And it will determine, ultimately, how you will code your app. In this course, I'll introduce you to the six most popular frameworks. We'll discuss the main concepts of each framework. We'll install them, and we'll have a look at what it's like to write code in each of them. I will even point you to the best places to go if you wanna learn more. When we've covered them all, we'll do a comparison to help you decide which framework is right for you and your project.
So sit back, put your thinking caps on, and let's take a look at these MVC framworks.
Q: When setting up Composer on my Windows machine, I'm asked to specify where php.exe is located. Where can I find it?
<div>A: Depending on how you installed PHP, the location can vary. If you're running WAMP on your Windows machine, the executable is located at: </div><div> </div><div><span style="font-family: Courier;">C:\wamp\bin\php\php5.5.12\php.exe </span></div><div>(This path will change slightly if you're running a different version number of PHP.)</div><div> </div><div>If you're running XAMPP on your Windows machine, the executable is located at:</div><div><span style="font-family: Courier;">C:\xampp\php\php.exe</span></div><div> </div>
Q: Why doesn't my folder structure in Laravel match what's on screen?
A: Version 5 of Laravel was released after the recording of this course. The core information in this course is still valid, but the Laravel's main files have been reorganized. For more details on how this reorganization has changed the structure of Laravel files, please see <a href="https://mattstauffer.co/blog/laravel-5.0-directory-structure-and-namespace" target="_blank" rel="nofollow">https://mattstauffer.co/<wbr>blog/laravel-5.0-directory-<wbr>structure-and-namespace</a>.
Q: Why isn't mcrypt prepped for PHP when I run the phpize command?
A: If you're having trouble setting up mcrypt, you may need to change the directory from which you run the phpize command. You'll want to navigate to the /ext/mcrypt/ folder within the folder for the version of PHP that you're running.