Download the PHP package rtcamp/stripe-xero-csv without Composer

On this page you can find all versions of the php package rtcamp/stripe-xero-csv. 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 stripe-xero-csv

Stripe Xero CSV Export

The php script stripe-xero.php exports all Stripe balance affecting transactions into a CSV file recognisable by Xero Bank Account's import a CSV statement feature.

Currently it supports:

  1. Charges
  2. Refunds
  3. Payouts

Usage

Preparation

Edit .env file to add correct Stripe API Key.

Finally run the script:

It will create a file stripe-xero-{date}.csv with all balance affecting transactions from your Stripe account.

Xero will skip duplicates during import so you need to worry about previously imported transactions appearing in CSV.

Email

The script supports emailing CSV as attachment to predefined email address. This comes handy if you are running script as a CRON job.

As of now only Amazon AWS SES is supported.

You need to set values of following variables in .env file:

Please make sure:

  1. EMAIL_FROM address must be verified already in SES console.
  2. You are using IAM API user to generate AWS_ credentials. SES SMTP credentials won't work.

crontab

Add a line like below for weekly emails @ Monday 10am.

Known Issues and Limitations

  1. Xero doesn't provide support for adding Stripe as a bank account. So we need to create a normal bank account with manual feed.
  2. Stripe doesn't provide Xero friendly statements. Xero supports many formats.
  3. Xero API doesn't have provision to insert bank statement lines. It's second most popular feature request pending from eternity i.e. 2009! This is main reason that you need to run this script locally and import CSV files manually.

TODO

LICENSE

MIT

Does this interest you?

Join us at rtCamp, we specialize in providing high performance enterprise WordPress solutions


All versions of stripe-xero-csv with dependencies

PHP Build Version
Package Version
Requires stripe/stripe-php Version ^5.1
league/csv Version ^8.0
vlucas/phpdotenv Version ^2.4
daniel-zahariev/php-aws-ses Version ^0.9.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 rtcamp/stripe-xero-csv contains the following files

Loading the files please wait ....