PHPackages                             borivojevic/moves - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. borivojevic/moves

ActiveLibrary[API Development](/categories/api)

borivojevic/moves
=================

PHP wrapper library for Moves API

1.1.0(12y ago)242381[2 issues](https://github.com/borivojevic/moves-api-php/issues)MITPHPPHP &gt;=5.3.1

Since Dec 1Pushed 10y ago5 watchersCompare

[ Source](https://github.com/borivojevic/moves-api-php)[ Packagist](https://packagist.org/packages/borivojevic/moves)[ Docs](https://github.com/borivojevic/moves-api-php)[ RSS](/packages/borivojevic-moves/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (3)Dependencies (2)Versions (6)Used By (0)

[![Build Status](https://camo.githubusercontent.com/cd7f150917af14c001445c787cf0463a3a398c2c774821e3dd7a0cc3837a4e85/68747470733a2f2f7472617669732d63692e6f72672f626f7269766f6a657669632f6d6f7665732d6170692d7068702e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/borivojevic/moves-api-php)[![Scrutinizer Quality Score](https://camo.githubusercontent.com/f1ed9d1d7ed5a4402033657d5e9d7aa974dfe4945db888463f770145bc869373/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f626f7269766f6a657669632f6d6f7665732d6170692d7068702f6261646765732f7175616c6974792d73636f72652e706e673f733d37376630303037396539363266376338303135366139646335316130396466643732643334343035)](https://scrutinizer-ci.com/g/borivojevic/moves-api-php/)[![Code Coverage](https://camo.githubusercontent.com/c3dc36081b77f145449be5e2e02a9d5484d131a60526a010aeec31a4db167ec6/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f626f7269766f6a657669632f6d6f7665732d6170692d7068702f6261646765732f636f7665726167652e706e673f733d38323033613461393931333866373836333063653364653732393264376162343839663531353239)](https://scrutinizer-ci.com/g/borivojevic/moves-api-php/)[![Latest Stable Version](https://camo.githubusercontent.com/d2a7e65b5b806ede7572f07a923deab005821ebc2059d88bea569fea3ed1c6dc/68747470733a2f2f706f7365722e707567782e6f72672f626f7269766f6a657669632f72657363756574696d652f762f737461626c652e706e67)](https://packagist.org/packages/borivojevic/moves)

moves-api-php
=============

[](#moves-api-php)

PHP client for [Moves API](https://dev.moves-app.com/).

Inspired by [moves](https://github.com/ankane/moves) Ruby Gem.

### Installation

[](#installation)

Recommend way to install this package with [Composer](http://getcomposer.org/). Add borivojevic/moves-api-php to your composer.json file.

```
{
    "require": {
        "borivojevic/moves": "1.1.0"
    }
}
```

To install composer run:

```
curl -s http://getcomposer.org/installer | php

```

To install composer dependences run:

```
php composer.phar install

```

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

```
require 'vendor/autoload.php';

```

### Usage

[](#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.

```
$Moves = new \Moves\Moves($accessToken);
```

[Get Profile](https://dev.moves-app.com/docs/api_profile)

```
$Moves->profile();
```

[Daily summaries](https://dev.moves-app.com/docs/api_summaries)

```
$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](https://dev.moves-app.com/docs/api_activities)

```
$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](https://dev.moves-app.com/docs/api_places)

```
$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](https://dev.moves-app.com/docs/api_storyline)

```
$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

[](#versioning)

The library uses [Semantic Versioning](http://semver.org/)

### Copyright and License

[](#copyright-and-license)

The library is licensed under the MIT license.

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~26 days

Total

5

Last Release

4489d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/184440?v=4)[Mirko Borivojevic](/maintainers/borivojevic)[@borivojevic](https://github.com/borivojevic)

---

Top Contributors

[![borivojevic](https://avatars.githubusercontent.com/u/184440?v=4)](https://github.com/borivojevic "borivojevic (29 commits)")

---

Tags

apimoves

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/borivojevic-moves/health.svg)

```
[![Health](https://phpackages.com/badges/borivojevic-moves/health.svg)](https://phpackages.com/packages/borivojevic-moves)
```

###  Alternatives

[teepluss/api

Laravel 4 Internal Request (HMVC)

7034.1k](/packages/teepluss-api)[dan/shopify-api

Shopify API for PHP

218.3k](/packages/dan-shopify-api)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
