Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP

Carl Mungazi
Carl Mungazi
9,071 Points

Using slimPHP for simple practice web app

Hello,

I am creating a simple web app where I want to practice my CSS skills (and possibly some Javascript & PHP) by recreating the designs of popular sites without looking at the source code.

I decided to use the slimPHP framework after going through the tutorial available here. Has anyone here used slimPHP for any professional or personal development? I am trying to work out how to organise my file structure.

Currently, it is like this:

assets/
    *various files*
app.log
composer.json
composer.lock
index.php
js/
templates/
     *various files*
vendor/
     *various files*

I have seen other files structures at http://www.slimframework.com/2011/09/24/how-to-organize-a-large-slim-framework-application.html and https://github.com/briannesbitt/nesbot.com which look nothing like mine so I'm confused about the best practice.

This is my first time working with a framework.

Cheers,