how easy is to tie up a PHP front-end to a DRF API?

33 views
Skip to first unread message

Shan S

unread,
Aug 16, 2019, 4:43:58 PM8/16/19
to Django REST framework
I'm starting a startup and we are looking for the best solution and technologies to use in our platform and it boiled down to using DRF for the API because of the security and speed advantages. but now we are kinda confused about what technology to use for the front-end. Our 1st choice is to use PHP/Laravel for the front-end since we are familiar with it but how easy is to tie up PHP front-end to a DRF API? and what are the better choices aside from PHP? note that our team is not a JS guru and we prefer not to get tangled with JS frameworks as much as possible.

Matthew Stroud

unread,
Aug 16, 2019, 5:13:43 PM8/16/19
to Django REST framework
You could make the php code call DRF endpoints as two different apps, but I'm not sure how useful that'll be with what I think you are trying to do.

If you are intending this to be a client to server (I.E. a web browser) presentation, then java script is about the best/only way to go (lack of options here). However, if you are intending to do something that is service to service, then you can use whatever language you like.

Another option is to use Django's built in templating engine for client presentation and use DRF for an API backend for services to call.


From: django-res...@googlegroups.com <django-res...@googlegroups.com> on behalf of Shan S <ssha...@gmail.com>
Sent: Friday, August 16, 2019 2:43 PM
To: Django REST framework <django-res...@googlegroups.com>
Subject: how easy is to tie up a PHP front-end to a DRF API?
 
I'm starting a startup and we are looking for the best solution and technologies to use in our platform and it boiled down to using DRF for the API because of the security and speed advantages. but now we are kinda confused about what technology to use for the front-end. Our 1st choice is to use PHP/Laravel for the front-end since we are familiar with it but how easy is to tie up PHP front-end to a DRF API? and what are the better choices aside from PHP? note that our team is not a JS guru and we prefer not to get tangled with JS frameworks as much as possible.

--
You received this message because you are subscribed to the Google Groups "Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-rest-fram...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-rest-framework/2109f17f-3c12-4a99-af63-fe1163c3043d%40googlegroups.com.



CONFIDENTIALITY NOTICE: This message is intended only for the use and review of the individual or entity to which it is addressed and may contain information that is privileged and confidential. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message solely to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify sender immediately by telephone or return email. Thank you.

Marc Chakiachvili

unread,
Aug 16, 2019, 5:28:04 PM8/16/19
to django-res...@googlegroups.com
Erm.... PHP is no front end. You should think about some vue.js  or other javascript framework to work with django drf. 

Hope that helps

Marc

On Fri, 16 Aug 2019, 21:44 Shan S, <ssha...@gmail.com> wrote:
I'm starting a startup and we are looking for the best solution and technologies to use in our platform and it boiled down to using DRF for the API because of the security and speed advantages. but now we are kinda confused about what technology to use for the front-end. Our 1st choice is to use PHP/Laravel for the front-end since we are familiar with it but how easy is to tie up PHP front-end to a DRF API? and what are the better choices aside from PHP? note that our team is not a JS guru and we prefer not to get tangled with JS frameworks as much as possible.

--
Reply all
Reply to author
Forward
0 new messages