Download the PHP package nathanabrewer/php-relateiq without Composer

On this page you can find all versions of the php package nathanabrewer/php-relateiq. 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 php-relateiq

OBSOLETE - php-relateiq

Simple class to quickly read and write stuff in RelateIQ. I do not have anything that is in place for Accounts at this moment, only simple Contact and List/ListItem stuff.

Install with composer

"require": {
        "nathanabrewer/php-relateiq": "0.0.*"
}

Using Laravel4? Me too! ....In you config/app.php add to your aliases array

'RelateIQ'          =>  '\nathanabrewer\RelateIQ\RelateIQ'

Example below will run two API Queries, one GET and one PUT.

$riq = new RelateIQ($key, $secret);
$contact = $riq->getContact('53c238d7e4b0d0612a7b84bd');
$contact->properties->remove('email', '[email protected]');
$contact->properties->add('email', '[email protected]');
$contact->save();

Lookup the available Lists... Make sure the List is shared with you! This will runs a single GET Request

$lists = $riq->getLists();
foreach($lists as $list){
    echo "{$list->id} -- {$list->title}\n";
}

Here, Rather than look at all the Lists, I am asking each List for List Items that contain this Contact. This will do a series of API GET requests: 1. A GET Request for all avaliable Lists (If I have not done one yet) 2. A GET Request per List for all ListItems with contact

$listItems = $riq->getAllListItemsForContact($contact);
foreach($listItems as $listItem){
    echo "Contact {$contact->getName()} (cid {$contact->id} has a ListItem {$listItem->id} on List {$listItem->listId} {$listItem->getList()->title}\n";
}

Alternatively, I could load the List, and then load the List Item. If I load an existing ListItem by its ListItem Id then we don't need to deal with the contactID

$list = $riq->getList($list_id);
$listItem = $list->getListItem($list_item_id);

Here I am interacting with my List Item. The idea here is already have the List Schema loaded, so I can define a value by its name. I will let the ListItem object determine if it is a Text/Number/List or Picklist, and set the value for the API call as appropriate.

$listItem->setField('Status', 'Active');
$listItem->setField('Drinks', array('Tea', 'Coffee', 'Water'));
$listItem->save();

All versions of php-relateiq with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.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 nathanabrewer/php-relateiq contains the following files

Loading the files please wait ....