Skip to content

Instantly share code, notes, and snippets.

@yourwebmaker
Last active January 15, 2016 15:10
Show Gist options
  • Save yourwebmaker/03cf1d1bf6d0e0407bea to your computer and use it in GitHub Desktop.
Save yourwebmaker/03cf1d1bf6d0e0407bea to your computer and use it in GitHub Desktop.
How to better organize files in non-framework PHP projects. Como organizar melhor arquivos em projetos PHP que não usam frameworks
/public/
    /js/
        /jquery.js
        /app.js
    /css/
        app.css
        some-optional-css-framework.css
    /index.php
    /config.php
    /config_dev.php
    /config_prod.php
/src/
    Source1.php
    Source2.php
    Source3.php
    SourceN.php
/index.php
/routes.php
/assets/
    /css/
        app.css
    /js/
        app.js
    /img/
        logo.png
    /media/
        song-1.mp4
/models/
    User.php
/helpers/
    /date.php
    /string.php
    /time.php
/controllers/
    UserController.php
/views/
    /partials/
        /app-header.php
    user.php
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment