diff --git a/.gitattributes b/.gitattributes index aa98fbf..dd7995c 100644 --- a/.gitattributes +++ b/.gitattributes @@ -3,12 +3,15 @@ .gitignore text eol=lf export-ignore .gitkeep text eol=lf export-ignore -# PHP -*.php text eol=lf +# Markdown +*.md text eol=lf # JSON *.json text eol=lf *.lock text eol=lf +# PHP +*.php text eol=lf + # YAML *.yml text eol=lf diff --git a/.gitignore b/.gitignore index f39dca2..4c0165e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ # Chandler /extensions/available/ /extensions/enabled/ +/logs/ /chandler.yml # Composer @@ -22,6 +23,3 @@ !/tmp/cache/database/.gitkeep !/tmp/cache/templates/.gitkeep !/tmp/cache/yaml/.gitkeep - -/logs/* -!/logs/.gitkeep diff --git a/README.md b/README.md deleted file mode 100644 index 71104e6..0000000 --- a/README.md +++ /dev/null @@ -1,9 +0,0 @@ -# Chandler -Chandler is PHP-based web-framework/web-portal. By itself it's pretty useless, but you can install plugins/apps. - -# Plugins -Plugins may provide a Web Application or be a library or hook. -Web Apps are mounted to a path like this: `/` (where `id = app id`), but one app can be mounted to root. - -# State of this repo -This product is still in development phase, we are currently writing documentation/tests and API is going to change. diff --git a/ReadMe.md b/ReadMe.md new file mode 100644 index 0000000..24d72cc --- /dev/null +++ b/ReadMe.md @@ -0,0 +1,47 @@ +# Chandler +Chandler is PHP-based web-framework/web-portal. By itself it's pretty useless, but you can install plugins/apps. + +# Plugins +Plugins may provide a Web Application or be a library or hook. +Web Apps are mounted to a path like this: `/` (where `id = app id`), but one app can be mounted to root. + +# State of this repo +This product is still in development phase, we are currently writing documentation/tests and API is going to change. + +# Installation # + +## Web Server ## + +### Apache ### + +```shell +a2enmod rewrite +``` + +# Configuration # + +## Web Server ## + +### Apache ### + +```apache + + + + RewriteBase / + RewriteEngine On + RewriteCond %{REQUEST_FILENAME} !-f + RewriteRule ^.*$ index.php [L,NC,QSA] + + AllowOverride None + DirectoryIndex index.php + Require all granted + + CustomLog "/absolute/path/to/access.log" combined + DocumentRoot "/absolute/path/to/chandler/public" + ErrorLog "/absolute/path/to/chandler/error.log" + ServerAdmin email@example.com + ServerAlias www.example.com + ServerName example.com + +``` diff --git a/docs/.gitkeep b/docs/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/public/.htaccess b/public/.htaccess deleted file mode 100644 index ac71467..0000000 --- a/public/.htaccess +++ /dev/null @@ -1,5 +0,0 @@ -RewriteEngine On - -RewriteCond %{REQUEST_FILENAME} !-f -RewriteCond %{REQUEST_FILENAME} !-d -RewriteRule (.*) index.php [QSA] diff --git a/src/Interfaces/Route.php b/src/Interfaces/Route.php new file mode 100644 index 0000000..5938c06 --- /dev/null +++ b/src/Interfaces/Route.php @@ -0,0 +1,12 @@ +