Download the PHP package bymayo/commerce-widgets without Composer

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

Commerce Widgets for Craft CMS 5

Commerce Widgets is a Craft CMS plugin that gives you insightful dashboard widgets for your Craft Commerce store.

They help you see a better overview of your stores performance, by viewing abandoned cart statistics, setting yearly or monthly goals/targets and seeing who which customers are buying off you the most.

All these help you to optimise your store and in turn (hopefully) increase your revenue and orders.

Install

You can also install the plugin via the Plugin Store in the Craft Admin CP by searching for Commerce Widgets.

Requirements

Configuration

The plugin comes with a config.php file that defines some default settings that apply to mostly all widgets.

If you want to set your own config options, create a commerce-widgets.php file in your Craft config directory. The contents of this file will get merged with the plugin defaults, so you only need to specify values for the settings you want to override.

Cache Duration

cacheDuration allows you to set how long the widget data is cached in seconds. This is great for stores with large amounts of orders/customers, to only cache stats every X amount of hours rather than everytime the dashboard loads. Default: 3600 (60 minutes)

Year Start

yearStart allows you to set when the financial/tax year starts. Default: april

Exclude Email Addresses

excludeEmailAddresses allows you to exclude certain email addresses/customers across all widgets. This is particularly useful if you use a specific user to debug orders, or if orders are created via the CP. Default: null

Config File Example

Widgets

Widget Description Settings
Cart Abanadonment Compare and keep track of how many carts have been abandoned and completed, and how much revenue you missed out on. -
Goal Create revenue and orders targets for your store and see how your progressing each week, month or year. Target Value
Target Duration (E.g. Weekly)
Target Type (E.g. Orders)
RecentProducts See what products were recently added to your store. Limit
Top Products See what products have been ordered the most based on # revenue or # orders. Order By
Order Status
Limit
Subscription Plans An overview of your subscription plans Order By
Limit
Top Customers See who's your top customers, based on # revenue or # orders. Order By
Include Guests
Limit
Total Revenue & Orders Better revenue and order overview, by current day, week, month, year and all time. -

Recommendations

Purge Inactive Carts Duration

It's recommended to increase the purgeInactiveCartsDuration setting (https://craftcms.com/docs/commerce/4.x/configuration.html#purgeinactivecartsduration) for Craft Commerce from the default (3 months) to around 6 months (P6M). This is because the graph on the Cart Abandonment widget spans across 6 months and might show incorrect results if this setting isn't adjusted.

Support

If you have any issues (Surely not!) then I'll aim to reply to these as soon as possible. If it's a site-breaking-oh-no-what-has-happened moment, then hit me up on the Craft CMS Discord - @bymayo

Roadmap


All versions of commerce-widgets with dependencies

PHP Build Version
Package Version
Requires craftcms/cms Version ^5.0.0
craftcms/commerce Version ^5.0.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 bymayo/commerce-widgets contains the following files

Loading the files please wait ....