PHP code example of hvent90 / spark

1. Go to this page and download the library: Download hvent90/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/ */

    

hvent90 / 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