Skip to content
This repository has been archived by the owner on Sep 29, 2023. It is now read-only.

Commit

Permalink
Fixed Conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
Jay Patel committed Aug 17, 2015
2 parents ade6a92 + 32db0af commit 5d585dc
Show file tree
Hide file tree
Showing 409 changed files with 10,535 additions and 3,053 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ composer.lock

# Project
var
tools
33 changes: 19 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,31 @@
sudo: false
language: php
php:
- 5.3
- 5.4
- 5.5
- 5.6
- hhvm
- 5.3
- 5.4
- 5.5
- 5.6
- hhvm
matrix:
allow_failures:
- php: hhvm
- php: hhvm
fast_finish: true
before_script:
- composer self-update
- composer install --dev
- composer require satooshi/php-coveralls:* --dev
- composer self-update
- composer install --dev
- composer require satooshi/php-coveralls:* --dev
script:
- mkdir build
- mkdir build/coverage
- phpunit
- mkdir build
- mkdir build/coverage
- phpunit
after_success:
- php vendor/bin/coveralls -v -c .coveralls.yml
- php vendor/bin/coveralls -v -c .coveralls.yml
- if [ $TRAVIS_PHP_VERSION = '5.6' ] && [ $TRAVIS_BRANCH = 'master' ] && [ $TRAVIS_PULL_REQUEST = 'false' ]; then sh generate-api.sh; fi
notifications:
email:
recipients:
- DL-PP-PHP-SDK@ebay.com
- DL-PP-PHP-SDK@paypal.com
on_success: change
env:
global:
secure: UazgSLMJmrhmO+Do9TDiu8EKop06Xc2Ghi9F/8rx/CLz2FDZ5UDdzDD8uetjfdOnmMV7oadq13FGxJb9YCqTiJPZFpKsGtEr/IcCdpkO2krluLuWw5Veh8YxRG4rcZ+UWS0JpfQ72L9Zp4dMqPRo8SzcfiZV3HMG1uKYKpTSKnM=
26 changes: 20 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,31 @@

