Download the PHP package remp/crm-subscriptions-module without Composer

On this page you can find all versions of the php package remp/crm-subscriptions-module. 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 crm-subscriptions-module

CRM Subscriptions Module

Translation status @ Weblate

This documentation describes API handlers provided by this module for others to use. It expects your application is based on the CRM skeleton provided by us.

Installing module

We recommend using Composer for installation and update management.

Enabling module

Add installed extension to your app/config/config.neon file.

Widgets

Widgets are small reusable components that can be used on different places within CRM. Module can provide widget placeholders for other modules to populate or widget implementations.

Available widgets

SubscribersWithMissingAddressWidget

Widget displays list of all subscribers with specified content access that don't have specified address type entered in the system. It is placed at the admin.payments.top placeholder, above the payments listing.

By default the widget displays all print subscribers without print address type entered. You can change the configuration in your config.local.neon and check different content access names against different address types:

Available placeholders

These are widget placeholders provided by Payments Module. You can register your own widgets to be displayed at following places:

API documentation

All examples use http://crm.press as a base domain. Please change the host to the one you use before executing the examples.

All examples use XXX as a default value for authorization token, please replace it with the real tokens:

API responses can contain following HTTP codes:

Value Description
200 OK Successful response, default value
400 Bad Request Invalid request (missing required parameters)
403 Forbidden The authorization failed (provided token was not valid)
404 Not found Referenced resource wasn't found

If possible, the response includes application/json encoded payload with message explaining the error further.


GET /api/v1/users/subscriptions

Returns all user subscriptions with information when they start/end and which content type they give an access to.

Headers:
Name Value Required Description
Authorization Bearer String yes User token.
Params:
Name Value Required Description
show_finished Boolean no Flag indicating whether to include finished subscriptions or not. If not provided, only active and future subscriptions are returned.
Example:

Response:


POST /api/v1/subscriptions/create

Creates new subscription for given user and returns new instance.

Headers:
Name Value Required Description
Authorization Bearer String yes Bearer token.
Params:
Name Value Required Description
email String yes Email of existing user.
subscription_type_id String no ID of subscription type to use. List of all subscription types is available at /subscriptions/subscription-types-admin. Either subscription_type_id or subscription_type_code must be filled.
subscription_type_code String no Code of subscription type to use. List of all subscription types is available at /subscriptions/subscription-types-admin. Either subscription_type_id or subscription_type_code must be filled.
is_paid Boolean yes The identification of paid subscriptions.
start_time String no RFC3339 formatted start time. If not present, subscription will start immediately.
end_time String no RFC3339 formatted end time. If not present, end time will set based on subscription type.
type String yes Type of subscription - values allowed: regular, free, donation, gift, special, upgrade, prepaid. If not provided, defaults to regular.
Example:

Response:


POST /api/v1/subscriptions/update

Update subscription based on sent parameters.

Headers:
Name Value Required Description
Authorization Bearer String yes Bearer token.
Params:
Name Value Required Description
id String yes Email of existing user.
subscription_type_id String no ID of subscription type to use. List of all subscription types is available at /subscriptions/subscription-types-admin.
is_paid Boolean no The identification of paid subscriptions.
start_time String no RFC3339 formatted start time. If not present, subscription will start immediately.
end_time String no RFC3339 formatted end time. If not present, end time will set based on subscription type.
type String no Type of subscription - values allowed: regular, free, donation, gift, special, upgrade, prepaid. If not provided, defaults to regular.
Example:

Response:

Components

ActualSubscribersRegistrationSourceStatsWidget

Admin dashboard stats graph widget.

Source code

How to use

ActualSubscribersStatWidget

Admin dashboard stats widget.

Source code

How to use

ActualSubscriptionLabel

Admin user listing component.

Source code

How to use

ActualSubscriptionsStatWidget

Admin dashboard actual subscriptions count widget.

Source code

ActualUserSubscriptions

Admin user detail stats widget.

Source code

How to use

EndingSubscriptionsWidget

Admin ending subscriptions listing widget.

Source code

How to use

MonthSubscriptionsSmallBarGraphWidget

Admin users header graph widget.

Source code

How to use

MonthSubscriptionStatWidget

Admin dashboard single stat widget.

Source code

MonthToDateSubscriptionStatWidget

Admin dashboard single stat widget.

Source code

PrintSubscribersWithoutPrintAddressWidget

Admin payments listing header widget.

Source code

How to use

RenewedSubscriptionsEndingWithinPeriodWidget

Admin dashboard stats widget.

Source code

How to use

SubscriptionButton

Admin listing edit subscription button widget.

Source code

How to use

SubscriptionEndsStats

Admin ending subscriptions types and content access listing component.

Source code

How to use

SubscriptionsEndingWithinPeriodWidget

Admin dashboard ending subscriptions stats widget.

Source code

How to use

TodaySubscriptionsStatWidget

Admin dashboard single stat widget.

Source code

How to use

TotalSubscriptionsStatWidget

Admin dashboard single stat widget.

Source code

How to use

UserSubscriptions

Admin user detail subscriptions listing widget.

Source code

How to use


All versions of crm-subscriptions-module with dependencies

PHP Build Version
Package Version
Requires php Version ^8.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 remp/crm-subscriptions-module contains the following files

Loading the files please wait ....