Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

PHP 7.1 sample application

NotificationsYou must be signed in to change notification settings

patrickallaert/php-sample-application

Repository files navigation

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 toolsmake &wget

Setup

  1. Runmake 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 loadsql/db.sql.
  4. Configure Apache:
<VirtualHost*:80>ServerName %application.host.name%DocumentRoot /%path-to-repository%/web    <Directory/%path-to-repository%>Require all grantedAllowOverride all    </Directory>php_admin_valueinclude_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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp