PHP code example of upwebdesign / spark

1. Go to this page and download the library: Download upwebdesign/spark library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

upwebdesign / spark example snippets


	Spark::plan('Display Name', 'stripe-id')
		->price(10)
		->features([
			//
		]);

	Spark::plan('Basic', 'basic-yearly')
		->price(100)
		->yearly()
		->features(
			//
		);

	Spark::promotion('coupon-code');

	class User extends Model implements TwoFactorAuthenticatableContract,
	                                    BillableContract,
	                                    CanResetPasswordContract
	{
	    use Billable, CanJoinTeams, CanResetPassword, TwoFactorAuthenticatable;
	}

	php artisan vendor:publish --tag=spark-basics

	php artisan vendor:publish --tag=spark-full