![Home Image](https://raw.githubusercontent.com/wiki/paypal/PayPal-PHP-SDK/images/homepage.jpg)

[![Build Status](https://travis-ci.org/paypal/PayPal-PHP-SDK.png?branch=master)](https://travis-ci.org/paypal/PayPal-PHP-SDK) [![Coverage Status](https://img.shields.io/coveralls/paypal/PayPal-PHP-SDK.svg)](https://coveralls.io/r/paypal/PayPal-PHP-SDK?branch=master)
[![Build Status](https://travis-ci.org/paypal/PayPal-PHP-SDK.png?branch=master)](https://travis-ci.org/paypal/PayPal-PHP-SDK)
[![Coverage Status](https://coveralls.io/repos/paypal/PayPal-PHP-SDK/badge.svg?branch=master)](https://coveralls.io/r/paypal/PayPal-PHP-SDK?branch=master)

__Welcome to REST API SDK PHP__. This repository contains PayPal's PHP SDK and samples for REST API.
__Welcome to PayPal PHP SDK__. This repository contains PayPal's PHP SDK and samples for REST API.

> **Before starting to use the sdk, please be aware of the [existing issues and currently unavailable or upcoming features](https://github.com/paypal/rest-api-sdk-python/wiki/Existing-Issues-and-Unavailable%5CUpcoming-features) for the REST APIs. (which the sdks are based on)**
## Documentations
## SDK Documentation

Everything from Installing, Running Samples, Making first call, etc is covered [ in our Wiki section. ](https://github.com/paypal/PayPal-PHP-SDK/wiki)
[ Our PayPal-PHP-SDK Page ](http://paypal.github.io/PayPal-PHP-SDK/) includes all the documentation related to PHP SDK. Everything from SDK Wiki, to Sample Codes, to Releases. Here are few quick links to get you there faster.

* [ PayPal-PHP-SDK Home Page ](http://paypal.github.io/PayPal-PHP-SDK/)
* [ Wiki ](https://github.com/paypal/PayPal-PHP-SDK/wiki)
* [ Samples ](http://paypal.github.io/PayPal-PHP-SDK/sample/)
* [ Installation ](https://github.com/paypal/PayPal-PHP-SDK/wiki/Installation)
* [ Make your First SDK Call](https://github.com/paypal/PayPal-PHP-SDK/wiki/Making-First-Call)
* [ PayPal Developer Docs] (https://developer.paypal.com/docs/)

## Latest Updates

- Vault APIs now have List Credit Card with Filters, new Fields to help you find the object easily. Checkout the latest release.
- Checkout the latest 1.0.0 release. Here are all the [ breaking Changes in v1.0.0 ](https://github.com/paypal/PayPal-PHP-SDK/wiki/Breaking-Changes---1.0.0) if you are migrating from older versions.
- Now we have a [Github Page](http://paypal.github.io/PayPal-PHP-SDK/), that helps you find all helpful resources building applications using PayPal-PHP-SDK.
- Introduced `DEBUG` level to logging. Deprecated `FINE`. Ability to restrict `DEBUG` level on `live` mode. [Read More](https://github.com/paypal/PayPal-PHP-SDK/wiki/Logging).


## Prerequisites

Expand All @@ -23,8 +35,10 @@ Everything from Installing, Running Samples, Making first call, etc is covered [


## More help
* [Going Live](https://github.com/paypal/PayPal-PHP-SDK/wiki/Going-Live)
* [PayPal-PHP-SDK Home Page](http://paypal.github.io/PayPal-PHP-SDK/)
* [SDK Documentation](https://github.com/paypal/PayPal-PHP-SDK/wiki)
* [Sample Source Codes](http://htmlpreview.github.io/?https://github.com/paypal/PayPal-PHP-SDK/blob/master/sample/index.php)
* [Sample Source Code](http://paypal.github.io/PayPal-PHP-SDK/sample/)
* [API Reference](https://developer.paypal.com/webapps/developer/docs/api/)
* [Reporting issues / feature requests] (https://github.com/paypal/PayPal-PHP-SDK/issues)
* [Reporting Issues / Feature Requests] (https://github.com/paypal/PayPal-PHP-SDK/issues)
* [Pizza App Using Paypal REST API] (https://github.com/paypal/rest-api-sample-app-php)
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"keywords": ["paypal", "payments", "rest", "sdk"],
"type": "library",
"license": "Apache2",
"homepage": "https://github.com/paypal/rest-api-sdk-php",
"homepage": "http://paypal.github.io/PayPal-PHP-SDK/",
"authors": [
{
"name": "PayPal",
Expand Down
122 changes: 122 additions & 0 deletions docs/cover.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
/* Sticky footer styles
-------------------------------------------------- */
html {
position: relative;
min-height: 100%;
}

body {
/* Margin bottom by footer height */
margin-bottom: 60px;
}

.footer {
position: absolute;
bottom: 0;
width: 100%;
/* Set the fixed height of the footer here */
height: 60px;
background-color: #f5f5f5;
}

/* Footer
--------------------------------------------------- */
.footer-links, .footer-links li {
display: inline-block;
font-size: 110%;
padding-left: 0;
padding-right: 0;
}

.footer-links li {
padding-top: 5px;
padding-left: 5px;
}

.footer-links a {
color: #428bca;
}

/* Custom CSS
--------------------------------------------------- */
.body-content {
margin: 0;
padding: 0;
}

body {
font-family: Menlo,Monaco,Consolas,"Courier New",monospace;
background: #fff url("https://www.paypalobjects.com/webstatic/developer/banners/Braintree_desktop_BG_2X.jpg") repeat-y top right;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}

.content {
margin-top: 30px;
}

.content .lead {
color: #666;
}

.content .col-md-4 .well {
min-height: 175px;
background-color: #FDFDFD;
border: 1px solid;
}

.content .col-md-4 .sprite {
width: 60px;
height: 70px;
}
.content .col-md-4 .sprite {
float: left;
margin: 0 5px 0 0;
}

.content .col-md-4 .box {
float: left;
width: 75%;
}
.content .col-md-4 .box h3 {
color: #428bca;
font-size: 24px;
margin: 5px;
}

.content a:hover .col-md-4 .box h3{
color: #23527c;
}

.content a:hover .col-md-4 .well{
background-color: #f5f5f5;
}

.content .col-md-4 .box hr {
margin: 0;
}


.content a:hover {
text-decoration: none
}

.content a:hover .mobile {
background-position: -90px -124px
}

.content a:hover .api {
background-position: -90px -234px
}

.content a:hover .sandbox {
background-position: -90px -344px
}

.content .col-md-4 .box p {
margin: 5px;
color: #666;
display: block;
}
132 changes: 132 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="https://www.paypalobjects.com/webstatic/icon/favicon.ico">
<title>PayPal PHP SDK - Welcome</title>
<!-- Bootstrap core CSS -->
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<!-- Custom styles for this template -->
<link href="cover.css" rel="stylesheet">

<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>

<body>
<div class="container-fluid body-content">
<div class="row-fluid header">
<img src="https://raw.githubusercontent.com/wiki/paypal/PayPal-PHP-SDK/images/homepage.jpg"
class="img-responsive">
</div>
<div class="container content">
<div class="row-fluid">
<h2>// PayPal PHP SDK <a href="https://github.com/paypal/PayPal-PHP-SDK" title="Github Repository"><i class="fa fa-github"></i></a></h2><hr />
<p class="lead">
PayPal PHP SDK is our official Open Source PHP SDK for supporting PayPal Rest APIs. Checkout all the supporting documents, samples, codebase from the following links
</p>
</div><br /><br />
<div class="row clearfix">
<a href="https://github.com/paypal/PayPal-PHP-SDK/wiki">
<div class="col-md-4">
<div class="well clearfix">
<div class="sprite"><i class="fa fa-book fa-4x"></i></div>
<div class="box"><h3>PHP SDK Wiki</h3>
<hr/>
<p> Find everything from Installing, running Samples, Configurations in PHP SDK Wiki </p>
</div>
</div>
</div>
</a>
<a href="http://paypal.github.io/PayPal-PHP-SDK/docs/">
<div class="col-md-4">
<div class="well clearfix">
<div class="sprite"><i class="fa fa-code fa-4x"></i></div>
<div class="box"><h3>PHP Source Docs</h3>
<hr/>
<p> Check out PHP Source Documentation, to see the internals of PHP SDK. </p></div>
</div>
</div>
</a>
<a href="http://paypal.github.io/PayPal-PHP-SDK/sample/">
<div class="col-md-4">
<div class="well clearfix">
<div class="sprite"><i class="fa fa-terminal fa-4x"></i></div>
<div class="box"><h3>PHP Sample Code</h3>
<hr/>
<p> Check out the sample code for using SDKs to call all PayPal APIs. </p></div>
</div>
</div>
</a>
</div>
<div class="row clearfix">
<a href="https://developer.paypal.com/webapps/developer/docs/api/">
<div class="col-md-4">
<div class="well clearfix">
<div class="sprite"><i class="fa fa-paypal fa-4x"></i></div>
<div class="box"><h3>PayPal API Reference</h3>
<hr/>
<p> Checkout the Official PayPal REST API Reference, explaining all API Models</p></div>
</div>
</div>
</a>
<a href="https://github.com/paypal/PayPal-PHP-SDK/releases">
<div class="col-md-4">
<div class="well clearfix">
<div class="sprite"><i class="fa fa-tags fa-4x"></i></div>
<div class="box"><h3>PHP SDK Releases</h3>
<hr/>
<p>Download the latest PHP SDK Release</p></div>
</div>
</div>
</a>
<a href="https://github.com/paypal/rest-api-sample-app-php">
<div class="col-md-4">
<div class="well clearfix">
<div class="sprite"><i class="fa fa-shopping-cart fa-4x"></i></div>
<div class="box"><h3>Sample Application</h3>
<hr/>
<p>Explore a Pizza Store developed using PayPal PHP SDK</p></div>
</div>
</div>
</a>
</div>
</div>
</div>
<footer class="footer">
<div class="container">
<div class="footer-div">
<ul class="footer-links">
<li>
<a href="https://github.com/paypal/PayPal-PHP-SDK" target="_blank"><i
class="fa fa-github"></i>
Github</a></li>
<li>
<a href="https://developer.paypal.com/webapps/developer/docs/api/" target="_blank"><i
class="fa fa-book"></i> PayPal API Reference</a>
</li>
<li>
<a href="https://github.com/paypal/PayPal-PHP-SDK/issues" target="_blank"><i
class="fa fa-exclamation-triangle"></i> Report Issues </a>
</li>

</ul>
</div>
</div>
</footer>

<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>
</body>
</html>
30 changes: 30 additions & 0 deletions generate-api.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/sh
# Get ApiGen.phar
wget http://www.apigen.org/apigen.phar

# Generate SDK Docs
php apigen.phar generate --template-theme="bootstrap" -s lib -d ../gh-pages/docs

# Copy Home Page from Master Branch to Gh-Pages folder
cp -r docs/* ../gh-pages/

# Copy samples
cp -r sample ../gh-pages/sample
# As PHP is not allowed in Github
cp sample/index.php ../gh-pages/sample/index.html

cd ../gh-pages

# Set identity
git config --global user.email "travis@travis-ci.org"
git config --global user.name "Travis"

# Add branch
git init
git remote add origin https://${GH_TOKEN}@github.com/paypal/PayPal-PHP-SDK.git > /dev/null
git checkout -B gh-pages

# Push generated files
git add .
git commit -m "Docs updated by Travis"
git push origin gh-pages -fq > /dev/null
Loading

0 comments on commit 5d585dc

Please sign in to comment.