Download the PHP package youwe/pimcore-bulkpump without Composer

On this page you can find all versions of the php package youwe/pimcore-bulkpump. 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 pimcore-bulkpump

PIMCORE BULKPUMP EXTENSION

Version: Pimcore 4.x

Developed by: Roelf

Reference / latest developments: Roelf

Usage and examples

Click on "Product importer" on the left side. Documentation is available in the "doc" folder of this plugin.

Installation

Plugin can be installed through composer. If you have a different public web directory you have to set that in the 'config:document-root-path', otherwise you can ignore that section. Add json to your composer.json:

{
    "config": {
        "document-root-path": "htdocs"
    },
    "require": {
        "youwe/pimcore-bulkpump": "^0.4.0"
    },
}

Also, add these to your .gitignore:

/htdocs/plugins/PimcoreBulkpump

Plugin development

To create a new version, check out the master branch somewhere and go:

git tag 0.1.0
git push origin --tags

Documentation / list of functionalities

Pick a custom class to import CSV columns to.

o_key column mapping will be used to create the Pimcore key and to update existing objects.

If an object has an import[FieldName] function, this function will be used instead of the set[FieldName] function.

import function has 2 parameters: ($value, $all_values_for_all_fields)

Custom filters

Custom filters can be added to the project here:

/htdocs/website/models/BulkPumpFilter

Custom filters must have the same format as the native filters here:

/htdocs/plugins/BulkPump/models/BulkPump/ImportFilter/Native

Custom import classes

A completely custom import class can be used, overriding most standard functionalities:

/htdocs/website/lib/Website/BulkPump/CustomImport.php

Example of a CustomImport class:

<?php
/**
 * CustomImport example
 */

namespace Website\BulkPump;
use PimcoreBulkpump\CustomImportInterface;

class CustomExample implements CustomImportInterface
{
    //Create a general property to save multiple row handeling
    public $importObject = true;

    public function __construct($config)
    {

    }

    /**
     *  Process every row
     */
    public function import(&$object, array $row)
    {
        &object->setValue($row['value']);

        //Set data in dataStore
        $this->importObject->setDataStoreAttribute('tempID', 1234);

        //Receive data => result in 1234
        $id = $this->importObject->getDataStoreAttribute('tempID');

    }
}

You must select in the GUI of the plugin, in the profile section de Import type to Custom. Then there appears a addition section called Settings for import type Custom and here you can set the custom class as followed:

\Website\Bulkpump\ImportBrands

And save the profile.

Run from commandline (CLI)

You can import CSV files by running from commandline, you can configure the profile from the interface. You could change the content of the file in the profile by changing in the following path:

/htdocs/website/var/tmp/bulk-pump

Then you can call the profile with the following command:

php pimcore/cli/console.php bulkpump:import --profileId=<profile id>

You have to change <profile id> in the profile id you want to run. You can find the id in the GUI of the plugin. Or by running the following command:

php pimcore/cli/console.php bulkpump:list

Security

User must have this permission to use the plugin:

Future permissions:


All versions of pimcore-bulkpump with dependencies

PHP Build Version
Package Version
Requires pimcore/installer-plugin Version ^1.3
pimcore/core-version Version ^4.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 youwe/pimcore-bulkpump contains the following files

Loading the files please wait ....