This repository has been archived by the owner on Sep 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
409 changed files
with
10,535 additions
and
3,053 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,3 +18,4 @@ composer.lock | |
|
||
# Project | ||
var | ||
tools |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.