GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - patrickallaert/php-sample-application: PHP 7.1 sample application

BranchesTags
Open more actions menu

Latest commit

 

History

7 Commits
7 Commits

Folders and files

NameName
Last commit message
Last commit date
config-dev
config-dev
 
 
dic
dic
 
 
logs
logs
 
 
sql
sql
 
 
src
src
 
 
web
web
 
 
.gitignore
.gitignore
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
autoloader.php
autoloader.php
 
 
bootstrap.php
bootstrap.php
 
 
composer.json
composer.json
 
 
error_handler.php
error_handler.php
 
 

Repository files navigation

PHP 7.1 sample application

Sample PHP applications that uses:

  • Dependency Injection
  • Apache routing
  • Composer (aka: Not reinventing the wheel)

Requirements

  • Unix-like operating systems
  • Apache
  • MariaDB/MySQL
  • PHP >= 7.1
  • Command line tools make & wget

Setup

  1. Run make from project root.
  2. Create a 'sampleuser' MariaDB/MySQL account, by default, application is configured to use password 'samplepass'.
  3. Create the 'sample' database and load sql/db.sql.
  4. Configure Apache:
<VirtualHost *:80>
    ServerName %application.host.name%
    DocumentRoot /%path-to-repository%/web

    <Directory /%path-to-repository%>
        Require all granted
        AllowOverride all
    </Directory>

    php_admin_value include_path "/%path-to-repository%/"

    Include /%path-to-repository%/config/vhost.conf
</VirtualHost>

You are all set, point your browser to http://%application.host.name%/

About

PHP 7.1 sample application

Resources

Readme
Activity

Stars

34 stars

Watchers

1 watching

Forks

127 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.