Benefits/Examples of using a Service Layer in MVC patterns [closed] - php

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 9 years ago.
Improve this question
We're contemplating implementing a service layer (as described by Martin Fowler) within our current development as a way to process common processes within our system.
What are peoples thoughts on a service layer? What examples of process' have people implemented service layers for? What are the benfits/drawbacks etc?
We currently use the Zend Framework.

Essentially, a service layer is just an API that tries to separate code that has nothing to do with data persistence from the rest of your model. Hierarchical controllers can help here.

Related

Does anyoone has the experience of G Suite SSO with php yii app? [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 3 years ago.
Improve this question
I am trying to integrate G Suite SSO in my custom yii application. Can anyone help me which steps should i follow to achieve this?
One way to achieve this would be to leverage SAML. G Suite would function as the identity provider and has a pretty simple SAML configuration.
Someone has implemented OneLogin's php-saml with Yii... see the Github repo here: asasmoyo/yii2-saml.
Not sure I would recommend using that code so much as taking it as an example of how to implement php-saml within Yii.
Another option to look at would be something like SimpleSAMLphp, which has very easy mechanism to invoke authentication and then establish a session.

What are the advantages of a php framework like codeigniter? [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
What would be the advantage of using a framework like codeigniter vs raw PHP?
MVC pattern, which I recommend you read about. It provides concern separation and is an industry standard for building web apps.
Less boilerplate code - everything (mostly) you need is already provided by framework classes API
Active Record - a nicer way to query database
etc. Bottom line is - use a framework, unless it's a quick hack, then framework might be an overkill

PHP site - as service - how to separate it as modules or addins with easy integration [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 creating a php website as a service. My customers pay me annual fee and they will use this service during this time.
My question: I want to provide several features. And some customers needs only certain features. Some needs custom made features. So how to separate it as modules or addins when coding, keeping it simple for integration to the site.
Please guide me.
Example site: Shiftcode.com
Check their gpt sites admin panel.
thanku
You can have a look at http://www.symfony-project.org/, a very good framework for PHP development. It has a nice routing feature that can fit your needs. And you will gain unit test framework and a lot of other things.
before decide about developing such complex application, have a look at existing ones like WordPress Multisite/Network

Best Type of Chatbox in PHP [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 8 years ago.
Improve this question
I want to create a chatbox like gmail or facebook. What would be the best architecture to build it. Should It be good to use sockets or ajax?
If so, then would you please describe or give references of the architecture.
I'd suggest XMPP. I used it to design a chat system for within my companies software, and it worked quite well. There are plenty of XMPP libraries out there. If you were so inclined though, it it possible to use some of Google's services. Not everything needs to be written from scratch:
https://developers.google.com/talk/open_communications

Login with Google OpenID or other providers [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 8 years ago.
Improve this question
I am trying to figure out how OpenID works, therefore I am trying to write my own simple class for my web app that uses Google OpenID.
I am wondering if there are any examples that you know, or where I can find some details so I can implement my own class.
I am not looking for a very general class. I need something that will help me write my own implementation.
I have made good experiences with lightopenid (gitorious download). Unlike two other OpenID libraries I tried for PHP, it was very easy to use, has no external dependencies, is compatible with PHP5 and has no warnings.
There is an example for using Google.
And to display those buttons in the HTML page: http://code.google.com/p/openid-selector/

Categories