bradsearch / magento-extension
BradSearch Magento 2 Extension - Autocomplete, Search GraphQL, Product Features, and Analytics
Package info
github.com/Invertus/brad-magento2-extension
Type:magento2-module
pkg:composer/bradsearch/magento-extension
Requires
- php: ~7.4.0||~8.1.0||~8.2.0||~8.3.0||~8.4.0||~8.5.0
- magento/framework: *
- magento/module-catalog-graph-ql: *
- magento/module-store-graph-ql: *
Requires (Dev)
- captainhook/captainhook: ^5.22
- captainhook/plugin-composer: ^5.3
- dealerdirect/phpcodesniffer-composer-installer: ^1.0
- magento/magento-coding-standard: *
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^9.6 || ^10.0
- squizlabs/php_codesniffer: ^3.7
- vimeo/psalm: ^6.0 <6.5
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is not auto-updated.
Last update: 2026-11-25 13:00:46 UTC
README
Magento 2 modules for integrating BradSearch with your store's GraphQL layer.
Requirements
- Magento 2.4.x
- PHP 7.4, 8.1, 8.2, 8.3, 8.4, or 8.5 (PHP 8.5 needs Magento 2.4.9)
- Composer 2.x
Installation
composer require bradsearch/magento-extension:^1.0 bin/magento module:enable BradSearch_Analytics BradSearch_Autocomplete BradSearch_ProductFeatures BradSearch_SearchGraphQl bin/magento setup:upgrade bin/magento setup:di:compile bin/magento cache:clean
Configuration
Stores → Configuration → BradSearch in Magento Admin.
You'll need API credentials from your BradSearch account.
Turn live sync on in every store view your BradSearch application reads. Each store view sends only the products whose data changed in that store view, so a change seen only in a store view with live sync off is not sent.
Set the Stock indexer to "Update by Schedule" (bin/magento indexer:set-mode schedule cataloginventory_stock). Live sync reads its changelog to send stock changes. It also compares
each product's stock status with the one it last saw, which finds changes that leave no
changelog row (imports that write the status directly, orders).
Extending
- Custom price logic for the
bradProductssync? ImplementBradSearch\SearchGraphQl\Api\PriceCalculatorInterfacein a bridge module inside your project. SeeSearchGraphQl/PRICE_CALCULATOR.mdfor the full walkthrough.
Updating
composer update bradsearch/magento-extension bin/magento setup:upgrade bin/magento setup:di:compile bin/magento cache:clean
Uninstalling
bin/magento module:disable BradSearch_Analytics BradSearch_Autocomplete BradSearch_ProductFeatures BradSearch_SearchGraphQl bin/magento setup:upgrade composer remove bradsearch/magento-extension
Development
composer install # installs captainhook pre-commit + pre-push hooks composer phpcbf # auto-fix Magento2 coding standard composer phpcs # Magento2 coding standard check composer phpstan # static analysis at level 6 composer psalm # static analysis at error level 4 composer test # phpunit unit tests composer check # all of the above
Pre-commit hooks run phpcbf + phpcs + phpstan on staged PHP files.
Pre-push runs psalm + full test suite.
License
Apache License 2.0 - see LICENSE.