PHP code example of godbout / alfred-workflow-workflow
1. Go to this page and download the library: Download godbout/alfred-workflow-workflow 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/ */
godbout / alfred-workflow-workflow example snippets
class Entrance extends BaseMenu
{
public static function scriptFilter()
{
ScriptFilter::add(
Item::create()
->title('Choose your Project')
->arg('choose_project')
);
// ...
}
class SelectFile extends BaseMenu
{
public static function scriptFilter()
{
ScriptFilter::add(
Item::create()
->title('Delete File')
->arg('do')
->variable('action', 'deleteFile'),
Item::create()
->title('Copy File')
->arg('do')
->variable('action', 'copyFile');
);
// ...
}
}