2017 © Pedro Peláez
 

library moves

PHP wrapper library for Moves API

image

borivojevic/moves

PHP wrapper library for Moves API

  • Sunday, March 16, 2014
  • by borivojevic
  • Repository
  • 6 Watchers
  • 23 Stars
  • 208 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 3 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Build Status Scrutinizer Quality Score Code Coverage Latest Stable Version, (*1)

moves-api-php

PHP client for Moves API., (*2)

Inspired by moves Ruby Gem., (*3)

Installation

Recommend way to install this package with Composer. Add borivojevic/moves-api-php to your composer.json file., (*4)

``` json { "require": { "borivojevic/moves": "1.1.0" } }, (*5)


To install composer run:

curl -s http://getcomposer.org/installer | php, (*6)


To install composer dependences run:

php composer.phar install, (*7)


You can autoload all dependencies by adding this to your code:

require 'vendor/autoload.php';, (*8)


### Usage ### The main entry point of the library is the Moves\Moves class. API methods require to be signed with valid access token parameter which you have to provide as a first argument of the constructor. ```php $Moves = new \Moves\Moves($accessToken);

Get Profile, (*9)

$Moves->profile();

Daily summaries, (*10)

$Moves->dailySummary(); # current day
$Moves->dailySummary('2013-11-20'); # any day
$Moves->dailySummary('2013-W48'); # any week
$Moves->dailySummary('2013-11'); # any month

# Date range - max 31 days
$Moves->dailySummary('2013-11-10', '2013-11-20');
$Moves->dailySummary(array('from' => '2013-11-10', 'to' => '2013-11-20'));

$Moves->dailySummary(array('pastDays' => 3)); # past 3 days

# also supports DateTime objects
$Moves->dailySummary(new DateTime('2013-11-20'));
$Moves->dailySummary(new DateTime('2013-11-10'), new DateTime('2013-11-20'));
$Moves->dailySummary(array('from' => new DateTime('2013-11-10'), 'to' => new DateTime('2013-11-20')));

Daily activities, (*11)

$Moves->dailyActivities(); # current day
$Moves->dailyActivities('2013-11-20'); # any day
$Moves->dailyActivities('2013-W48'); # any week

# Date range - max 7 days
$Moves->dailyActivities('2013-11-10', '2013-11-20');
$Moves->dailyActivities(array('from' => '2013-11-10', 'to' => '2013-11-20'));

$Moves->dailyActivities(array('pastDays' => 3)); # past 3 days

Daily places, (*12)

$Moves->dailyPlaces(); # current day
$Moves->dailyPlaces('2013-11-20'); # any day
$Moves->dailyPlaces('2013-W48'); # any week

# Date range - max 7 days
$Moves->dailyPlaces('2013-11-10', '2013-11-20');
$Moves->dailyPlaces(array('from' => '2013-11-10', 'to' => '2013-11-20'));

$Moves->dailyPlaces(array('pastDays' => 3)); # past 3 days

Daily storyline, (*13)

$Moves->dailyStoryline(); # current day
$Moves->dailyStoryline('2013-11-20'); # any day
$Moves->dailyStoryline('2013-W48'); # any week

# Date range - max 7 days
$Moves->dailyStoryline('2013-11-10', '2013-11-20');
$Moves->dailyStoryline(array('from' => '2013-11-10', 'to' => '2013-11-20'));

$Moves->dailyStoryline(array('pastDays' => 3)); # past 3 days

# Get daily storyline with track points
$Moves->dailyStoryline(array('trackPoints' => 'true'));
$Moves->dailyStoryline('2013-11-10', array('trackPoints' => 'true'));

Versioning

The library uses Semantic Versioning, (*14)

The library is licensed under the MIT license., (*15)

The Versions

16/03 2014

1.1.x-dev

1.1.9999999.9999999-dev https://github.com/borivojevic/moves-api-php

PHP wrapper library for Moves API

  Sources   Download

MIT

The Requires

 

The Development Requires

api moves

16/03 2014

dev-master

9999999-dev https://github.com/borivojevic/moves-api-php

PHP wrapper library for Moves API

  Sources   Download

MIT

The Requires

 

The Development Requires

api moves

16/03 2014

1.1.0

1.1.0.0 https://github.com/borivojevic/moves-api-php

PHP wrapper library for Moves API

  Sources   Download

MIT

The Requires

 

The Development Requires

api moves

01/12 2013

1.0.x-dev

1.0.9999999.9999999-dev https://github.com/borivojevic/moves-api-php

PHP wrapper library for Moves API

  Sources   Download

MIT

The Requires

 

The Development Requires

api moves

01/12 2013

1.0.1

1.0.1.0 https://github.com/borivojevic/moves-api-php

PHP wrapper library for Moves API

  Sources   Download

MIT

The Requires

 

The Development Requires

api moves

01/12 2013

1.0.0

1.0.0.0 https://github.com/borivojevic/moves-api-php

PHP wrapper library for Moves API

  Sources   Download

MIT

The Requires

 

The Development Requires

api moves