An open API service indexing awesome lists of open source software.

https://github.com/caub/azer

some old php code
https://github.com/caub/azer

Last synced: over 1 year ago
JSON representation

some old php code

Awesome Lists containing this project

README

          

azer
=======

minimal PHP framework

note:

You will need to set your webserver to redirect all request like "/myApp/foo/bar" to index.php

for ex with an Apache .htaccess in www/myApp/ folder:


RewriteEngine On
RewriteRule ^/?(javascript|css|img) - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]

or in your apache sites-enabled config:


RewriteEngine On
RewriteRule ^/?myApp/(javascript|css|img) - [L,NC]
RewriteCond %{REQUEST_URI} ^/?myApp [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /myApp/index.php [L]


and finally, you also need to set your server to allow CORS, (ex on Apache http://enable-cors.org/server_apache.html)