Download the PHP package mobizel/sylius-export-plugin without Composer

On this page you can find all versions of the php package mobizel/sylius-export-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-export-plugin

Mobizel Export plugin

Getting started

This plugin add a new bulkAction 'export' to all Sylius resources.
It use the default resource grid definition to export data.
You can also use a specific grid for export.

It allow you to export:

IMPORTANT: This plugin does not depend on ` but only and , so it can be used in other project like the symfony starter monofony.

Installation

  1. Require and install the plugin

    • Run composer require mobizel/sylius-export-plugin
  2. Register the bundle:

=> If you do not use you have to import the plugin in the Kernel.

Configuration

GRID configuration:

Create file if not exist and add new bulk action

`

Add new button macro

Add this following file to add the new button macro.

`

Javascript integration

Integrate in your javascript build (webpack / gulp) or directly in twig (you need to copy file to your assets directory)

Twig integration example:

How to use it

Example

You only have to add export bulk action to your grid, example with customer grid, create file to override customer's grid:

`

Next, enable your grid.
Edit and add on the top:

`

How to enable export of selected entities

Export of selected entities does not work out of the box. You need to override the entity repository.
Example for customer:

`

complete file: `

How to use custom grid

If you want to use a custom grid while export entites, you just have to override the route and specify the grid paramter, example for customer:

`

Custom export format

This plugin only use CSV for export, however you can implement your own export. Create a new class that implements .

If you create an with method ``

you can change the export format in the route definition: `

CSV settings

You can configure setting of the CSV writer.

Contributing

Would like to help us ? Feel free to open a pull-request!

License

Sylius export plugin is completely free and released under the MIT License.

Authors

Sylius export plugin was originally created by Kévin REGNIER.


All versions of sylius-export-plugin with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
sylius/grid-bundle Version ^1.10
sylius/resource-bundle Version ^1.8
portphp/csv Version ^1.1
symfony/asset Version ^5.3
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 mobizel/sylius-export-plugin contains the following files

Loading the files please wait ....