Download the PHP package bartosz-maciaszek/php-rtm without Composer

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

Remember The Milk API client for PHP

Build Status

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.

Installation

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

And update your composer dependencies.

Alternatively, you can clone this repo manually:

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.

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.

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.

Sample application

Sample application that uses this library is available in sample-app/ directory.


All versions of php-rtm 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 bartosz-maciaszek/php-rtm contains the following files

Loading the files please wait ....