PHP code example of frdmn / php-alfred
1. Go to this page and download the library: Download frdmn/php-alfred 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/ */
frdmn / php-alfred example snippets
reate new workflow instance
$alfred = new \frdmn\PhpAlfred\Workflows();
// Construct array with workflow data
$array = [
[
'uid' => 0,
'arg' => 'test',
'title' => 'Title'
]
];
// Print XML
print $alfred->toXML($array);