Yii2 ... Yii3 ... or Laravel? - laravel

I’ve been using Yii since version 1 … I’ve done lots of projects (i’d say about 50). I know Yii.
But I am being disappointed.
Yii was glorious and wonderful in 2014-2017, but after 2018 I’m not seeing same activity.
Forums are useless, old, inactive … there’s not more Yii2 extensions or modules. Everything is “old”, unfinished, discontinued …
Now I’m facing changes in my life as coder, and I was wondering whether to wait for Yii3 (because it will be a revolution), or to switch to Laravel.
Sincerely… what do you think if this “Yii environment” situation ?
Please, I would like comments from people who really know both environments, not only Laravel lovers.
Can you anyone tell me a WORKING and UPDATED extension
for social networks that works PERFECTLY ?
yii2-usuario was the best … WAS … linkedin works sometimes, facebook are not updated, and there’s no newer social since 2016
can you tell me other for datatables ?
nullref has awful support since it’s everything rewritten in Javascript so you can’t access properly relations and subrelations of models
for payments (stripe compatible for example) ?
for…
and so on…
These just last 3 examples has beautiful, crazy updated and reviewed plugins in Laravel, for example. Or even in NodeJS.
2amigos and kartiv were two perfect partners for Yii2 core … but they are not being continued … so they are pretty old
Anytime I search for any “extension” in github, all projects are 4 years ago (the newest!).
By the way … Yii3 started in 2019 … 60% done so far … and can’t be used yet for real working projects in live. So … waiting 2 years more with this so empty market of extensions ?
Let’s be clear, my problem with Yii is NOT the core (Thank you Sam and others for your infinite work!), but the community, extensions made (and/or updated) and “movement” of the ecosystem.
I know I can code myself (i’ve done lots of extensions), but it’s easy as a coder when you have good repositories with pretty new extensions and solutions, and a very active community behind. This forum has about 150 posts this year. Laravel (for example, 150 posts represents just the last 4 days). Have you notice tons of posts here with 0 replies ?
Also, Yii coders was easy to find in 2015 … now it’s 1 out of 100 maybe.
Let’s assume Yii environment has decreased drastically in the last 4 years.

I would suggest to move to laravel.
As yii and laravel uses almost similar behavior on basic level
MVC, Based on symphony, ORM
I honestly think you'll easily grap what laravel is offering.
Plus, laravel is upgrading day by day.

The answer to your question lies in your question .
Big community, Wonderful documentation, Enjoyable coding, Lot of feature and package, Popularity and ... all of them can describe Laravel.
Do not doubt and take a deep dive.

