frdmn/php-alfred

Library to create Alfred workflows using PHP

0.3.6 2017-01-01 07:57 UTC

This package is not auto-updated.

Last update: 2024-09-14 19:04:04 UTC


README

Forked from @jdfwarrior/Workflows to create a Packagist/Composer package.

See dferg.us for full class documentation.

Usage

<?php
require __DIR__ . '/vendor/autoload.php';

// Create 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);

Installation

  1. Install using Composer:
    composer require frdmn/php-alfred

Contributing

  1. Fork it
  2. Create your feature branch: git checkout -b feature/my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin feature/my-new-feature
  5. Submit a pull request

Requirements / Dependencies

  • PHP >= 5.3
  • Composer

Version

0.3.6