Skip to content

jmpurtle/sample-php

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Portfolio

This is the publically available version of my portfolio's codebase. This is an example of an earlier Magnus implementation and the code is in the process of being rebuilt in the Magnus repository.

Usage

This is pretty straightforward, clone the repository to your machine and have your local webserver (XAMPP, MAMP, etc) point to the html directory as document root.

On Apache, you'll need to add this to your server configuration: RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L]

On Nginx, you'll need: location / { try_files $uri $uri/ /index.php?$args; } location ~ .php$ { include snippets/fastcgi-php.conf; fastcgi_pass unix:/var/run/php/php7.2-fpm.sock; }

This will enable the router to do its job.

A SQL file has been included to build the leads database for the contact form. Run this script in MySQL to set it up. Create a database user and replace the credentials in app/appEnv.php with that user's information.

About

⛵ App Platform sample PHP application.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • HTML 45.4%
  • PHP 29.5%
  • CSS 22.7%
  • JavaScript 2.4%