PHP code example of putyourlightson / craft-datastar-module
1. Go to this page and download the library: Download putyourlightson/craft-datastar-module 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/ */
putyourlightson / craft-datastar-module example snippets
use craft\base\Plugin;
use putyourlightson\datastar\Datastar;
class MyPlugin extends Plugin
{
public function init()
{
parent::init();
Datastar::bootstrap();
}
}