This repository has been archived by the owner on Nov 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Made Composer to be flexible in versioning
- Updated Version number - Updated README file
- Loading branch information
japatel
committed
Nov 11, 2014
1 parent
2a84fe5
commit 9d6d928
Showing
6 changed files
with
522 additions
and
20 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 |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
build | ||
.DS_Store | ||
*.log | ||
.idea | ||
|
||
# IDE | ||
.project | ||
|
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 |
---|---|---|
@@ -1,23 +1,21 @@ | ||
<?php | ||
/** | ||
* Include this file in your application. This file sets up the required classloader based on | ||
* whether you used composer or the custom installer. | ||
*/ | ||
|
||
* whether you used composer or the custom installer. | ||
*/ | ||
// | ||
require_once 'Configuration.php'; | ||
|
||
// Include the composer autoloader | ||
// The location of your project's vendor autoloader. | ||
$composerAutoload = dirname(dirname(dirname(__DIR__))) . '/autoload.php'; | ||
if (!file_exists($composerAutoload)) { | ||
//If the project is used as its own project, it would use rest-api-sdk-php composer autoloader. | ||
$composerAutoload = dirname(__DIR__) . '/vendor/autoload.php'; | ||
|
||
|
||
if (!file_exists($composerAutoload)) { | ||
echo "The 'vendor' folder is missing. You must run 'composer update' to resolve application dependencies.\nPlease see the README for more information.\n"; | ||
exit(1); | ||
} | ||
} | ||
require $composerAutoload; | ||
/* | ||
* @constant PP_CONFIG_PATH required if credentoal and configuration is to be used from a file | ||
* Let the SDK know where the sdk_config.ini file resides. | ||
*/ | ||
//define('PP_CONFIG_PATH', dirname(__FILE__)); | ||
/* | ||
* use autoloader | ||
*/ | ||
if(file_exists( dirname(__FILE__). '/vendor/autoload.php')) { | ||
require 'vendor/autoload.php'; | ||
} else { | ||
require 'PPAutoloader.php'; | ||
PPAutoloader::register(); | ||
} |
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,18 @@ | ||
{ | ||
"name": "paypal/permissions-sdk-php-sample", | ||
"description": "PayPal permissions SDK for PHP", | ||
"keywords": ["paypal", "php", "sdk"], | ||
"homepage": "https://developer.paypal.com", | ||
"license": "Apache2", | ||
"authors": [ | ||
{ | ||
"name": "PayPal", | ||
"homepage": "https://github.com/paypal/permissions-sdk-php/contributors" | ||
} | ||
], | ||
"require": { | ||
"php": ">=5.3.0", | ||
"ext-curl": "*", | ||
"paypal/permissions-sdk-php":"3.8.*" | ||
} | ||
} |
Oops, something went wrong.