/phplange

Primary LanguageDockerfile

phplange 👆

My no frills docker-compose setup/project skeleton for personal web (PHP) development.

This is ever evolving and subject to improvement as time permits. Mostly it's here so I don't have so set up the same thing for every personal 'huh, I wonder how quickly I can hack this thing together?' project I start (and quickly abandon).

Contains

Composer Cheat Sheet

UI Shim Repos

post-install for Boostrap &

Add these to composer.json or, better yet, write a more cogent shell script & execute it from there.

{
    "scripts": {
        "post-update-cmd": [
            "rm -f public/css/bootstrap.min.css public/css/bootstrap.min.css.map public/scripts/bootstrap.min.js public/scripts/jquery.min.js public/scripts/bootstrap.min.js.map",
            "cp vendor/twbs/bootstrap/dist/css/bootstrap.min.* public/css/",
            "cp vendor/twbs/bootstrap/dist/js/bootstrap.min.* public/scripts/",
            "cp vendor/components/jquery/jquery.min.js public/scripts/"
        ]
    }
}

HTTP/Routing

.htaccess Setup

Use these rewrite rules in public/.htaccess to redirect all request to index.php

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [QSA,L]

Logging

Filesystem

CLI

Development