API Reference
This section contains complete reference documentation for the Marwa Framework.
What’s Inside
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