2017 © Pedro Peláez
 

library datasift-php

image

datasift/datasift-php

  • Tuesday, August 1, 2017
  • by choult
  • Repository
  • 52 Watchers
  • 25 Stars
  • 6,563 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 6 Forks
  • 5 Open issues
  • 17 Versions
  • 2 % Grown

The README.md


This project is no longer actively maintained. Proceed at your own risk!, (*1)


DataSift PHP Client Library

Latest Version on Packagist Software License Build Status Codecov, (*2)

This is the official PHP library for accessing Datasift. See the examples folder for some simple example usage., (*3)

Getting Started

To get started choose one of our quick start guides:, (*4)

Simple example

This example looks for anything that contains the word "datasift" and simply prints the content to the screen as they come in., (*5)

createDefinition('interaction.content contains "datasift"');
  // Get an HTTP stream consumer for that definition
  $consumer = $def->getConsumer(DataSift_StreamConsumer::TYPE_HTTP, new EventHandler());
  // Consume it - this will not return unless the stream gets disconnected
  $consumer->consume();
?>

See the DataSift documentation for full details of the data contained within each interaction. See this page on our developer site for an example interaction: http://dev.datasift.com/docs/targets/interaction/mapping, (*6)

Requirements

  • PHP 5 with the cURL extension enabled and openssl for SSL support
  • JSON (included in PHP 5.2+, otherwise use http://pecl.php.net/package/json)

The library will use SSL connections by default. While we recommend using SSL you may disable it if required by passing false as the third parameter when creating a user, or by calling $user->enableSSL(false) on the user object., (*7)

Testing

To test the library itself, run the tests:, (*8)

composer test

Contributing

Please see CONTRIBUTING for details., (*9)

Credits

License

All code contained in this repository is Copyright 2011-2015 MediaSift Ltd., (*10)

This code is released under the MIT License (MIT). Please see License File for more information., (*11)

The Versions

01/08 2017

dev-master

9999999-dev https://github.com/datasift/datasift-php

  Sources   Download

MIT

The Requires

  • ext-curl *
  • php >=5.3.0

 

The Development Requires

api client datasift

25/04 2017

dev-tlc

dev-tlc https://github.com/datasift/datasift-php

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-curl *

 

The Development Requires

api client datasift

24/04 2017

dev-develop

dev-develop

  Sources   Download

The Requires

  • ext-curl *

 

21/09 2016

dev-feature/test-travis-code-coverage

dev-feature/test-travis-code-coverage

  Sources   Download

The Requires

  • ext-curl *

 

22/08 2016

2.7.1

2.7.1.0

  Sources   Download

The Requires

  • ext-curl *

 

09/08 2016

2.7.0

2.7.0.0

  Sources   Download

The Requires

  • ext-curl *

 

02/03 2016

2.6.0

2.6.0.0

  Sources   Download

The Requires

  • ext-curl *

 

17/12 2015

dev-feature/big_int_fix

dev-feature/big_int_fix

  Sources   Download

The Requires

  • ext-curl *

 

04/12 2015

2.5.1

2.5.1.0

  Sources   Download

The Requires

  • ext-curl *

 

20/11 2015

2.5.0

2.5.0.0

  Sources   Download

The Requires

  • ext-curl *

 

04/11 2015

2.4.1

2.4.1.0

  Sources   Download

The Requires

  • ext-curl *

 

09/10 2015

2.4.0

2.4.0.0

  Sources   Download

The Requires

  • ext-curl *

 

15/09 2015

2.3.0

2.3.0.0

  Sources   Download

The Requires

  • ext-curl *

 

19/08 2015

2.2.2

2.2.2.0

  Sources   Download

The Requires

  • ext-curl *

 

18/05 2015

2.2.1

2.2.1.0

  Sources   Download

The Requires

  • ext-curl *

 

15/05 2015

2.2.0

2.2.0.0

  Sources   Download

The Requires

  • ext-curl *

 

18/02 2014

2.1.7

2.1.7.0

  Sources   Download

The Requires

  • ext-curl *