allejo/php-wufoo

This package is abandoned and no longer maintained. No replacement package was suggested.

A wrapper for working with the Wufoo API

dev-master 2017-07-05 20:20 UTC

This package is auto-updated.

Last update: 2020-07-22 21:16:16 UTC


README

Stable Release Dev Release Build Status Scrutinizer Code Quality Code Coverage

Another wrapper for the Wufoo API that takes a slightly different approach from the original and its forks.

Usage

Use Composer to add the allejo/php-wufoo package to your dependencies.

composer require allejo/php-wufoo

Examples

This wrapper takes a different approach and it's core functionality is available in the WufooForm class.

This wrapper assumes that you'll be working with only one Wufoo account. For that reason, you configure API access at a global level by including the following before you start using the API.

use allejo\Wufoo\WufooForm;

WufooForm::configureApi('fishbowl', 'AOI6-LFKL-VM1Q-IEX9');

Getting Form Details

use allejo\Wufoo\WufooForm;

// Get details for all your Wufoo forms
$forms = WufooForm::getForms();

// Get details about an individual Wufoo form
$form = new WufooForm('wufoo-api-example');
$form->getDetails();

Getting Form Entries

Creating filters and queries for retrieving entries for forms no longer requires you to remember or lookup the specific keywords and capitalization that the API expects. Just rely on your IDE's intellisense and you're set.

use allejo\Wufoo\EntryFilter;
use allejo\Wufoo\EntryQuery;
use allejo\Wufoo\WufooForm;

$form = new WufooForm('wufoo-api-example');
$eq = EntryQuery::create()
    ->where([
        EntryFilter::create('EntryId')->lessThan(15)
    ])
    ->limit(10)
    ->getSystemFields()
;

$entries = $form->getEntries($eq);

License

MIT