PHP code example of symfinity / ui-action
1. Go to this page and download the library: Download symfinity/ui-action 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/ */
symfinity / ui-action example snippets
use Symfinity\UiAction\ActionIntent;
use Symfinity\UiAction\ActionMarkupContext;
use Symfinity\UiAction\NativeActionRules;
$rules = new NativeActionRules();
$result = $rules->validate(
ActionIntent::Navigate,
new ActionMarkupContext('a', ['href' => '/dashboard']),
);