Hello, I can’t find how to create a slim version 2 project, that is, I don’t know how to specify a version when creating a project. This command creates a project for slim 3 (latest version)

php composer.phar create-project slim / slim-skeleton mysitename

Please help.

    1 answer 1

    This is how it adds the latest release from the 2.x branch.

    composer require slim/slim "^2.0" 

    enter image description here

    Create a project on version 2.6.2

     composer create-project slim/slim=2.6.2 super-project --prefer-dist 
    • Yes, since it downloads the framework itself, but I would really like to create a "project skeleton", as in the official documentation of version 3 - russell
    • Updated his post, create a project on version 2.6.2 - Redr01d