msp / owlcarousel2
msp/owlcarousel2
Magento 2 OwlCarousel2 module
This module lets you use OwlCarousel2 with Magento 2 through requirejs.
Installation
composer require msp/owlcarousel2
bin/magento setup:upgrade
Usage
Initialization
You can init the slider with data-mage-init:
<div id="your-slider" class="owl-carousel" data-mage-init='{
"OwlCarousel": {
"autoPlay" : true,
"autoplayTimeout" : 1500,
"loop" : true,
"items" : 1,
"dots" : false
}
}'>
<img src="kitten1.jpg" />
<img src="kitten2.jpg" />
<img src="kitten3.jpg" />
<img src="kitten4.jpg" />
</div>
or with a <script type="text/x-magento-init">:
<div id="your-slider" class="owl-carousel">
<img src="kitten1.jpg" />
<img src="kitten2.jpg" />
<img src="kitten3.jpg" />
<img src="kitten4.jpg" />
</div>
<script type="text/x-magento-init">
{
"#your-slider": {
"OwlCarousel": {
"autoplay" : true,
"autoPlayTimeout" : 1500,
"loop" : true,
"items" : 1,
"dots" : false
}
}
}
</script>
OwlCarousel theme css
This module loads only the base css from OwlCarousel, but no theme.
The default theme is included, and you can add it to your theme layout default.xml (or whatever layout file) with:
...
<head>
...
<css src="Msp_OwlCarousel2::css/owl.theme.default.min.css" />
...
</head>
...
No changelog yet
The vendor hasn't published a changelog. Tagged releases appear in the Versions tab.
| Version | Stability | QA Status | Compatibility | Released |
|---|---|---|---|---|
| 0.1.6 | stable | Pass | Magento 2.4.7-2.4.9 Details | 2018-03-28 10:43:16 |
| 0.1.5 | stable | Not tested | Not yet tested Details | 2017-08-11 08:09:48 |
| 0.1.4 | stable | Not tested | Not yet tested Details | 2017-08-07 09:03:35 |
| 0.1.3 | stable | Not tested | Not yet tested Details | 2017-08-04 07:20:39 |
| 0.1.2 | stable | Not tested | Not yet tested Details | 2017-07-19 16:00:54 |
| 0.1.1 | stable | Not tested | Not yet tested Details | 2017-02-16 15:13:33 |
| 0.1.0 | stable | Not tested | Not yet tested Details | 2016-07-22 14:25:29 |
Requires 3
| Package | Constraint |
|---|---|
| php | * |
| msp/common | * |
| magento/magento-composer-installer | * |
Compatibility
Each Magento release line is installed on its supported PHP versions, then the module is built (DI compilation + static-content deploy) and its unit and integration suites are run. The matrix shows the lines and PHP versions the module is confirmed to install and run on. Code-quality results further down (phpstan, phpcs, …) are reported separately and never affect compatibility.
Code Quality
Advisory checks against the module's source. Static analysis runs once across the whole module; PHPStan re-runs per Magento + PHP version because resolvable symbols differ between releases. These NEVER affect the Compatibility badge. A phpcs finding can't make a module incompatible.
Static analysis
Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.
PHPStan
Type-checks the module's PHP against a real Magento install at the configured gate level. Re-runs per Magento and PHP version because resolvable symbols differ between releases.
Tests
Unit and integration suites, run for each applicable Magento and PHP version. A test failure speaks to the module's behaviour, not its compatibility with a Magento line, so it is reported here separately and never reddens the compatibility matrix.
Unit tests
| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | ||
| 2.4.8 | N/A | N/A | ||
| 2.4.9 | N/A | N/A |
Integration tests
| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | ||
| 2.4.8 | N/A | N/A | ||
| 2.4.9 | N/A | N/A |
Security
Security checks run directly against the module: an audit of its declared dependencies for known vulnerabilities (composer audit) and a scan of its source for malware and web-shell signatures. Each runs once. A malware detection fails the version outright.
More from msp
View vendorTurn an existing module into recurring revenue.
If you already maintain a Magento 2 module on GitHub or GitLab, listing it on Packagento takes about five minutes. We mirror your tags, handle distribution signing, and route paid licenses through Stripe Connect, so you can keep shipping the way you already do.