Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I want to know how to server side render vue 3 code inside laravel 8 (with webpack) project.
All info I managed to get was on vue 2.5 like how to do it with v8 and other plugins like here https://github.com/spatie/laravel-server-side-rendering/issues/83
The real answer to your question is that if you want to do SSR using vanilla PHP or Laravel, you would use your controller to modify the base file (like what may be your current index.html file) prior to the user receiving it. This isn't recommended and complicates things a bit. If you're using vanilla Laravel or PHP, you shouldn't need to do this anyway since blade files are already rendered by the server natively.
If you're making a SPA or web app and not using blade files, your SSR now has nothing to do with PHP and everything to do with your JS framework.
Vue.js has a tutorial on how to do SSR here:
https://v2.vuejs.org/v2/guide/ssr.html
And I found an example package here:
https://github.com/acoshift/vuejs-ssr-example
And if you're interested in switching to React, Nextjs handles this out of the gates with zero setup:
https://nextjs.org/
It plays nicely with Laravel Sanctum and there's packages available to handle that quickly as well.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
Improve this question
I have been a php developer for a long time and very comfortable making web applications with it. I want to try to make an app for android and I phones. But it's just for fun, and I am not sure I have enough time to learn a new language right now. I could create this app in php in a short day if it were possible and would prefer not to go through the traditional learning curve of trying to figuring out sonething new. Is there a way to create an app that would just run something similar to an iframe that would then just pull all the functionality from a website?
you can create a web viewer application. First create a website, host it and just implement that site URL into your android or IOS app. it's just a few lines of code so you don't have to learn from scratch to make the whole app.
follow this link...
https://youtu.be/A8sSRQ5mVqY
you can use react native instead of implement native android or iOS.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I'm planning to build a REST-Centric web dashboard in PHP. Without connecting to the databases directly. All data 100% comes in and goes out through REST calls alone. I've gone through few framework for writing API like slim, silex, Wave and Lumen, gonna pick one form this (for Azure & MSSQL), My concern is whether developing the Dashboard in Angular or some other js & pure HTML will have any security issue or is it safe to go with Server-side scripts for dashboard too?
Interesting question, I'm doing research for a similar project and this is what I have so far:
All the opensource out there don't fill 100% the needs I have for the project so I can't use them (ie: not mobile ready or not tv ready or poor browser support)
Because of the above, I will need to build a custom solution:
server side: Lumen framework for the log in and for securing+processing all the dashboard requests
client side: I will use a angular.js + dashboard template (from envato or from strapui). You can also do it with jQuery.
I hope it helps
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I am working on a social media project and I want to build it using MVC frameworks in PHP. Right now I know CodeIgniter but don't have extensive experience with it and I know its for small footprints, but I have told by some one that using Smarty as templating engine CI can be utilized for larger footprints.
So my question is that should I go by this strategy or try any other framework like laravel or yii2?
Templating engine is not a factor in performance issue. Even CI has its own template parser but use raw code in view file make your app faster than templating engine. Such as from CI doc
CodeIgniter does not require you to use this class since using pure PHP in your view pages lets them run a little faster. However, some developers prefer to use a template engine if they work with designers who they feel would find some confusion working with PHP.
However you can use CodeIgniter(CI) for your app whatever the size of your project. Even enterprise level application can be done with CI. If you need huge API or another 3rd party web service to design then laravel is good.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
Hey,
normally im developing with doctrine 2.0 and CodeIgniter with PHP 5.3x
Now i hav to work with php 5.2 for one site and im asking which orm should i take because Doctrine2 needs PHP 5.3x
Should i simply use doctrine 1.2 for my site? Has anyone experiences with this version or is there another good orm?
I highly recommend DataMapper:
Source:
https://bitbucket.org/wanwizard/datamapper
Forum: http://codeigniter.com/forums/viewthread/178045/
Home Page: http://stensi.com/datamapper/
The docs are great, the syntax is intuitive, and it is very powerful and easy to extend, and most importantly in your case, it only requires php 5.0
It is actively developed, and WanWizard is also very helpful and responsive on the forums.
I recommend NotORM
http://www.notorm.com/
It's easy to use, it's use the SimpleXML object chaining concept for database relation, and use PDO for query execution
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
we have developed e-learning web site for one of our customer.
recently he asked he need SCORM feed.
i dornt know whether my system is compatible with scrom.
do any body know any opensource php tool or lib to generate scrom from existing data.
thanks
The first thing you need to determine is whether your site would be considered a learning management system or a piece of content. The SCORM implementation varies considerably based of what you are trying to develop. Check out http://www.scorm.com/scorm-explained/ for a good explanation of SCORM and how it works.
I have tried Chamilo 1.9.6 and works well with SCORM 1.2 and 2004. This was used as evaluation tool (test) with up to 90 questions.
Have a look at Moodle project - SCORM module: http://docs.moodle.org/20/en/SCORM_module It's open source, but I do not know, it the SCORM related code is easy to use outside Moodle.
www.dokeos.com comes with open source edition containing SCORM module.
Or try Chamilo, it is maybe better fork of dokeos.
Drupal has a limited support for SCORM, too.
Good reputation has eFront.
Ilias is certified for SCORM 2004.
TinyLMS is interesting project - JavaScript only.
Also get idea from http://www.vsscorm.net/run-time-environment-rte/run-time-environment-downloads/
Don't forget Chamilo!! http://www.chamilo.org
You can try a demo at http://campus.chamilo.org
Chamilo supports SCORM is also a claroline/dokeos fork