The Slim Framework support forum has moved to http://discourse.slimframework.com. This Tender forum is no longer maintained or monitored.

Installing slim v3 without composer (e.g. on shared hosting environments)

Matthias Einbrodt's Avatar

Matthias Einbrodt

02 Nov, 2015 10:31 AM

Hi,

I was able to run slim 2 on a shared hosting environment without using composer. To do so I followed the following description: http://www.codediesel.com/php/how-to-manually-install-slim-framework/

Will the same or a similar approach also be possible with slim 3?

With best regards, Matthias

  1. Support Staff 1 Posted by Rob Allen on 02 Nov, 2015 10:34 AM

    Rob Allen's Avatar

    The best approach is to use composer in development and then add the vendor folder to your version control system,

    You can then deploy the complete application to any server and do not need composer for deployment.

    Regards,

    Rob...

  2. 2 Posted by mfarzanegan on 05 Jan, 2016 08:32 AM

    mfarzanegan's Avatar

    This is my question too.
    I DONT have access to use composer

    is there any way to use without any webserver configuration?

    why did you named it MICROframework? it's a framework with these requirements.

  3. Support Staff 3 Posted by Rob Allen on 05 Jan, 2016 08:39 AM

    Rob Allen's Avatar

    Calling it a micro framework has nothing to do with the way dependencies are managed.

    The PHP community has decided that composer is the way to manage dependencies in these same way that the NodeJS community uses npm, Perl uses CPAN, Python uses pop, Ruby uses gems, etc..

    Please read https://akrabat.com/using-composer-with-shared-hosting/ for details on how to use Composer on your local computer to manage your project's dependencies so that you do NOT have to run composer anywhere else.

  4. 4 Posted by chanh.ong on 05 Jan, 2016 10:51 PM

    chanh.ong's Avatar

    Some shared host do let you use composer but Rob Allen instruction is good if your host won't let you use composer.

  5. 5 Posted by Marek on 28 Apr, 2017 06:02 PM

    Marek's Avatar

    @ Rob Allen, Slim is often used to build APIs. There is no need to use Composer for such a thing. Standard router is completely fine. Installing Composer for a small project as API is just a waste of time.

  6. 6 Posted by John Smith on 13 Dec, 2018 07:58 AM

    John Smith's Avatar

    I believe it is incorrect to state 'The PHP community'. I believe a more accurate way of putting that would be SOME members of the PHP community. Not all of us use or want to use Composer for managing dependencies.

  7. Josh Lockhart closed this discussion on 12 Feb, 2021 07:37 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? 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