Sample PHP applications that uses:
- Dependency Injection
- Apache routing
- Composer (aka: Not reinventing the wheel)
- Unix-like operating systems
- Apache
- MariaDB/MySQL
- PHP >= 7.1
- Command line tools
make
&wget
- Run
make
from project root. - Create a 'sampleuser' MariaDB/MySQL account, by default, application is configured to use password 'samplepass'.
- Create the 'sample' database and load sql/db.sql.
- 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%/