2017 © Pedro Peláez
 

library php-rtm

Remember The Milk API client for PHP

image

bartosz-maciaszek/php-rtm

Remember The Milk API client for PHP

  • Friday, September 27, 2013
  • by bartosz-maciaszek
  • Repository
  • 2 Watchers
  • 9 Stars
  • 506 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 0 Open issues
  • 7 Versions
  • 1 % Grown

The README.md

Remember The Milk API client for PHP

Build Status, (*1)

Basic information

This library is created to simplify communication with Remember The Milk API. It provides simple, object-oriented interface for PHP programmers. For list of Remember The Milk API methods see here. Each group of methods has its own service class located in src/Rtm/Service/ directory., (*2)

Installation

The easiest way to start using php-rtm library is to add it as requirement to your composer.json file:, (*3)

"bartosz-maciaszek/php-rtm": "dev-master"

And update your composer dependencies., (*4)

Alternatively, you can clone this repo manually:, (*5)

git clone git://github.com/bartosz-maciaszek/php-rtm.git

Basic usage

To call any method from API you simply need to create Rtm class instance and service object and then push some basic information like your API key and secret. Additionally, you need to acquire Auth Token from Remember The Milk. To do that, user has to authorize your app. See sample-app/rtm.php file for details, it is explained step by step., (*6)

<?php

use Rtm\Rtm;

$rtm = new Rtm;
$rtm->setApiKey('Your API key');
$rtm->setSecret('Your secret');
$rtm->setAuthToken('Your Auth Token from RTM');

$taskService = $rtm->getService(Rtm::SERVICE_TASKS);
$taskList = $taskService->getList();

Response from API is wrapped in handy class Rtm\DataContainer which gives you ability to make method chains like $response->getUser()->getName() as it supports recurrency. To review its code and unit tests see src/Rtm/DataContainer.php and tests/RtmTest/DataContainerTest.php. You can easily convert this object into an array or json string by invoking toArray() or toJson() method, respectively., (*7)

Unit tests

All unit tests are located in tests/ directory. You can run them all by invoking command phpunit in main directory (where phpunit.xml is located) or individually, by invoking phpunit tests/path/to/test/class, eg. phpunit tests/RtmTest/RtmTest.php., (*8)

Sample application

Sample application that uses this library is available in sample-app/ directory., (*9)

The Versions

27/09 2013

dev-master

9999999-dev

Remember The Milk API client for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Bartosz Maciaszek

api php client rtm remember the milk

27/09 2013

1.0.4

1.0.4.0

Remember The Milk API client for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Bartosz Maciaszek

api php client rtm remember the milk

01/05 2013

1.0.3

1.0.3.0

Remember The Milk API client for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Bartosz Maciaszek

api php client rtm remember the milk

23/04 2013

1.0.2

1.0.2.0

Remember The Milk API client for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Bartosz Maciaszek

api php client rtm remember the milk

23/04 2013

1.0.1

1.0.1.0

Remember The Milk API client for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Bartosz Maciaszek

api php client rtm remember the milk

23/04 2013

1.0.0

1.0.0.0

Remember The Milk API client for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Bartosz Maciaszek

api php client rtm remember the milk

22/04 2013

1.0

1.0.0.0

Remember The Milk API client for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Bartosz Maciaszek

api php client rtm remember the milk