Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
What is the best mvc framework for php and how to get started with it?
Laravel is a PHP based MVC framework. The architecture is based on the MVC programming paradigm, but the building blocks are PHP functions. To learn Laravel without learning PHP first is a risky endeavor. You may not be very productive with it. You might not be able to create abstract functionality that is not included in the framework.
So, Before starting Laravel You must have—
The basic knowledge of HTML, CSS and Javascript
Good knowledge of Core and Advance PHP-
Core PHP includes the basic PHP and its functions.
Advance PHP includes the OOPS concept and libraries, packages.
A good vision of Composer is essential as you will use composer for accessing the Laravel’s functionalities and downloading packages.
Knowledge of MVC Structure, You must know the flow of things, How the things go in MVC frameworks, How everything interacts and all. It can help you a lot during learning.
And Last one is the Knowledge of Database. (well Laravel makes it quite easy to handle with database queries as The Eloquent ORM provides a beautiful, simple ActiveRecord implementation for working with your database.)
This must be required before start learning Laravel else You will get frustrate in the mid of your learning and takes a lot of time in it. It would be great to start with CI first to get Laravel and its concept quite easily.
For more tutorials based on Laravel must visit this site - Laracasts
Refernce : http://www.phpwala.in/laravel/things-must-know-before-starting-laravel/2018/03
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 months ago.
Improve this question
I have a legacy project built on codeigniter 3 and we're looking to upgrade to the latest Laravel version. From some of the answers here, I can infer that it is definitely possible, I have multiple questions before starting.
Would it be practical? (would making it work with each other be a huge enough pain to completely rebuild the system on laravel)
Would it work across different PHP versions? (Current: 5.something; desired: 8.1)
If they're both running on the same domain, would session management be an issue? (would I be able to share session variables across the frameworks?)
Thanks for reading
It looks like CodeIgniter uses lots of global variables.
https://codeigniter.com/user_guide/general/common_functions.html
I'm not a Laravel dev, but I'm assuming that as a relatively modern framework, Laravel does not rely on many globals by default. So I suppose there's more opportunity for conflict, but only if someone is abusing Laravel.
(Laravel people: Feel free to correct me on this.)
Regarding PHP 8: CodeIgniter has at least passed this guy's smoke test on PHP 8.
https://forum.codeigniter.com/thread-78091.html
Since minor versions theoretically don't contain breaking changes, you may find success on 8.1 as well.
Regarding sessions: I know nothing about how either framework handles sessions, so I can't speak to this.
As for whether it's a good idea: I'm not sure I fully understand what you're trying to do. Are you going to have a CodeIgniter project running side-by-side with a Laravel project, using a separate subdomain for each? Or are you going to try to make the existing CodeIgniter project live inside of a Laravel directory structure, as the title of the question currently implies?
If the latter, I would say you're in for some tears. It sounds very painful. The former could work pretty well, I would imagine, especially if you're already using your PHP mainly to serve API endpoints and can just gradually move all the endpoints over to the new platform, one at a time.
I hope this helps.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 4 years ago.
Improve this question
I am a front-end developer and I have a project where I need to build 3-5 pages website. The main work is in javascript communicating with REST API but I do want to have partials, routing if possible and templating.
Right now, I am literally frustrated with amount of available frameworks but I really would prefer not to setup PHP backend as it is not required (Wordpress either).
I feel very comfortable with the following technologies and frameworks being able to build entire front-end:
Gulp
Bootstrap
JavaScript
HTML/CSS/SASS
So I started to look into Angular but it feels like an overkill and with possible SEO issues even if it is 3 pages website for now.
Then, I started to look into static generators such as Jekyll but I would never develop in Ruby or Go.
Then I started to look into JavaScript templating + Gulp such as Mustache or Nunjucks and that sounds interesting although no routing would be possible.
Now I started to think if I shell create a simple PHP routing + template class in the website folder without MVC and the rest just do through Gulp as I am used to.
From what I've seen, people recommend going with PHP framework such as Symfony or Slim but I am not a back-end developer and afraid this can take much time from developing front part.
I would appreciate any opinion about this and I apologise if for someone that does not make sense but I do feel frustrated and decided to ask the community and experts that being in similar situations.
Thank you!
This is not really a Stack Overflow question, as you ask for an opinion, but I am willing to answer you anyway.
Setting up a Jekyll website does not require you to write any Ruby. Jekyll is simple, but does have partials, templating and routing. Therefore it seems like a good choice. I would use vanilla JavaScript or jQuery for the API interaction.
I use Jekyll for all websites that are smaller than 100 pages.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I'm wondering if it is possible to create a web application where a user can sign up,login, and make payments without using a framework like Rails or Node.js, but rather html,css,php,mysql etc.
Is this even possible?
Yes, it is entirely possible to write any web application without framework. Keep in mind that frameworks are also written in their respective programming languages - therefore, you can achieve same results without one, but it will be more time-consuming and will need more work to "reinvent the wheel". A framework usually delivers many useful functionalities that are ready to use, but in the exchange you must comply to its standards, semantics and rules.
Many programmers of high-end applications choose to develop without a framework, because they don't want to be bound by those boundaries. Also, there are performance reasons - if you can fine tailor your application to your business requirements, it will probably run faster.
Also, please keep in mind that Node.js isn't a framework - it is a toolset that allows running JavaScript applications in OS enviroment instead of the browser.
It will take a lot of time but it sure is possible. These 'frameworks' are here to speed things up for you. I recommend you to take a look at a couple of MVC frameworks. For example: Laravel, Codeigniter and Symfony. These frameworks will do a lot for you(Think about security and routing) but you still have to write the biggest part of the logic yourself.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
I am confused about using core php or a framework for my new project. I have done projects in Laravel, Codeignator and some in core php. My project requirements keep confusing me as to which is the better choice. Can anyone suggest best option for me? The following are the functionalities i need to implement in that project:
1) I Should need to upload 30 images at a time. Images with larger size so need to compress the images without losing the clarity and decompress after uploading.
2) I need to integrate lots of API's include Google’s Cloud Vision, MaxMind GeoIP so on..
3) Need to implement two databases; MySQL and Cassandra
4) Need to create user profiles based on there activities inside the website. These content stored in cassandra database
5) Implement Elasticsearch for real time analytics
Can anyone suggest can i go with core php or Laravel?
This is a really broad question, and one that will draw answers based primarily around one's opinion as your project can be achieved with both Core PHP or Laravel.
Given your requirements I would suggest you use Laravel. Starting a project from a framework means that a lot of the initial work has already been done for you and the framework itself will do a lot of the heavy lifting.
The API's, Elasticsearch, and image resizing can all be incorporated through various packages and Laravel's blade engine will help you create consistent views without the repeating your HTML code over and over again.
Using two databases is as simple as setting up two database connections and then ensuring your queries are using the right one.
Remember that Laravel is essentially just Core PHP, it has all just been structured in to a framework - specifically to improve the ease of use and performance.
As per my opinion Laravel is best for your project requirements. Your all functionalities are easily cover in Laravel as compare with core PHP.
In your project for further enhancement Laravel is best choice because of there are so many libraries are available for lots of functionalities.
Your project development timing also decrease as compare as core PHP.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I am wondering whether I can use PHP frameworks such as Symfony2 or Laravel with a CMS like Joomla. I have worked with PHP, but a beginner of Joomla. I know I can use extensions like Sourcerer. But I would like to use Laravel of Symfony2 instead. For example if I am developing a website where there is a considerable amount of server-side programming and also a lot of web pages to display, could I use Joomla to handle the content management and a PHP framework for the server-side programming?
In brief my question is :
Is there any way to integrate a PHP framework(preferably Laravel or Symfony) into a website built on Joomla! ?
If it is not capable of doing, what are the other options available; or is it not recommended to use PHP frameworks along with Joomla?
It would be possible, to integrate your framework into a CMS - so your managers or reporters or whatever, can change content. But that would be horrible amount of work. Better use Content management systems on their own.
It is possible to use Symfony2 with the CMS RedKite. An "Extension - CMS" for it.
More information under:
http://redkite-labs.com/
It's not possible. Joomla is build with its own framework and API.
As of Laravel you could give https://github.com/FrozenNode/Laravel-Administrator a try. It's a sweet CMS for your own models. I love this, since it's not restricting your coding and you can work with your back-end code.
If you're looking for a more client-friendly solution, http://octobercms.com/ is in the works and should hopefully be released soon.