marwa-framework

API Reference

This section contains complete reference documentation for the Marwa Framework.

What’s Inside

Category Description
Application Application class and methods
Configuration All configuration keys
Middleware Available middleware
Events Framework events
Facades Facade reference
Helpers Helper functions

Quick Reference

Core Methods

// Application
$app = new Application($basePath);
$app->boot();
$app->make($class);
$app->handle($request);

// Router
Router::get($path, $handler);
Router::post($path, $handler);
Router::put($path, $handler);
Router::delete($path, $handler);

Facades

// Available facades
app()          // Application instance
cache()        // Cache service
config()       // Configuration
event()       // Event dispatcher
http()        // HTTP client
mail()        // Mail service
router()      // Router
security()    // Security
session()     // Session
storage()     // Storage
view()        // View renderer

Helpers

// Available helpers
base_path($path);
config($key, $default);
app($abstract);
route($name);
redirect($to);
back();
view($template, $data);

Finding What You Need

If you need… Look at…
How to configure app Configuration
Available events Events
Middleware options Middleware
Helper functions Helpers
Facade methods Facades