Download the PHP package basicrum/basicrum-magento-2 without Composer

On this page you can find all versions of the php package basicrum/basicrum-magento-2. 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 basicrum-magento-2

Basicrum Analytics

Basicrum adds Boomerang real user monitoring (RUM) to a Magento 2 storefront. Collect performance data through your Basicrum Beacon Endpoint, with consent-controlled loading and configurable privacy settings.

Acknowledgements

Basicrum grows through its community. Thank you to everyone who shared their time, knowledge, and feedback to help shape this module:

Installation

Run commands from your Magento installation directory as the filesystem owner. Back up your application and database, and test on staging first. For production, use your normal deployment process; enable maintenance mode for an in-place installation and disable it only after successful deployment and verification.

Install Basicrum Analytics from the basicrum/basicrum-magento-2 Composer package:

The constraint selects 0.1.1 or a newer 0.1.x release.

Alternatively, for a manual source installation, place this module at the exact path below. The casing is required on case-sensitive filesystems:

Use either Composer or a manual installation, never both. After either method, enable and initialize the module:

In production mode, deploy static content for all storefront and Admin locales. For an English-only installation:

Replace or extend en_US with your actual locales. Then clean caches and verify that the module is enabled:

Monitoring remains disabled until you configure and enable Basicrum below.

Compatibility

Tested with Magento Open Source 2.4.7-p10, PHP 8.3, Luma, and built-in full-page cache. Other Magento/PHP combinations, Adobe Commerce, Hyvä, headless/PWA storefronts, Varnish, and third-party optimizers are not verified.

Configuration

Get your collector details

In the Basicrum portal, open Account > Settings > Sites. Choose Add Site or an existing site, then copy its Beacon Endpoint and Brum Site ID. Use your own site's values; the screenshots show an example.

Enable Basicrum in Magento

Open Stores > Configuration > Basicrum > Basicrum Analytics. Settings support Magento default, website, and store inheritance.

Set Enable Basicrum to Yes, enter your collector details, and click Save Config. Consent is still required by default.

Required settings:

If Basicrum is disabled or required configuration is missing or invalid, no monitoring scripts are emitted. The Monitoring Status row explains why monitoring is inactive. Settings are validated on save and at runtime.

Other collection settings

Beacons include the configured brum_site_id, p_gen=mage2, and a p_type page label such as Home, Product, Search, or Checkout Success. Unmapped actions use unmapped_<lowercase full action name>; an unavailable action uses unknown.

Consent integration

Under Visitor Consent, Require Consent Before Monitoring defaults to Yes. Boomerang, measurement cookies, and beacons wait for your consent tool to allow monitoring on each page. Select No only for a deliberate immediate-loading policy.

Basicrum provides manual, page-level callbacks for your consent platform. It does not display a banner, automatically connect to consent providers, infer consent from cookies, or persist its own consent decision.

When the site's external consent tool authoritatively allows performance monitoring on the current page, call:

On denial, expiry, or withdrawal, call:

The consent wrapper is inert until allow. Repeated allow calls load Boomerang at most once. Once initialized, Boomerang uses the first-party RT measurement cookie; Basicrum does not create a consent cookie. Denial before the first allow does not prevent a later allow on that page. Withdrawal during download prevents the arriving bundle from initializing. Withdrawal after initialization disables further collection, cancels a pending Wait After Onload timer, and removes accessible measurement cookies. Data already transmitted cannot be retracted.

After withdrawal once loading has started, re-grant requires a page reload. This intentionally prevents a same-page restart from a partially initialized state. The callbacks are registered by the footer loader; calls made before registration are not queued. Connect both allow and deny/change events in the site's consent tool on every page.

Strip query strings

Under Privacy, set Strip Query Strings to Yes to redact queries from page, navigation, referrer, and resource URLs. The default is No. For example, /search?q=boots becomes /search?qs-redacted; URL paths remain. This does not change query parameters in your configured Beacon Endpoint.

Caching and CSP

After changing module configuration, clean Magento configuration, layout, block HTML, and full-page caches. Production deployments must also publish the new static assets and invalidate any CDN or optimizer cache that can retain old HTML or JavaScript. Magento's versioned static asset URLs provide browser cache invalidation only after the deployment/content version changes.

Then visit the storefront, grant consent through your consent tool, and check the browser's Network panel for a beacon to your endpoint containing your brum_site_id. With consent required, no beacon should appear before opt-in.

The loader and Boomerang are first-party Magento static assets. Inline scripts use Magento's SecureHtmlRenderer for CSP-compatible rendering.

When you configure the Beacon Endpoint in Magento Admin and enable Basicrum with valid settings, the module automatically allows the endpoint's domain in the storefront connect-src and img-src CSP directives. No separate manual CSP whitelist entry is needed for that endpoint. The allowed value is its origin (scheme, host, and optional port), not the full URL: paths and query strings are excluded. Disabled or invalid configuration adds no collector origin, and no wildcard is added. Clean the caches described above after saving settings so cached storefront responses use the updated policy.

If your store uses script delay, combination, or other optimization extensions, verify consent handling and script loading on staging before deployment.

Privacy and lifecycle notes

Boomerang may collect page/navigation/referrer/resource URLs, performance timings, browser/network characteristics, and the configured Basicrum identity, then send them to the configured Beacon Endpoint. With consent-controlled loading, the Boomerang monitoring bundle, beacon transmission, and measurement cookies do not start before the current page receives allow. The inert consent wrapper is present so the external tool can signal that decision. Immediate mode has no such gate.

Disabling the module and cleaning page caches stops future script emission. Removing module files does not delete stored configuration or data already sent to a collector. Store operators remain responsible for their consent tool, privacy disclosure, collector access, retention, and deletion processes.

Third-party software and license

Boomerang 1.815.60 provenance, checksums, and license notices are recorded in Third-party notices and the Boomerang license.

Basicrum Analytics is licensed under the MIT License. Bundled Boomerang remains covered by its BSD license and third-party notices.


All versions of basicrum-magento-2 with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2 <8.5
magento/framework Version ^103.0
magento/module-backend Version ^102.0
magento/module-config Version ^101.2
magento/module-csp Version ^100.4
magento/module-store Version ^101.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 basicrum/basicrum-magento-2 contains the following files

Loading the files please wait ...