PHP code example of ysugimoto / flame
1. Go to this page and download the library: Download ysugimoto/flame 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/ */
ysugimoto / flame example snippets
# app/Config/Autoload.php
class Autoload extends AutoloadConfig
{
...
public $helpers = ["flame"];
...
}
echo flame("[Asset Filename]");
echo flame_preload("[Asset Filename]");
echo flame("@main");
// app/Config/Flame.php
class Flame extends FlameConfig
{
...
public FetchMode $mode = FetchMode::HTTP;
public string $baseUrl = "https://[yourdomain]/";
...
}
shell
php spark flame:setup