If you worked with Yii2, you should definitely use Yii3.
I'm using it for minor projects and I'm learning a lot.
The advantages are the same as always
Very fast (surely faster than Laravel)
Very complete
Very customizable
Very standard and modern (A bit difficult to start to understand it)
I recommend you to start with the demo application (it's a blog) or the base application (blank)

What's with the packages?
That on Yii2 you can only use Yii2 - compatible packages? take any package and use it, use the dependency injection container.
If we talk about the fact that the framework is outdated, then yes there is such ...
I myself wrote more than a dozen projects on Yii2.
I didn't really like Larevel, my opinion.
But the symphony, on the contrary, I was very pleased with.

Related

eLearning website development by using PHP framework instead of an LMS like Moodle, eFront, etc

I want to develop an e Learning website where B.Tech students will come, explore the courses from various streams, see the videos, can take assessments, see their scores, improve their skills, can give their feedback, can chat with experts.
I do not want to use LMS like Moodle, eFront, etc.
How good it is if i use PHP framework like CodeIgnitor, CakePHP, Zend or YII?
Any advises & inputs will be highly appreciated.
It's very hard to answer without knowing exactly your system requirements, so I'll give you a general response regarding the preferred frameworks in 2015: http://www.sitepoint.com/best-php-framework-2015-sitepoint-survey-results/
As you can see, Laravel is the most popular framework nowadays, so you should be able to find a lot of resources/modules/components that may speed your development.
But then again, you may want to evaluate each of these frameworks against your requirements, your desired PHP version, performance in your servers and your PHP knowledge and select the framework that best fits you. To get you started, here's a sample review done by someone in 2013:
http://mavrck.com/blog/2013/01/ive-evaluated-php-frameworks-and-the-answer-is-laravel/

Debugging Phalcon as a PHP developer

I have been a PHP developer working with Magento for years. I'm now wanting to work on a project that has no ecommerce component, and as such Magento is not a good choice. After browsing online at the other PHP frameworks, Phalcon is touted as the best choice in terms of performance and resource use.
The main drawback I've heard is that because it's programmed C, it's hard to debug any issues that may reside in the framework. Have any PHP developers found this to be a major issue? If so, what debugging tools would you suggest to address such issues?
Thanks for your time in advance.
In short: No.
If you want more info about Phalcon, read on.
I've done http://oisie.com/en with Phalcon+mysql. Now I'm building new software with Phalcon+MongoDB and one Phalcon+Mysql. I'm with Phalcon for more then a year now developing almost every day and I can tell you, there is no such debug issues. At least I haven't had any. Phalcon is very solid framework and works blazing fast. It has all it needs to have. Developing is also very active, they are building new version already and the best part is that there shouldn't be any pain-points with Phalcon while updating it on your machine.
If you like pre-generate folders and files, you should check out this repository on github:
https://github.com/phalcon/phalcon-devtools
I've updated IDE stubs to newest version to get auto-completion working. You can find those here:
https://github.com/phalcon/phalcon-devtools/tree/master/ide
My experience with Phalcon:
Easy updates of framework. Just update your apache's or nginx's module and that's it.
I haven't had any issues after update of framework. Try develop anything with Zend v1.x and update it to 2.x You will have to update a ton of your code.. With Phalcon there is no such problem. I think it's very important in long-term projects.
My IDE is not filled up with 5000+ files of framework, so it works faster while developing.
Phalcon is precompiled, so it's fast because of low I/O and compiling. I saw guys who made server response ±40ms with Symfony, but it was such a challenge for them.. With Phalcon it's just daily stuff. You have 20-60ms response from server without any extra caching layers.
It saves money. Less CPU + less RAM = less $ for servers.
I've tried Zend and Symfony. Also years ago was working with Joomla, Drupal and WordPress. Phalcon is my main framework now and after it and don't want to look back :)
If you are starting up with Phalcon, should find useful things on my github acc: https://github.com/stars/liesislukas
Have fun ;)
P.S.
Phalcon 2 progress: https://github.com/phalcon/cphalcon/wiki/Progress-2.0
Phalcon 2 is written with Zephir (language to build apache/nginx extensions): https://github.com/phalcon/zephir
I've tried writing my won extension with Zephir and it's really easy to do :) I never liked C family languages because of it's strict stuff compared to PHP. And Zephir is language, which is familiar to PHP, but you write apache/nginx extension with it. So if you even not using Phalcon framework, but you have some heavy tasks, you can easily write precompiled extension for it. Play with it ;)

Community Engine v. Social Stream?

Newb here learning rails... any advice/comparison of community engine v. social stream? I'll be writing a dating site, so especially if either lends themselves to that development I'd appreciate the advice.
I have tried CommunityEngine in the old days. Currently to use it with rails3, you will have to use a specific branch mainly updated by the community to make it stable. i'm not sure if that rails3 branch is production ready yet.
I don't know community engine, but have been looking at social stream and it looks very well put together.
We upgraded social stream to a mobile platform by exposing api end points - it took a couple of months. We built separate controllers for each call rather than modifying the core classes. The platform is now flexible enough to cater for any use case and we can hook in to updates on the trunk. It's really well thought architecture and has had iterations of refactoring. (I think the webviews / javascript is a bit of a mess though)
I suggest you have a look at this - it took my tech lead a couple of weeks to be comfortable with this.
https://github.com/ging/social_stream/wiki/Social-Stream-Base-database-schema
WRT communityengine - I abandoned this over 4 years ago.
https://github.com/jdp-global/communityengine/commit/31f9b267706157a63bfc103a290bd6e3d874066a
Any platform you choose needs to have a focus on APIs / web services.

Your thoughts on Fabrik as an application builder?

