Skip to content

Commit b6bfd8c

Browse files
committed
initial commit
0 parents  commit b6bfd8c

File tree

7 files changed

+147
-0
lines changed

7 files changed

+147
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.idea/*
2+
vendor/*

.travis.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
language: php
2+
3+
php:
4+
- 5.3
5+
- 5.4
6+
- 5.5
7+
- 5.6
8+
- hhvm
9+
10+
before_script:
11+
- composer install -n --dev --prefer-source
12+
13+
script: vendor/bin/phpcs --standard=PSR2 src && vendor/bin/phpunit --coverage-text

CONTRIBUTING.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Contributing Guidelines
2+
3+
* Fork the project.
4+
* Make your feature addition or bug fix.
5+
* Add tests for it. This is important so I don't break it in a future version unintentionally.
6+
* Commit just the modifications, do not mess with the composer.json or CHANGELOG.md files.
7+
* Ensure your code is nicely formatted in the [PSR-2](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md)
8+
style and that all tests pass.
9+
* Send the pull request.
10+
* Check that the Travis CI build passed. If not, rinse and repeat.

LICENSE

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Copyright (c) 2015 Kayla Daniels
2+
3+
Permission is hereby granted, free of charge, to any person obtaining
4+
a copy of this software and associated documentation files (the
5+
"Software"), to deal in the Software without restriction, including
6+
without limitation the rights to use, copy, modify, merge, publish,
7+
distribute, sublicense, and/or sell copies of the Software, and to
8+
permit persons to whom the Software is furnished to do so, subject to
9+
the following conditions:
10+
11+
The above copyright notice and this permission notice shall be
12+
included in all copies or substantial portions of the Software.
13+
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Omnipay: Braintree
2+
3+
**Braintree driver for the Omnipay PHP payment processing library**
4+
5+
[![Build Status](https://travis-ci.org/thephpleague/omnipay-braintreee.png?branch=master)](https://travis-ci.org/thephpleague/omnipay-braintreee)
6+
[![Latest Stable Version](https://poser.pugx.org/omnipay/braintreee/version.png)](https://packagist.org/packages/omnipay/braintreee)
7+
[![Total Downloads](https://poser.pugx.org/omnipay/braintreee/d/total.png)](https://packagist.org/packages/omnipay/braintreee)
8+
9+
[Omnipay](https://github.com/thephpleague/omnipay) is a framework agnostic, multi-gateway payment
10+
processing library for PHP 5.3+. This package implements Braintree support for Omnipay.
11+
12+
## Installation
13+
14+
Omnipay is installed via [Composer](http://getcomposer.org/). To install, simply add it
15+
to your `composer.json` file:
16+
17+
```
18+
composer require omnipay/braintree
19+
```
20+
21+
## Basic Usage
22+
23+
The following gateways are provided by this package:
24+
25+
* Braintree
26+
27+
28+
For general usage instructions, please see the main [Omnipay](https://github.com/thephpleague/omnipay)
29+
repository.
30+
31+
## Support
32+
33+
If you are having general issues with Omnipay, we suggest posting on
34+
[Stack Overflow](http://stackoverflow.com/). Be sure to add the
35+
[omnipay tag](http://stackoverflow.com/questions/tagged/omnipay) so it can be easily found.
36+
37+
If you want to keep up to date with release anouncements, discuss ideas for the project,
38+
or ask more detailed questions, there is also a [mailing list](https://groups.google.com/forum/#!forum/omnipay) which
39+
you can subscribe to.
40+
41+
If you believe you have found a bug, please report it using the [GitHub issue tracker](https://github.com/thephpleague/omnipay-braintreee/issues),
42+
or better yet, fork the library and submit a pull request.

composer.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"name": "omnipay/braintree",
3+
"type": "library",
4+
"description": "Braintree gateway for Omnipay payment processing library",
5+
"keywords": [
6+
"gateway",
7+
"merchant",
8+
"omnipay",
9+
"pay",
10+
"payment",
11+
"braintree",
12+
"purchase"
13+
],
14+
"homepage": "https://github.com/thephpleague/omnipay-braintree",
15+
"license": "MIT",
16+
"authors": [
17+
{
18+
"name": "Kayla Daniels",
19+
"email": "[email protected]"
20+
},
21+
{
22+
"name": "Omnipay Contributors",
23+
"homepage": "https://github.com/thephpleague/omnipay-braintree/contributors"
24+
}
25+
],
26+
"autoload": {
27+
"psr-4": { "Omnipay\\Braintree\\" : "src/" }
28+
},
29+
"require": {
30+
"omnipay/common": "~2.0"
31+
},
32+
"require-dev": {
33+
"omnipay/tests": "~2.0"
34+
}
35+
}

phpunit.xml.dist

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit backupGlobals="false"
3+
backupStaticAttributes="false"
4+
bootstrap="vendor/autoload.php"
5+
colors="true"
6+
convertErrorsToExceptions="true"
7+
convertNoticesToExceptions="true"
8+
convertWarningsToExceptions="true"
9+
processIsolation="false"
10+
stopOnFailure="false"
11+
syntaxCheck="false">
12+
<testsuites>
13+
<testsuite name="Omnipay Test Suite">
14+
<directory>./tests/</directory>
15+
</testsuite>
16+
</testsuites>
17+
<listeners>
18+
<listener class="Mockery\Adapter\Phpunit\TestListener" file="vendor/mockery/mockery/library/Mockery/Adapter/Phpunit/TestListener.php" />
19+
</listeners>
20+
<filter>
21+
<whitelist>
22+
<directory>./src</directory>
23+
</whitelist>
24+
</filter>
25+
</phpunit>

0 commit comments

Comments
 (0)