Here are some functions I use regulary in my PHP projects, when I use the PHP Fat Free Framework.
Usually the files included are just snippets. You probably need to adapt them to your application.
All my projects are set up like this:
app/ // all my source code for the current app
configs/ // the config files included
libs/ // the F3 source code
public/ // the web root
themes/ // The template files
I might release my F3 setup in a different Github repo, if I feel it's ready.
An easy to use way to implement css and js files of your current theme.
A loader for all config files in a folder. Also allows staging.
Copyright (C) 2014 Oliver Hermanni
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.