Skip to content

Commit

Permalink
Merge pull request #132 from cgerrior/docs_timezone
Browse files Browse the repository at this point in the history
Docs timezone
  • Loading branch information
drewish committed Apr 13, 2015
2 parents 0fc5808 + f6ba039 commit 26dbcb2
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ be careful when upgrading.

## Requirements

###cURL and OpenSSL

The PHP library depends on PHP 5.3.0 (or higher) and libcurl compiled with
OpenSSL support. Open up a `phpinfo();` page and verify that under the curl
section, there's a line that says something like:
Expand All @@ -20,6 +22,19 @@ section, there's a line that says something like:
libcurl/7.19.5 OpenSSL/0.9.8g zlib/1.2.3.3 libidn/1.15
```

### Timezone
You will need to specify your server's timezone before using the Recurly PHP client. This is necessary for the library to properly handle datetime conversions. You can do this in your `php.ini` file:

```php
date.timezone = 'America/Los_Angeles'
```

or in your PHP script:

```php
date_default_timezone_set('America/Los_Angeles');
```

## Installation

### Composer
Expand Down Expand Up @@ -58,7 +73,9 @@ Load the Recurly library files and set your subdomain and API Key globally:
<?php
require_once('./lib/recurly.php');

/* https://<your-subdomain>.recurly.com */
Recurly_Client::$subdomain = 'your-subdomain';
/* your private API key */
Recurly_Client::$apiKey = '012345678901234567890123456789ab';
```

Expand Down

0 comments on commit 26dbcb2

Please sign in to comment.