letsmoe / blade
Lightweight API framework including caching, routing and database access.
Installs: 49
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/letsmoe/blade
README
Blade is a fully featured API framework for building web applications that require fast and lightweight development.
Installation
Blade can be installed via composer using the following command
composer require letsmoe/blade
Once it has been installed, you can include the composer autoload script in your application like so:
include_once "vendor/autoload.php";
Usage
Blade provides multiple methods for loading a new App. Since Blade relies on a specific form of htaccess, we recommend you use this template:
RewriteEngine on
RewriteRule ^(?!/index)(.*) /index/$1 [L]
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
App
Blade comes preloaded with an App
class which provides all the methods you need to specify routes in your application.