I've been tasked to develop a small web application for my company, and my initial plan was to use the Zend framework with Doctrine as this allowed for all the necessary features I needed. However, recently I came across a Joomla application builder called Fabrik which seems to have a lot of potential. My question is if anyone here has used it and if so, what your experiences were? Is it a stable, secure platform? Is it easy to use and does it allow for simple to more complex applications? And finally, how does it compare to one of the more established frameworks such as Zend or Cake etc. Any info regarding to your experiences would be appreciated.
I have not gone beyond a proof-of-concept using Fabrik, so I'm far from being an expert. What I've found so far is that Fabrik installs and configures easily in the Joomla environment and it's easy to get up and running. It's quite easy to get tables of output from the database and it's possible to do JOINs to combine data from multiple tables. The output format can be customized using CSS but I haven't been able to really customize the structure and I'm not sure it's possible to combine multiple tables into one report for example.
It's very easy to create a form that is an exact match of a table, so for data entry, it's very easy to set up a form to edit table data.
I haven't found it to be very flexible for creating a custom search form or a form that takes input from two drop-down list boxes and does a query based on the selected items in both lists.
The advanced search function that is provided is fairly powerful, but doesn't fit seamlessly into the Joomla environment so I think this feature needs to work to be something I would roll out to users.
Bottom line: Fabrik has been really well architected and will eventually be the most powerful and useful data management tool for Joomla, I just don't think it's quite there yet for providing a wide variety of forms and reports for end-users. It is still a very handy tool for more basic reports and for more tech savvy users to maintain data in a database.
Seen this question a bit too late, hope you have managed to solve your issues, but however, my several years experience with Fabrik and a few attempts on PHP frameworks such as Zend, Codeignitor etc, I can tell you Fabrik is the best RAD tool around. Especially now that version 3.x.x which works with latest Joomla 2.5.X is out. Offers so much power that you can have a very powerful system done within one night.

How to learn MVC 3 and Entity Framework? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have a need to learn MVC 3 with the Razor view engine and Entity Framework 4, and am trying to figure out where to start.
Over a year ago, I build a site in MVC 2 and LINQ to SQL, but it's been a long time since I've thought about it at all and I've forgotten a lot. Though, I still have a loose understanding of routing, action links, and a bit of LINQ. So, I'm not exactly starting from scratch, but it feels like it.
I've been doing lots of digging around, in order to learn what I can, but have really only begun to feel a bit overwhelmed. I watched the videos on http://www.asp.net/mvc. While these certainly helped, there are still lots of holes in my knowledge.
In any case, here are some specific things I'm hoping you guys can help me find:
a good, hands-on MVC 3 tutorial (not unlike the nerd dinner tutorials that were available for MVC 2)
a clear explanation of Entity Framework 4, including coverage of
topics such as lazy loading and POCO objects
a clear explaination of LINQ, focusing on all of the extension
methods available, etc
resources that are NOT focused on code first models. I already have a
database that is in use (I'm not sure I see the value in code
first anyway)
Does anyone know of a resource or two that has these things?
There is also a very handy project which is already build, but who you can build by yourself with tutorials which will guide you through alot of MVC stuff.
http://www.asp.net/mvc/samples/mvc-music-store
Also I learned alot from the blogs from Stephen Walter: http://stephenwalther.com
Regarding EF, I recommend this book first
for EF4.1, this series of post by ADO.NET Team will help you
You still can use EF4.1 with Database First, refer this post and this post even though you already have database schema
if you dont mind spending a few bucks for a subscription based site (i think they do have a 10 day trial or 90 day if you qualify for dreamspark) the company i work for uses pluralsight for alot of our .net training they have a good chunk of mvc 3 videos that can help you out with getting going and have some more in depth stuff as well
i will up date this post tomorrow when i get to work with the page of information i gave to our mvc developers at work which has a ton of hour + videos and some great articles
also check out the following blogs for extra information
haacked.com
goodscottbadscott.com
scottgu's blog
Edit:
MIX 09 Demos
PDC 09 Demos
Phil Haack's Intro to Razor View Engine
MIX 11 Demos
MIX 11 ASP.net MVC 3 The time is now (recommended)
HTML5 Resources
Jquery
Jquery Mobile
Crystal Reports
I believe watching the PluralSight videos which are free and you can see them in www.asp.net/mvc (left corner ) is the essential step you can do.

Resources