letsmoe/blade

Lightweight API framework including caching, routing and database access.

Maintainers

Details

github.com/Letsmoe/blade

Source

Issues

Installs: 49

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/letsmoe/blade

2.3.2 2023-02-10 08:28 UTC

This package is auto-updated.

Last update: 2025-09-10 14:20:29 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.