Is Zend framework with backbone.js good idea? [closed] - 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 7 years ago.
Improve this question
I am new to backbone.js and I would like to create my first medium scale website application with backbone.js. I used to create websites only with zend framework. My question is: Is zend framework to heavy to use with backbone.js, with that I mean if I should rather use some other rest frameworks for php (Slim)? Or in other words, what is a good server side framework/library to use with php?

We use zend framework and backbone.js and the integration works pretty well.
Zend framework (ZF1) offers an abstract rest controller, which automatically handles GET/POST/DELETE/PUT requests. http://framework.zend.com/apidoc/1.9/Zend_Rest/Zend_Rest_Controller.html
in our bootstrap, we set a module just for rest api controllers, called api. note your need to add a rest router for this module:
$restRoute = new Zend_Rest_Route($frontController);
$frontController->getRouter()->addRoute('oauth_route', $route, array('api')););
any controller in this module extends Zend_Rest_Controller and implements getAction, indexAction, deleteAction and so on.
PS. avoid Zend_Rest_Server & Zend_Rest_Client. these are old modules.

yiiframeworkis a good choice as a PHP framework.
Backbone.js is JavaScript MVC framework and all PHP frameworks including yiiframework are indeed PHP MVC frameworks, PHP has no conflict with Javascript. And yes of-course you can use backbone.js with any PHP framework.
http://www.yiiframework.com/wiki/390/yiibackboneboilerplate-project-setup-for-your-yii-backbonejs-applications/

Related

Gulp with templating, PHP framework or anything else for front-end developer [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 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.

Migration from codeigniter to Laravel [closed]

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

Build laravel from framework kernel [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 6 years ago.
Improve this question
I have started a project to convert some parts of laravel framework to compiled php extensions to improve the performance. I have created a git repository for the migrated parts and another for the laravel modification that will use that extension.
My question is how to build completly all laravel from framework kernel modified?
Do you think that I'm doing well?
I have started a project to convert some parts of laravel framework to
compiled php extensions to improve the performance
...
My question is how to build completly all laravel from framework kernel modified?
Just don't. Laravel is a framework that is changing quite frequently and your attempts to make it working as native code will fail, because every composer update command call will force you to rebuild native implementation.
If you want to put heavy effort for performance optimisation, then go for other frameworks as Falcon, or use Lumen as an alternative (it's lightweight version of Laravel). That's all I can tell about Laravel itself, because optimisation have not only place in Laravel kernel, but also in database design, scale of the project, and other network configuration settings.
Provide more specific information about bottlenecks in your project, and you will get answers that you are looking for.

angularJS within Symfony2? [closed]

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 7 years ago.
Improve this question
I have very basic Symfony2 application. I would like including AngularJS within it.
Where should I put my Angular resources?
How to include them?
How to communicate between Angular and Symfony
I see that official documentation says that I should split frontend and backend so that there cannot be any conflict.
Any scaffolding examples?
Well, Symfony2 is a backend framework, AngularJS a frontend framework. I would recommend building a REST API and have it return JSON. In AngularJS, you can use $resource to interact with the RESTful service.
As Angular resources must be directly accessible from the web browser in their entirety, you should put all these files within the [Symfony app root]/web/ directory. When an HTTP request requests a file located there, it will be served without interacting with the rest of the framework.
Optionally (and preferably) these pages can be pointed to with the routing component to make pretty URLs.
I agree with user3142446's answer about creating a REST API and allowing Angular to perform all of the heavy work. There's a well documented bundle for creating REST API's with Symfony called FOSRestBundle to get you started. By using this strategy you can utilize anything done in Symfony the same way you use external APIs.

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.

Categories