yireo / magento2-admin-simple-search-fields
Simple approach to add search fields to other modules
Yireo_AdminSimpleSearchFields
This Magento 2 module is deprecated in favor of Loki_AdminComponents
Installation
Install this package via composer:
composer require yireo/magento2-admin-simple-search-fields
Next, enable this module:
bin/magento module:enable Yireo_AdminSimpleSearchFields
Access control
The search grids and previews require an admin user with access to the matching ACL resource:
- Customers:
Magento_Customer::manage - Orders:
Magento_Sales::actions_view - Products:
Magento_Catalog::products
The fields are not aware of website scopes: on Adobe Commerce, admin roles that are limited to specific websites can still find customers, orders and products of all websites.
Current status
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog,
and this project adheres to Semantic Versioning.
[Unreleased]
[1.0.9] - 23 November 2026
Fixed
- Document ACL resources and rename grid labels
- Declare Magento module dependencies used by controllers and templates
- Render admin scripts through SecureHtmlRenderer and drop inline event handlers
- Return a generic message for any repository error in preview controllers
- Drop redundant route ordering and exclude dev files from package
- Replace global getData() function in grid template with a closure
- Cap limit, page and search length and escape LIKE wildcards
- Render preview label as text and encode request parameters
- Require admin authentication and ACL on simple_search controllers
- Escape output in adminhtml templates
- Make as abandoned
- Add deprecation notice
- Add README.md
- Update MODULE.json
- Fix framework wildcard dep
- Add PHP 8.4
Removed
- Remove PHP 8.1 support, add PHP 8.5 support
| Version | Stability | QA Status | Compatibility | Released |
|---|---|---|---|---|
| 1.0.9 | stable | Fail | Magento 2.4.7-2.4.9 Details | 2026-11-23 19:04:24 |
| 1.0.8 | stable | Fail | Not yet tested Details | 2025-04-07 11:38:16 |
| 1.0.7 | stable | Not tested | Not yet tested Details | 2024-11-08 08:55:37 |
| 1.0.6 | stable | Not tested | Not yet tested Details | 2024-11-08 07:58:52 |
| 1.0.5 | stable | Not tested | Not yet tested Details | 2024-11-08 07:47:01 |
| 1.0.4 | stable | Not tested | Not yet tested Details | 2024-11-07 19:15:58 |
| 1.0.3 | stable | Not tested | Not yet tested Details | 2024-11-07 18:31:05 |
| 1.0.2 | stable | Not tested | Not yet tested Details | 2024-11-07 16:00:51 |
| 1.0.1 | stable | Not tested | Not yet tested Details | 2024-11-05 15:29:58 |
| 1.0.0 | stable | Not tested | Not yet tested Details | 2024-11-05 09:47:50 |
Requires 8
| Package | Constraint |
|---|---|
| magento/framework | ^103.0 |
| magento/module-backend | ^102.0 |
| magento/module-catalog | ^104.0 |
| magento/module-csp | ^100.4 |
| magento/module-customer | ^103.0 |
| magento/module-sales | ^103.0 |
| magento/module-ui | ^101.2 |
| php | >=8.2 <8.6 |
Requires-dev 2
| Package | Constraint |
|---|---|
| phpunit/phpunit | ^10.5 |
| yireo/magento2-integration-test-helper | ~0.0 |
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
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 yireo
View vendorReplace bundled third party packages from Magento
N/A
Turn 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.