Download the PHP package rewardful/rewardful-spark without Composer

On this page you can find all versions of the php package rewardful/rewardful-spark. 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 rewardful-spark

Introduction

RewardfulSpark is a small library that allows you to integrate your Laravel Spark application with Rewardful with minimal configuration.

Installation

First, require the RewardfulSpark package with Composer

composer require rewardful/rewardful-spark "3.*"

Publish the package

You can publish the configuration separately by running this command.

php artisan vendor:publish --tag=rewardful-config --force

You can also publish the Vue components using this command

php artisan vendor:publish --tag=rewardful-vue --force

Configuration

Before using RewardfulSpark you will need to configure your API key. Add the following line to your .env file.

REWARDFUL_API_KEY=<API_KEY>

Frontend

In order for Rewardful to capture your referrals information, you need to tinker your views and vue files slightly.

Blade Layout

In your blade layout, you need to include this blade directive so it's reflected in all your pages. This will ensure our Javascript library is monitoring all your incoming referrals. For example in the bottom of your app.blade.php add the following line before the closing </body> tag.

@rewardful_js

Vue components

RewardfulSpark ships with a small Vue components that gets mixed with the register-stripe and subscribe-stripe components. Depending on your configuration you will need to update those files.

Laravel Spark 7.0+

Credit Card Upfront

If you requiring the user to enter their credit card details Upfront (i.e. during registration)

Include the vue module into your resources/js/spark-components/auth/register-stripe.js. Assuming stock file with no changes, this is how your file should look like.

No Credit Card Upfront

If you do not require the user to enter their credit card upfront, and provide GenericTrial, then you need to ensure the referral code is captured during the subscription.

Include the vue module into your resources/js/spark-components/settings/subscription/subscribe-stripe.js. Assuming stock file with no changes, this is how your file should look like.

Laravel Spark 5 & 6

Credit Card Upfront

If you requiring the user to enter their credit card details Upfront (i.e. during registration)

Include the vue module into your resources/assets/js/spark-components/auth/register-stripe.js. Assuming stock file with no changes, this is how your file should look like.

No Credit Card Upfront

If you do not require the user to enter their credit card upfront, and provide GenericTrial, then you need to ensure the referral code is captured during the subscription.

Include the vue module into your resources/assets/js/spark-components/settings/subscription/subscribe-stripe.js. Assuming stock file with no changes, this is how your file should look like.

Compile your assets

For the changes to take effect you need to compile your assets. Run the command relevant to your environment. Assuming production build:

npm run production

Changelog

Please see CHANGELOG for more information what has changed recently.

Credits

Mina Abadir

License

The MIT License (MIT). Please see License File for more information.


All versions of rewardful-spark with dependencies

PHP Build Version
Package Version
No informations.
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 rewardful/rewardful-spark contains the following files

Loading the files please wait ....