The Slim Framework support forum has moved to This Tender forum is no longer maintained or monitored.

Single application to create a web application and Rest API'S

shrutiaggarwal3012's Avatar


23 Nov, 2015 06:03 PM

Can i create a single slim framework application for a web application with Restful API's which will be used by mobile apps.

The point is for restful apis authentication will be based upon token for which i have used middleware to check token in each call.
But for web application I need to set cookie which is set like this $app->setCookie('foo', 'bar', '2 days'); so it will be set for whole application in which I am creating restful apis for mobile also.

So do i need to create two slim applications for mobile apps and web application respectively?

  1. 1 Posted by Konijima on 24 Nov, 2015 08:06 PM

    Konijima's Avatar

    I am also asking myself this question.
    Btw Slim is super slick! :)

  2. 2 Posted by shrutiaggarwal3... on 25 Nov, 2015 01:25 PM

    shrutiaggarwal3012's Avatar

    @konjima yeah its easy to use well id you find any answer to this please let me know.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac