subscribepro / subscribepro-magento2-ext
Subscribe Pro Magento 2 Integration Extension
Installs: 133 534
Dependents: 0
Suggesters: 0
Security: 0
Stars: 24
Watchers: 6
Forks: 22
Open Issues: 46
Type:magento2-module
Requires
- 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.6
Requires (Dev)
- magento/zendframework1: 1.12.16
- monolog/monolog: ^2.8
- zendframework/zend-stdlib: ~2.4.6
- dev-main
- 1.7.4
- 1.7.3
- 1.7.2
- 1.7.1
- 1.7.0
- 1.6.0
- 1.5.16
- 1.5.15
- 1.5.14
- 1.5.13
- 1.5.12
- 1.5.11
- 1.5.10
- 1.5.9
- 1.5.8
- 1.5.7
- 1.5.6
- 1.5.5
- 1.5.4
- 1.5.3
- 1.5.2
- 1.5.1
- 1.5.0
- 1.4.2
- 1.4.1
- 1.4.0
- 1.3.7
- 1.3.6
- 1.3.5
- 1.3.4
- 1.3.3
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2.8
- 1.2.7
- 1.2.6
- 1.2.5
- 1.2.4
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.11
- 1.1.10
- 1.1.8
- 1.1.7
- 1.1.6
- 1.1.5
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.29
- 1.0.28
- 1.0.27
- 1.0.26
- 1.0.25
- 1.0.24
- 1.0.23
- 1.0.22
- 1.0.21
- 1.0.20
- 1.0.19
- 1.0.18
- 1.0.17
- 1.0.16
- 1.0.15
- 1.0.14
- 1.0.13
- 1.0.12
- 1.0.11
- 1.0.10
- 1.0.9
- 1.0.8
- 1.0.7
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- 0.9.0
- dev-fix/277-checkout-model-mixins
- dev-249-clicking-cancel-link
- dev-241-possible-fix-for-gateway-issue
- dev-202-update-platform-customer-id-on-save
- dev-224-challenge-does-not-fit
- dev-197-switch-credit-card-tokenization-to-use-sp-paymentfields
- dev-feature/45-pass-company-wit-address
- dev-remove-phone-number-required
This package is auto-updated.
Last update: 2024-11-20 14:14:12 UTC
README
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. Please run these commands at the root of your Magento install:
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.,
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./** * @param \Magento\Framework\App\RequestInterface $request * @return bool */
- No space after type cast, e.g.,
None of the existing PHP standards stipulates this at the moment of writing, so "no space" was elected.(int)$variable
To confirm project is compliant with standards PHP_CodeSniffer (phpcs
)
Run PHP_CodeSniffer:
vendor/bin/phpcs -s \ --standard=Magento2 app/code/Swarming/SubscribePro \ --extensions=phtml \ --error-severity=10 \ --ignore-annotations \ --exclude=Magento2.Annotation.MethodAnnotationStructure \ app/code/Swarming/SubscribePro
To automatically fix certain issues with PHP Code Beautifier and Fixer:
bin/phpcbf --standard=Magento2 \ --extensions=phtml \ --error-severity=10 \ --ignore-annotations \ --exclude=Magento2.Annotation.MethodAnnotationStructure \ app/code/Swarming/SubscribePro
Run phpstan
bin/analyse app/code/Swarming/SubscribePro --level=1 -c app/code/Swarming/SubscribePro/phpstan.neon
Run PHP Coding Standards Fixer (php-cs-fixer
)
php-cs-fixer fix src/app/code/Swarming/SubscribePro