# subscribepro/subscribepro-magento2-ext

> Subscribe Pro Magento 2 Integration Extension

`composer require subscribepro/subscribepro-magento2-ext`

Canonical URL: https://packagento.com/subscribepro/subscribepro-magento2-ext

## At a glance

- **Vendor**: subscribepro (https://packagento.com/subscribepro.md)
- **Latest version**: 1.5.17 — released 2024-12-18
- **Pricing**: Free
- **Package type**: Magento 2 module
- **Status**: active, accepting new buyers

## Installation

Packagento is licence-gated, so even free packages need a licence on a project before Composer can resolve them.

1. **Sign in or create an account** at https://packagento.com/customer/account/.

2. **Add the package to your account.** Open https://packagento.com/subscribepro/subscribepro-magento2-ext and complete the free checkout. A licence is minted automatically.

3. **Create or pick a project, then activate the licence on it.**
   - Projects represent the Magento installs you deploy to. Manage them at https://packagento.com/projects/.
   - Activate the new licence on the project you'll deploy this package to. Activation is what generates the Composer credentials scoped to that project.

4. **Add the project credentials to your Magento codebase.**

   Grab the project's public + private key from https://packagento.com/projects/ (open the project, then its Credentials tab), and add them to `auth.json`:

   ```json
   {
     "http-basic": {
       "packagento.com": {
         "username": "ppk_live_...",
         "password": "psk_live_..."
       }
     }
   }
   ```

   Add the Packagento Composer repository to `composer.json`:

   ```json
   {
     "repositories": [
       { "type": "composer", "url": "https://packagento.com" }
     ]
   }
   ```

5. **Install and apply.**

   ```bash
   composer require subscribepro/subscribepro-magento2-ext:*
   bin/magento setup:upgrade
   bin/magento setup:di:compile
   bin/magento cache:flush
   ```

## What it does

Subscribe Pro Magento 2 Integration Extension

## README

Subscribe Pro Magento 2 Integration Extension
=============================================

[![Latest Stable Version](https://poser.pugx.org/subscribepro/subscribepro-magento2-ext/v/stable)](https://packagist.org/packages/subscribepro/subscribepro-magento2-ext)
[![Total Downloads](https://poser.pugx.org/subscribepro/subscribepro-magento2-ext/downloads)](https://packagist.org/packages/subscribepro/subscribepro-magento2-ext)
[![Latest Unstable Version](https://poser.pugx.org/subscribepro/subscribepro-magento2-ext/v/unstable)](https://packagist.org/packages/subscribepro/subscribepro-magento2-ext)
[![License](https://poser.pugx.org/subscribepro/subscribepro-magento2-ext/license)](https://packagist.org/packages/subscribepro/subscribepro-magento2-ext)

This is the official Magento 2 extension for Subscribe Pro.

To learn more about Subscribe Pro you can visit us at https://www.subscribepro.com/.

### Getting Started

Please visit our documentation website and start with our step by step integration guide for Magento 2: https://docs.subscribepro.com/display/spd/Install+Subscribe+Pro+for+Magento+2

### Installation via Composer

You can install our Subscribe Pro Magento 2 extension via [Composer](http://getcomposer.org/). Please run these commands at the root of your Magento install:
 ```bash
 composer require subscribepro/subscribepro-magento2-ext
 php bin/magento module:enable Swarming_SubscribePro
 php bin/magento setup:upgrade
 ```

### Coding Standards

Subscribe Pro team follows the standards described in https://devdocs.magento.com
 - https://devdocs.magento.com/guides/v2.4/coding-standards/bk-coding-standards.html - this document's purpose is to explain how the code should be formatted and the main idea for PHP developers is **"use codesniffer"**. Helpful and concise instructions on how to set it up are provided. The rules imposed by codesniffer are based on **PSR12** standard (see https://www.php-fig.org/psr/psr-1/ https://www.php-fig.org/psr/psr-2/ https://www.php-fig.org/psr/psr-12/) and are arguably too numerous for humans to remember and consistently apply, so official Magento team does not provide a human-readable description anyway
 - https://devdocs.magento.com/guides/v2.4/coding-standards/technical-guidelines.html - this document describes semantic requirements and best coding practices
 - https://devdocs.magento.com/guides/v2.4/coding-standards/code-standard-javascript.html - JS coding standard
 - https://devdocs.magento.com/guides/v2.4/coding-standards/code-standard-less.html - less coding standard
 - https://devdocs.magento.com/guides/v2.4/coding-standards/code-standard-html.html - HTML coding standard
 
#### Subscribe Pro's internal coding standards
 - Use fully-qualified class names in PHPDoc, e.g.,
    ```
    /**
     * @param \Magento\Framework\App\RequestInterface $request
     * @return bool
     */
     ```
    This is expected to make the code more clear when skimming through, leaves less ambiguity when dealing with classes that are named similarly but belong to different namespaces, in IDE there is no need to ctrl+click twice to actually see the class if an alias is used. This also eradicates the situations when an unnecessary use operator is included only for the sake of writing a phpdoc/comment.
 - No space after type cast, e.g.,
    ```
    (int)$variable
    ```
      None of the existing PHP standards stipulates this at the moment of writing, so "no space" was elected.

#### To confirm project is compliant with standards

```bash
vendor/bin/phpcs --standard=Magento2 app/code/Swarming/SubscribePro
```

## Recent Versions

| Version | Released |
|---|---|
| 1.5.17 | 2024-12-18 |
| 1.7.4 | 2024-11-20 |
| 1.7.3 | 2024-09-20 |
| 1.7.2 | 2024-09-20 |
| 1.7.1 | 2024-01-17 |
| 1.7.0 | 2023-12-19 |
| 1.6.0 | 2023-08-25 |
| 1.5.16 | 2022-09-16 |
| 1.5.15 | 2022-05-05 |
| 1.5.14 | 2022-04-26 |

Showing 10 of 86 versions. Full release history on https://packagento.com/subscribepro/subscribepro-magento2-ext.

## Dependencies

### Require

| Package | Constraint |
|---|---|
| magento/framework | ^101.0.0\|^102.0.0\|^103.0.0 |
| magento/module-backend | ^100.2.0\|^101.0.0\|^102.0.0 |
| magento/module-checkout | ^100.2.0\|^100.3.0\|^100.4.0 |
| magento/module-customer | ^101.0.0\|^102.0.0\|^103.0.0 |
| magento/module-payment | ^100.2.0\|^100.3.0\|^100.4.0 |
| magento/module-quote | ^101.0.0\|^101.1.0\|^101.2.0 |
| magento/module-sales | ^101.0.0\|^102.0.0\|^103.0.0 |
| magento/module-store | ^100.2.0\|^101.0.0\|^101.1.0 |
| magento/module-theme | ^100.2.0\|^101.0.0\|^101.1.0 |
| magento/module-ui | ^101.0.0\|^101.1.0\|^101.2.0 |
| magento/module-vault | ^101.0.0\|^101.1.0\|^101.2.0 |
| subscribepro/subscribepro-php | ~1.1 |

### Require (dev)

| Package | Constraint |
|---|---|
| magento/zendframework1 | 1.12.16 |
| monolog/monolog | ^2.8 |
| zendframework/zend-stdlib | ~2.4.6 |

## Licence and pricing

Free. A licence is still minted on checkout and bound to your project for Composer access — no payment step.

Refundable within 14 days of first purchase via https://packagento.com/account/refunds/.

## Install via Claude Code or any MCP client

The Packagento MCP server can run the licence + project + Composer steps above in one tool call:

```
purchase_and_install_packages(
  composer_names=["subscribepro/subscribepro-magento2-ext"],
  project_id="proj_xxx"
)
```

This handles cart, checkout, licence minting, project activation, and writes auth.json credentials. Connect a client with `claude mcp add packagento https://mcp.packagento.com`. Full setup at https://packagento.com/docs/mcp-setup.

## Vendor

subscribepro is a Magento 2 vendor on Packagento. See https://packagento.com/subscribepro.md for their full catalogue.

