Skip to content
This repository was archived by the owner on Nov 21, 2019. It is now read-only.

Commit 15312db

Browse files
committed
Merge pull request #25 from elliotchance/master
Add composer.json
2 parents a32374a + 0270057 commit 15312db

9 files changed

+1034
-41
lines changed

.gitignore

+3-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
*.p12
77
*.cer
88
*.pfx
9-
<<<<<<< HEAD
10-
.*
11-
=======
12-
>>>>>>> 65378c19b093593e1019e5cf6b6ffc72e389ecc5
9+
.idea
10+
11+
/vendor/

.travis.yml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
language: php
2+
php:
3+
- 5.3
4+
- 5.4
5+
- 5.5
6+
- hhvm
7+
8+
install: composer install

README.md

+26-29
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,29 @@
1-
XeroOAuth-PHP
2-
-----------------------
1+
Xero API
2+
========
3+
4+
[![Latest Stable Version](https://poser.pugx.org/elliotchance/xero-api/version.svg)](https://packagist.org/packages/elliotchance/xero-api)
5+
[![Total Downloads](https://poser.pugx.org/elliotchance/xero-api/downloads.svg)](https://packagist.org/packages/elliotchance/xero-api)
6+
[![License](https://poser.pugx.org/elliotchance/xero-api/license.svg)](https://packagist.org/packages/elliotchance/xero-api)
7+
[![Build Status](https://travis-ci.org/elliotchance/xero-api.svg?branch=master)](https://travis-ci.org/elliotchance/xero-api)
8+
9+
**This is the community official package since Xero is unwilling to add composer
10+
support or clean up the library.** Please add existing pull requests and issues
11+
against this repository and we can all help fix it up :)
12+
13+
Semantic versions have been created for existing releases and will be created
14+
based on the same version from the original repository to keep it up to date. On
15+
top of that we have patches (i.e. `0.5.1`) between Xero releases.
16+
17+
There will be a suite of tests coming soon.
18+
19+
### Installation
20+
21+
```
22+
composer require elliotchance/xero-api
23+
```
24+
25+
Original README
26+
===============
327

428
PHP library for working with the Xero OAuth API.
529

@@ -112,35 +136,8 @@ Understanding the type of message you are getting from the API could be useful.
112136

113137
## License & Credits
114138

115-
This software is published under the [MIT License](http://en.wikipedia.org/wiki/MIT_License).
116-
117139
###### OAuthSimple
118140
OAuthsimple.php contains minor adaptations from the OAuthSimple PHP class by [United Heroes](http://unitedheroes.net/OAuthSimple/).
119141

120142
###### tmhOAuth
121143
XeroOAuth class is based on code and structure derived from the [tmhOAuth](https://github.com/themattharris/tmhOAuth) library.
122-
123-
## Major change history
124-
125-
#### 0.5 - 16th November 2014
126-
127-
Added examples for CRU of tracking categories and options.
128-
Updated the CA certs to a recent one - warning that if you are using a very old version of curl you may get 'cert invalid' type error.
129-
Removed an unused function and tidied up comments on another to make them more sensible.
130-
131-
#### 0.4 - 29th September 2014
132-
133-
Merged some pull requests, addressed an issue with multiple calls having signature validation issues.
134-
135-
#### 0.3 - 3rd January 2014
136-
137-
Merged a number of pull requests, tidied up formatting and extended sample tests.
138-
139-
#### 0.2 - 13th May 2013
140-
141-
Merged to master, added more tests and improved security handling for partner API apps.
142-
143-
144-
#### 0.1 - 10th May 2013
145-
146-
Initial release candidate prepared and released to 'refactor' branch.

composer.json

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"name": "elliotchance/xero-api",
3+
"description": "PHP class for the Xero API V2 http://developer.xero.com/getting-started/code/php/",
4+
"require": {
5+
"php": ">=5",
6+
"lib-curl": "*",
7+
"lib-openssl": "*"
8+
},
9+
"require-dev": {
10+
"elliotchance/concise": "*",
11+
"phpunit/phpunit": "*"
12+
},
13+
"autoload": {
14+
"classmap": ["lib/"]
15+
},
16+
"license": "MIT"
17+
}

0 commit comments

Comments
 (0)