Download the PHP package godbout/alfred-workflow-php without Composer

On this page you can find all versions of the php package godbout/alfred-workflow-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package alfred-workflow-php

PHP Alfred Workflow ScriptFilter

Latest Stable Version Build Status Quality Score Code Coverage Total Downloads


Why

Starting with Alfred 3.4.1 you can define variables for individual items and variables and icon for each various modifiers (ctrl, cmd, shift, fn, alt) of each item. That makes rendering the results for Alfred a little tougher than usual with the current tools available, hence this package.

If you don't need the new fields introduced by Alfred 3.4.1 and 3.5, you might want to use Joe Tannenbaum's package. His API might be a little less heavier than mine.

Installation

Usage

The main ScriptFilter class is a singleton. You can create many instances of all the other classes: Item, Variable, Icon, and the Mod classes: Ctrl, Fnn, Shift, Alt, and Cmd.

You may check the structure and options of the Alfred Script Filter JSON Format here: https://www.alfredapp.com/help/workflows/inputs/script-filter/json/

will result in:

You can add items, variables, rerun automatically your script:

will result in:

You can sort your results ascendingly, descendingly, by title or anything else:

You can filter your results (you might want to do this with the input from the user) based on any field from your items:

Helpers

There's a couple of helpers that should make your code a bit more enjoyable to write. (Or not.)

ScriptFilter

The ScriptFilter can be written using a fluent interface:

Item

Icon

Variable

Full API

You might want to check the tests to see the full API: tests

The API should mostly help you avoid typing too much and putting wrong data where Alfred is expecting something strict.

Alternatives


All versions of alfred-workflow-php with dependencies

PHP Build Version
Package Version
Requires php Version ^7.3 || ^8.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package godbout/alfred-workflow-php contains the following files

Loading the files please wait ....