letsmoe/blade

Lightweight API framework including caching, routing and database access.

2.3.2 2023-02-10 08:28 UTC

This package is auto-updated.

Last update: 2025-06-10 13:54:13 UTC


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.