Hey Halls, if this is in the wrong place, then moderate.
Frameworks! Those of us trying to create any sort of web application, whether it be a game, php/mySQL will encounter a framework or two. Who out there have used them? What have you found out about the ones you have used? Recommendations? Where would a beginner get started?
Discuss!
Do Frameworks Fit Here?
- Sharlenwar
- Posts: 523
- Joined: Mon May 28, 2012 7:14 pm
Do Frameworks Fit Here?
Deep within the Void of Quasion, a creation.
**My Corner of the Web**
***NEW***GrindFest - My own PHP/MySQL game!
Sharlenwar's Adventures
Torn-City - Massively multiplayer online text based RPG
**My Corner of the Web**
***NEW***GrindFest - My own PHP/MySQL game!
Sharlenwar's Adventures
Torn-City - Massively multiplayer online text based RPG
- hallsofvallhalla
- Site Admin
- Posts: 12023
- Joined: Wed Apr 22, 2009 11:29 pm
Re: Do Frameworks Fit Here?
Yep perfect place. Was wanting a place to talk about frameworks, libraries, ect..
As far as framework for PHP/SQL I have not dabbled in that in some time so am not caught up with current ones.
As far as framework for PHP/SQL I have not dabbled in that in some time so am not caught up with current ones.
Re: Do Frameworks Fit Here?
As far as PHP frameworks, I'm familiar with Symfony, Laravel and Zend. I got started on Codeigniter and CakePHP, but honestly could no longer recommend those considering the power available in other frameworks.
Out of the three above, I'd say Laravel is the best mix of ease of use and feature set. All three can be fairly complex to get into, but the dependency injection component in each of them helps you to create independently testable classes, which can really benefit you in the long run. They also integrate with composer, allowing you to install modules for flexibility. A programmer's goal is not to write code - it's to solve problems, the solution to which usually lies in code. But most of the time somebody has already addressed your problem suitably, and package managers like composer help you to avoid writing code when you really don't need to be.
A lot of these frameworks are designed to mimic Rails or Sinatra somewhat, but they don't have quite as much "magic" as Rails.
My recommendation will go to either Laravel, whose ORM I like very much, or Symfony 2 for flexibility. As mentioned, these can have a pretty steep learning curve, but the benefits outweigh the negatives IMO.
If you wanted to get started with Laravel, it's going to be as easy as following the instructions on their site: http://laravel.com/docs/quick#installation
You should first install Composer ( https://getcomposer.org/doc/00-intro.md ... on-windows ), as you're going to need it anyway, and msysgit (if on Windows) or git if on Linux. Then install Laravel using composer, which functions a lot like NPM or gem.
Out of the three above, I'd say Laravel is the best mix of ease of use and feature set. All three can be fairly complex to get into, but the dependency injection component in each of them helps you to create independently testable classes, which can really benefit you in the long run. They also integrate with composer, allowing you to install modules for flexibility. A programmer's goal is not to write code - it's to solve problems, the solution to which usually lies in code. But most of the time somebody has already addressed your problem suitably, and package managers like composer help you to avoid writing code when you really don't need to be.
A lot of these frameworks are designed to mimic Rails or Sinatra somewhat, but they don't have quite as much "magic" as Rails.
My recommendation will go to either Laravel, whose ORM I like very much, or Symfony 2 for flexibility. As mentioned, these can have a pretty steep learning curve, but the benefits outweigh the negatives IMO.
If you wanted to get started with Laravel, it's going to be as easy as following the instructions on their site: http://laravel.com/docs/quick#installation
You should first install Composer ( https://getcomposer.org/doc/00-intro.md ... on-windows ), as you're going to need it anyway, and msysgit (if on Windows) or git if on Linux. Then install Laravel using composer, which functions a lot like NPM or gem.
w00t
- vitinho444
- Posts: 2819
- Joined: Mon Mar 21, 2011 4:54 pm
Re: Do Frameworks Fit Here?
Scratch for the win!!
the old
the old
Code: Select all
<?php
function DoStuff($stuff)
{
$doingstuff ++;
return $stuff;
}
if($_GET["action"] == "doStuff")
DoStuff($_GET["stuff"]);
?>
Re: Do Frameworks Fit Here?
Yii for PHP.
MVC 4.5 for Microsoft.
MVC 4.5 for Microsoft.
Fighting for peace is declaring war on war. If you want peace be peaceful.
- Jackolantern
- Posts: 10891
- Joined: Wed Jul 01, 2009 11:00 pm
Re: Do Frameworks Fit Here?
ASP.NET MVC is at v5.2 now. 4.5 was Web Forms and .NET, but not MVCChris wrote:Yii for PHP.
MVC 4.5 for Microsoft.
For PHP I like Yii, Laravel and FuelPHP. All 3 share a similar philosophy IMHO.
CodeIgniter can be a good place to start to feel comfortable with MVC frameworks since it is by far the easiest to pick up and learn. However, its practice of clinging on to dinosaur versions of PHP has killed the momentum CI had a few years back, and people are jumping ship from it left-to-right.
It is still a good framework to learn with, though.
The indelible lord of tl;dr