Spin framework application example.
To use the skeleton, simply clone the repository, run a composer update and you are ready to start making your own project.
Cloning the repository (and init a new git repo for it):
> git clone https://github.com/Celarius/spin-skeleton.git
> cd spin-skeleton
> rmdir .git
> git init
> composer update -o --no-dev
Uses the following implementations and Factories:
In order to run the skeleton an Apache VHost needs to be configured:
<VirtualHost *:80>
ServerName {alias.domain.com}
ServerAdmin webmaster@{alias.domain.com}
DocumentRoot "{path_to_web_apps}\spin-skeleton\src\public"
ErrorLog "logs/spin.skeleton-error.log"
CustomLog "logs/spin.skeleton-access.log" common
SetEnv ENVIRONMENT DEV
<Directory "{path_to_web_apps}\spin-skeleton\src\public">
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
Options -Indexes +FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
Require all granted
# Load files in this order on "/"
DirectoryIndex bootstrap.php index.php index.html
# Disable appending a "/" and 301 redirection when a directory
# matches the requested URL
DirectorySlash Off
# Set Rewrite Engine ON to direct all requests to
# the `bootstrap.php` file
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ bootstrap.php [QSA,L]
</Directory>
</VirtualHost>
SetEnv ENVIRONMENT DEV
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
DirectoryIndex bootstrap.php index.php index.html
Options -Indexes +FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
Require all granted
DirectorySlash Off
# Rewrite Engine to direct all requests to Spin bootstrap.php file
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ bootstrap.php [QSA,L]
/<AppName>
/src
/app
/Config
/Middlewares
/Controllers
/Views
/Templates
/Errors
/Pages
/Models
globals.php
/public
/storage
/logs
/cache
/vendor
/celarius/spin-framework
composer.json
/tests