Download the PHP package skyzyx/alfred-workflow-builder without Composer

On this page you can find all versions of the php package skyzyx/alfred-workflow-builder. 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-builder

Alfred Workflow Builder

Alfred Workflow Builder is a PHP class for creating workflows with Alfred 2. This class provides functions for working with plist settings files, reading and writing data to files, generating Alfred feedback results, and more.

Installation

Composer is the recommended way to install is package. Composer is dependency management tool for PHP that allows you to declare the dependencies your project needs and installs them into your project.

  1. Add skyzyx/alfred-workflow-builder as a dependency in your project's composer.json file.

  2. Download and install Composer.

  3. Install your dependencies.

  4. Require Composer's autoloader. Composer also prepares an autoload file that's capable of autoloading all of the classes in any of the libraries that it downloads. To use it, just add the following line to your code's bootstrap process.

The original version of this class (written by David Ferguson) had methods for things like caching data to local files and fetching remote data over HTTP. Instead, we recommend you use Guzzle, Requests or Buzz for HTTP requests and Doctrine Cache for local file system caching. If you'd also like logging, we recommend Monolog.


Alfred\Workflow

string toXML()

Accepts a properly formatted array or json object and converts it to XML for creating Alfred feedback results. If results have been created using the result() function, then passing no arguments will use the array of results created using the result() function.

Example using result function

Example using array

Result

array mdfind()

Executes an mdfind command and returns results as an array of matching files.

You can learn more about querying the OS X metadata service by checking out:

array result()

Creates a new result item that is cached within the class object. This set of results is available via the results() functions, or, can be formatted and returned as XML via the toXML() function.

Key Usage
uid

Unique ID for the search result. (Required)

arg

Argument for this result. This will get fed into any downstream actions. (Required)

title

The main title for the result. (Required)

subtitle

The subtitle for the result. (Required)

icon

The icon that this result should have. This should typically be icon.png. (Required)

valid

If you press enter with this result selected, should it trigger downstream actions? Valid values are "yes", "no", true and false. The default value is "yes".

autocomplete

If you press enter with this result selected, what value should pop up as an autocomplete value? (Movies is a good usage example.)

Example

Result


Alfred\Storage\Plist

string setValue()

Stores a key-value pair.

string setValues()

Stores a series of key-value pairs.

string getValue()

Retrieves the value of a key.

More!

You can learn more about Alfred 2 Workflows by checking out http://support.alfredapp.com/workflows.

You can also deconstruct some workflows that are built with Alfred Workflow Builder.


All versions of alfred-workflow-builder with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.3
seld/jsonlint Version >= 1.1
symfony/filesystem Version 2.*
symfony/process Version 2.*
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 skyzyx/alfred-workflow-builder contains the following files

Loading the files please wait ....