Smarty+CodeIgniter Performance [closed] - php

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.

Related

How to SSR vue 3 in php? [closed]

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.

REST-Centric web dashboard in PHP [closed]

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

Coding mobile app with no experience but using porting [closed]

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've never tried to develop a mobile app before but I've read that there are frameworks for converting web apps (which are coded in AngularJS, PHP, etc.) and turning them into a mobile app. I thought this would be the easiest way to develop one (I'm really not looking for quality, just a quick way to hack something up, I'll later study Objective C and Android Studio, etc.), as I have lots of experience in AngularJS and PHP and web development, but practically zero experience in mobile app development.
I've looked at ionic and PhoneGap and was inquiring on people's experience with them and what approach I should take based on my skillset?
When you already got some experience with PHP than you should take a look at Zend Studio. It allows developers to use PHP to develop mobile applications. See the following links: Info and here is a Tutorial

Is it possible to use PHP frameworks for websites built on Joomla!? [closed]

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.

Symfony (PHP framework) and MongoDB ( or any json-based database) [closed]

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 was wondering if its possible to use a json-based schema-free, document-based database like Mongodb or Couchdb on a symfony project like its used for ruby-on-rails websites? And if yes, how can it be done?
There is a DoctrineMongoDBBundle for use with Symfony 2
You might get some help from the MongoDB PHP Language Center. There are links to several PHP libraries for MongoDB, including a centralized logger for symfony applications.
You can also check out http://li3.me/, the only full-stack PHP framework with fully-integrated support for MongoDB (and CouchDB).
Try building your project with the no-orm flag. There is little need to have an object relational database if you are not using a relational database. Just build classes for your data in PHP. These will function as your schema, which makes sense sense as a schema is not defined at the data layer.
AFAIK, the only framework to have integrated Mongo support as of yet is Vork.
I saw a post from someone who retrofitted Cake to use MongoDB, but they basically had to rewire the whole model-engine.
All the majore modern framework can work with Mongodb.
Symfony do it very well with doctrine as an exemple

Categories