Download the PHP package ssplugin/ss-membership without Composer

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

SsMembership plugin for Craft CMS 4.x

A membership site lets you limit access to your site’s content to only paid users.

SS Craft Membership plugin will easily integrate with Stripe so you can accept membership payments and protect your content from non subscribed users. It will help you to setup membership integration of your site.

To read plugin documentation SsMembership Documentation

Requirements

This plugin requires Craft CMS 4 or later and PHP 8.

Installation

To install the plugin, follow these instructions.

SsMembership Overview

It is work with a Craft cms User groups and permissions. You must be create a relevant groups and assign the permissions to each group. i.e. if your website need to setup Super and Premium membership, you need to create User Groups like Super and Premium. Now, create a membership plan and assign user group with it.

Configuring SsMembership

Once you’ve installed the SS Craft Membership plugin. Configure Stripe gateway public and secret keys and save the configuration.

Membership Plan

Membership Plan allow manage user groups for when a user subscribes to a plan. On your Craft CMS Dashboard go to Settings -> Membership Plan

Plugin will automatically create a subscription plan on Stripe Dashboard.

Test mode plans no longer availanle in live mode so that test and live mode membership plans are different.

Using SsMembership

Check permission on twig template, you can use Craft cms core functions to check specific group permission. Here are few examples.

.can() method is helpful when you need to check specific permission or craft cms section permission.

Twig Templating

Subscribing with User Registration

While user registration, add stripe card payment and membership plan dropdown field. User will automatically subscribed selected plan after successfully register.

User Registration Form with membership field:

Stripe Payment Field:
Membership Plan Field:

Subscribe with logged in User:

We have understood how subcription work with registration But what if user already registered? User can subscribe membership plan after logged in.

Note, if logged in User have already subscribed any of the subcription plan then not able to subscribe other membership plan.

Cancel subscription:

Cancel user's subscription immediately. The customer will not be charged again for the subscription.

Note, however, that any pending invoice items that you’ve created will still be charged for at the end of the period, unless manually deleted. If you’ve set the subscription to cancel at the end of the period, any pending prorations will also be left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations will be removed.

For cancel current subscription of logged in User {% requireLogin %}

Canceled subscription can`t be reactivate again.

Brought to you by ssplugin


All versions of ss-membership with dependencies

PHP Build Version
Package Version
Requires craftcms/cms Version ^4.0
stripe/stripe-php Version 7.92.0
php Version ^8.0
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 ssplugin/ss-membership contains the following files

Loading the files please wait ....