Download the PHP package cullylarson/paypal-experience-cli without Composer

On this page you can find all versions of the php package cullylarson/paypal-experience-cli. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package paypal-experience-cli

Paypal Experience CLI

A set of command-line tools for managing "web experience profiles" in Paypal.

PayPal now allows you to customize the payment experience your customers have, when they go to PayPal to make a payment (what used to be called Express Checkout). To do this, you need to create web experience profiles in PayPal, using their new REST API. It's stupid. I don't know why they don't just let you do that in your Developer Dashboard, but it's the way it is. This is a simple command line tool that allows you to Create, List, Update, and Remove experience profiles. I hope it saves some of you the headache of having to implement something yourself.

Install

Configuration

Configuration is done using environment variables. You can set these yourself, or set them in a .env file (https://github.com/vlucas/phpdotenv) which the experience commands will load automatically. An example file is provided, named .env.dist. You can just copy it and set appropriately. If you want to use the .env file, it needs to be in the directory from which you are going to run commands. If you want to set the environment variables yourself, just look at the .env.dist file to see which ones you need to set.

Profiles

You'll need to create some Profile classes. These define the experience profile you'd like to create in Paypal. They must extend \PayPal\ExperienceCli\Profile, and must at least implement the GetProfileName function. There are a couple examples in the sample-profiles directory.

Create a directory for your profiles, and put them in there. Then set PAYPAL_EXPERIENCE_CLI_PROFILES_DIR in your .env file to this directory.

A few of the commands ask for a profile name. This is the class name of your profile, without the namespace (though, a namespace can be provided as another argument). It also needs to be the name of the PHP file that contains the class (without the .php extension). For example, if you put your profiles in a directory named profiles, and you created a profile class named MyFirstProfile, then that class needs to be defined in the profiles/MyFirstProfile.php file.

Commands

create-experience-profile

Create a web experience profile in PayPal.

USAGE

ARGUMENTS

list-experience-profiles

List all of the web experience profiles you have in PayPal.

USAGE

update-experience-profile

Update a web experience profile in PayPal. You can do this by first editing the Profile class you originally used to create this experience profile, or you can create a new class and just pass it as an argument. Basically any changes to the class will be sent to PayPal.

USAGE

ARGUMENTS

remove-experience-profile

Remove a web experience profile from PayPal.

USAGE

ARGUMENTS

Example of Everything

1. Create a directory for your profiles.

2. Set the directory in your .env file.

3. Create a MyFirstProfile.php file in your profiles directory.

4. Edit your MyFirstProfile.php file.

5. Create this experience profile in Paypal.

6. List the experience profiles you have in Paypal, to see your new profile.

7. Update your profile, by first editing your profiles/MyFirstProfile.php file and making some changes.

8. Now run the update command. It will pull the changes from your MyFirstProfile class and send them to Paypal.

9. Remove the profile from Paypal.


All versions of paypal-experience-cli with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
ext-curl Version *
ext-json Version *
paypal/rest-api-sdk-php Version 1.1.*
vlucas/phpdotenv Version ~1.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package cullylarson/paypal-experience-cli contains the following files

Loading the files please wait ....