PHPackages                             4c0n/sylius-barcode-search-plugin - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. 4c0n/sylius-barcode-search-plugin

AbandonedSylius-plugin

4c0n/sylius-barcode-search-plugin
=================================

Plugin that makes it possible for users to use their camera to search for a barcode.

0.0.5(5y ago)41701MITJavaScriptPHP ^7.4CI failing

Since Feb 29Pushed 5y ago1 watchersCompare

[ Source](https://github.com/4c0n/SyliusBarcodeSearchPlugin)[ Packagist](https://packagist.org/packages/4c0n/sylius-barcode-search-plugin)[ RSS](/packages/4c0n-sylius-barcode-search-plugin/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (22)Versions (7)Used By (0)

[![build:started](https://camo.githubusercontent.com/e4aef1a2a754136e5d1fbc773adb24b7d368d5fb220a9d734f928cd940dad169/68747470733a2f2f7472617669732d63692e636f6d2f3463306e2f53796c697573426172636f6465536561726368506c7567696e2e7376673f6272616e63683d6d6173746572)](https://camo.githubusercontent.com/e4aef1a2a754136e5d1fbc773adb24b7d368d5fb220a9d734f928cd940dad169/68747470733a2f2f7472617669732d63692e636f6d2f3463306e2f53796c697573426172636f6465536561726368506c7567696e2e7376673f6272616e63683d6d6173746572)

This plugin integrates [quagga2](https://github.com/ericblade/quagga2) with the Sylius product grid search.

It does so by adding a button to the search bar that enables shoppers to use the camera on their device to search for a EAN barcode.

[![Search bar](search_bar.png)](search_bar.png)

When the user's browser supports it and the user gives permission to use the camera, the user can attempt to scan a barcode. Currently only standard EAN barcodes are supported.

[![Modal](barcode_scan_modal.png)](barcode_scan_modal.png)

Subsequently, if a valid EAN barcode is recognised, the barcode will be used as search criteria. In this example the name of the product is the barcode. However, it is possible to store the EAN in a product attribute and configure the product grid to include the attribute in the search process.

[![Search result](search_result.png)](search_result.png)

##### Supported Sylius versions:

[](#supported-sylius-versions)

 1.61.7#### Installation:

[](#installation)

1. Install using composer: ```
    composer require 4c0n/sylius-barcode-search-plugin
    ```
2. Add bundle to bundles.php: ```
    # config/bundles.php
