Slim 2 was fairly straight forward, as I'm sure Slim 3 is too, but I just don't get it. Any help would be appreciated. I'm using readfile method from php:. This example is from the link above, maybe you can try to implement theses headers with the Slim Response object and WithHeader method.
There are more info in Slim documentation. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Slim 3 Framework how to download file Ask Question. Asked 5 years, 8 months ago. Active 3 years, 11 months ago. Viewed 17k times. But they are often overkill. Instead, Slim provides only a minimal set of tools that do what you need and nothing else.
First, you need a web server like Nginx or Apache. You instantiate and run your Slim app in this PHP file. Each route invokes a callback and returns an HTTP response. To get started, you first instantiate and configure the Slim application. Next, you define your application routes. Finally, you run the Slim application. Use any Container-Interop container.
We are excited to announce the Slim 4. The docs are located here. Please direct all your feedback for this release to the Slim 4 Release Feedback Thread. The new docs are located here. Subscribe with RSS. We can be found on Slack at slimphp. Get Access to the Slack Channel.
The official Freenode IRC channel is slimphp. Visit the IRC Channel.
0コメント