Download the PHP package loevgaard/sylius-barcode-plugin without Composer

On this page you can find all versions of the php package loevgaard/sylius-barcode-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package sylius-barcode-plugin

Sylius Barcode Plugin

Latest Version on Packagist Build Status Quality Score

Add barcodes to your products.

Installation

Step 1: Download the plugin

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.

Step 2: Enable the plugin

Then, enable the plugin by adding it to the list of registered plugins/bundles in the config/bundles.php file of your project:

Note that adding SetonoDoctrineORMBatcherBundle also required.

Step 3: Configure the plugin

Step 4: Import product variant trait

NOTE: If you haven't extended the ProductVariant entity yet, follow the customization instructions first because you need to add a bit more configuration:

Step 5: Update your database schema

Step 6: Add form widgets to twig templates

You need to override the template displaying the product and product variant form and add a form_row statement with the barcode:

If you haven't overridden the template yet, you can just copy the templates from vendor/loevgaard/sylius-barcode-plugin/src/Resources/views/SyliusAdminBundle to templates/bundles/SyliusAdminBundle/

Step 7: Add validator constraint

Create config/validator/ProductVariant.xml:

Like it configured at example application.

Step 8: Using asynchronous transport (optional, but recommended)

All commands in this plugin will extend the CommandInterface. Therefore you can route all commands easily by adding this to your Messenger config:

Usage

Run the check command:

This will mark all product variant as checked and updated the field barcodeValid to either true or false depending on the result of the check.


All versions of sylius-barcode-plugin with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
doctrine/persistence Version ^1.3 || ^2.0
setono/doctrine-orm-batcher-bundle Version ^0.3.1
sylius/sylius Version ^1.3
symfony/config Version ^4.4 || ^5.4
symfony/event-dispatcher Version ^4.4 || ^5.4
symfony/event-dispatcher-contracts Version ^1.0 || ^2.0 || ^3.0
symfony/messenger Version ^4.4 || ^5.4
thecodingmachine/safe Version ^1.0
violuke/php-barcodes Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package loevgaard/sylius-barcode-plugin contains the following files

Loading the files please wait ....