I have been coding for over 30 years, but I just started using PHP about three years ago for a Drupal project.
I had an unexpected need to built a custom web application last year and when faced with choosing a framework, I gave up and just wrote the application from scratch. It was very time consuming, but I was afraid of making the wrong choice and completely screwing myself.
I have to write another web application this year and I decided to spend the time finding the right framework for me.
My first choice was Laravel. I spent some time watching the videos and coding some examples. It is a good framework, but I ran into some problems where I couldnāt find a good way to accomplish what I needed. I was also disappointed that it doesnāt have client-side forms validation (if it does, I couldnāt find it) and Twitter Bootstrap isnāt built-in. Sure, there are extensions to do such things, but these are things I felt should be part of the base framework and I didnāt want to waste my time trying to get those things to work well together.
I investigated a few other options and then tried Yii2. I really, really like Yii2. I wanted to use Twitter Bootstrap and itās built in. I wanted client-side forms validation and itās built in. And both are very well integrated with the forms model.
I have always just written my own SQL. I knew I should be using an object model, but I was concerned it would get in the way. Well, I really like Yiiās object model. Every time I think that Iām going to have to write raw SQL because I canāt get the model to do what I want, I read through the documentation and find an easy way to do it.
Another thing I like about Yii2 is that if feels āsimpleā. It does almost everything I need without making me jump through hoops to get there. I donāt find myself thinking the framework is taking more time than itās saving.
Youāve just reminded me how I fell in love with Yii, although it was 1.1 then and the other framework that I had tried before Yii had been CodeIgniter.
same with me. I was developing windows applications and had really hard time with PHP until I met Yii. It made me think that you can actually build something good with PHP. And i am also proud that Iām using yii almost right after the first public release .
I donāt think you can get a laravel dev to switch to yii just like this. the same would apply to us.
and the framework which was here among the first and has its community already would continue to be supported by its community unless some shitty things happen maybe.
i like yii and i did made some research about laravel. personally i dont like the convention they use on laravelā¦ probably because im used to yii
and from what i heard there are many ways to do a single thing in laravel, but whatās the point? it would just promote messy codes as each dev can use their way to do a task
I love the way that Yii works, it almost time is very simple to use and implement things. I started to study Laravel and I liked then so much to. About the twitter bootstrap on the laravel 5 it comes with it by default. To use on Laravel put @extends(āappā) @section(ācontentā) and @endsection (on the end of your template document). On the laravel 5.1 unfortunately you need install many things to use a bootstrap by default or crate a template by your hand (I made this way).
On my job I try use laravel, because it seems work better them Yii. Causeā¦ Yii do not work fine with oracle. The extension oci_pdo.so donāt work. On laravel they created a library that make Oracle run without this damn php extension.
I learned Django before but got hit on a brick wall when I wanted to host it on a cheap hosting service. They only provide php on the server side, so I went looking for php frameworks and ended up with Yii 2. The structure is pretty much the same and yii helps me on learning php on the way also. I havenāt seen other php based web frameworks like laravel, cakephp, etcā¦ but I really like Yii so far.