TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Laravel : A New PHP Framework

92 pointsby rshettyalmost 13 years ago

22 comments

markessienalmost 13 years ago
There needs to be a quick overview of the syntax or how it works. I don't want to read pages of documentation just to figure out how it looks like.
评论 #4029756 未加载
评论 #4030276 未加载
评论 #4029575 未加载
newbie12almost 13 years ago
I respect the work, but the samples look a lot like Symfony2, which has a huge community behind it. Sf2 has a learning curve but I'm not sure what problem Laravel solves that Sf2 (or its simplified kid brother Silex) doesn't already solve.
评论 #4029920 未加载
评论 #4030041 未加载
评论 #4030705 未加载
评论 #4032049 未加载
评论 #4030226 未加载
jamesmossalmost 13 years ago
Something I find really strange/frustrating with a few recent frameworks (Laravel included) is their overuse of static methods. You have these singletons floating through the framework which maintain state (Request, Session, Logging etc) but you can only ever access them statically. Seems like bad practise to me.<p>What if you want to swap out Request for a mock during unit testing; since you've hard coded the Request class throughout your controllers how would you switch to a RequestMock class? What happens if you were dealing with more than one request (e.g in a HMVC setup).
corfordalmost 13 years ago
It looks interesting enough but a few things put me off:<p>1). Rolling its own ORM rather than using Doctrine.<p>2). YATL (yet another templating language). I wish the PHP world would just standardise on Twig.<p>3). Localisation seems a bit basic at the moment and it's a shame you have to define messages in a PHP array rather than something more portable like YAML.<p>4). Would have been great if it used Monolog for logging.<p>On the plus side, I like the clean design and their approach for events looks cool.
评论 #4031547 未加载
评论 #4038900 未加载
kumarshantanualmost 13 years ago
It appears more functional in style: <a href="http://laravel.com/docs/routing#the-basics" rel="nofollow">http://laravel.com/docs/routing#the-basics</a><p>Good to see that.
taralmost 13 years ago
What I would like to know is how exactly is this different from the hundreds of open source PHP frameworks available out there?
评论 #4029751 未加载
评论 #4030535 未加载
bobsyalmost 13 years ago
Its a good framework but the development cycle is far to fast. Every few months there is a new full iteration where core functionality is added and development practices change.<p>I feel it would be far more usable and popular if the dev cycle slowed and the framework was allowed to mature and gain some traction.
评论 #4029826 未加载
stephenralmost 13 years ago
Why are so many PHP 5.3 frameworks like this ignoring namespaces.<p><pre><code> class Admin_Controller extends Base_Controller </code></pre> Seriously, someone thinks this is OK?
评论 #4029747 未加载
评论 #4066561 未加载
评论 #4029742 未加载
daylereesalmost 13 years ago
Hey all, glad you find getlaravel.com useful. You could also checkout my blog which has 22+ Laravel tutorials including tips and tricks : <a href="http://daylerees.com" rel="nofollow">http://daylerees.com</a> . There is also an ebook available, linked from the site. Thanks!
johnchristopheralmost 13 years ago
I don't totally agree with the author: coming fresh to php 5.3 without prior contact with the elephant isn't going to protect anyone from php's inherent inconsistencies or legacy way-of-doing-things for very long. I am specifically thinking about the different naming conventions for functions (sometimes underscore, sometimes not ). Of course my remark isn't about Laravel itself.<p>With that said I used to try every "small but efficient" framework when I was a web developper and I would surely have tried this one with enthusiasm.
popasmurfalmost 13 years ago
You should check out <a href="http://getlaravel.com/" rel="nofollow">http://getlaravel.com/</a> for some basic examples. I've been using Laravel for a few weeks now and I love it! The simplicity is next to none and it certainly has sped up my dev time. I'd recommend trying it for a week and see how you get on, I think you'll fall for it too.
评论 #4029644 未加载
balacalmost 13 years ago
It looks pretty nice! How can I be sure this will continue to be maintained far into the future though? At least with Zend / Symfony I know they are not going anywhere for the foreseeable future.
maxpertalmost 13 years ago
Definately one of the most clean coding frameworks I've seen.
digitalmanalmost 13 years ago
It isn't new, but it's in the buzz. Let's face it, stateless MVC for the web is a local maximum. We can do much better, but not if we stick with this MVC crap.
评论 #4029598 未加载
评论 #4029605 未加载
pknerdalmost 13 years ago
So is it like making something similar to RoR? If yes then I am interested.<p>RoR has spoilt me. Anything that is similar to RoR is highly attracted to me.
评论 #4029866 未加载
评论 #4029926 未加载
评论 #4030714 未加载
评论 #4030309 未加载
optymizeralmost 13 years ago
Laravel does not cache routes defined in routes.php and especially those loaded from disk with Controller:detect(). What a pitty.
burembaalmost 13 years ago
It's very similar to Kohana 3.
评论 #4030579 未加载
EugeneOZalmost 13 years ago
globals, static methods... bad code again.
rorrralmost 13 years ago
It needs a 2-minute video to "sell" it to me. There are literally hundreds of PHP frameworks. Your list of "highlights" didn't make me want to try it.
评论 #4029540 未加载
评论 #4029668 未加载
wseymouralmost 13 years ago
"I was looking for a framework that supported PHP 5.3"<p>You didn't look hard enough - see Lithium<p><a href="http://lithify.me" rel="nofollow">http://lithify.me</a>
评论 #4029787 未加载
评论 #4030111 未加载
ellie42almost 13 years ago
Validations in routes, you're doing it right <a href="https://github.com/laravel/pastes/blob/master/application/routes.php#L52-66" rel="nofollow">https://github.com/laravel/pastes/blob/master/application/ro...</a>
评论 #4029546 未加载
fatjokesalmost 13 years ago
Please let PHP die.
评论 #4029618 未加载
评论 #4029600 未加载
评论 #4030634 未加载