1. Go to this page and download the library: Download fyre/engine library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
fyre / engine example snippets
use Fyre\Engine\Engine;
Engine::bootstrap();
Engine::middleware($queue);
Engine::routes();
$lang = __($key, $data);
abort($code, $message);
$url = asset($path);
$auth = auth();
authorize($rule, ...$args);
$cacher = cache($key);
$result = can($rule, ...$args);
$result = can_any($rules, ...$args);
$result = can_none($rule, ...$args);
$result = cannot($rule, ...$args);
$collection = collect($source);
$value = config($key, $default);
$connection = db($key);
dd(...$data);
dump(...$data);
$email = email($key);
$encrypter = encryption($key);
$escaped = escape($string);
$response = json($data);
log_message($type, $message, $data);
$loggedIn = logged_in();
$model = model($alias);
$now = now();
queue($className, $arguments, $options);
$response = redirect($uri, $code, $options);
$request = request();
$value = request($key, $filter, $options);
$response = response();
$route = route($name, $arguments, $options);
$value = session($key);
session($key, $value);
$typeClass = type($type);
$user = user();
$view = view($template, $data, $layout);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.