Download the PHP package gpupo/pipe2 without Composer

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

Build Status Scrutinizer Code Quality

Pipe2

XML command line Tool

Installation

The Pipe2 is a small PHP application that must be installed once in your computer.

Installation on Linux and Mac OS X

sudo curl -LsS https://github.com/gpupo/pipe2/releases/download/1.1/pipe2.phar -o /usr/local/bin/pipe2;
sudo chmod a+x /usr/local/bin/pipe2;

Installation on Windows

c:\> php -r "readfile('https://github.com/gpupo/pipe2/releases/download/1.1/pipe2.phar');" > pipe2

Then, just run pipe2.

Usage

Convert XML file to XMLPipe2 format;

pipe2 convert data/acme.googleshopping.xml

This example uses the input sample file data/acme.googleshopping.xml

Merge XML Documents with Similar Structure Where Second Document Contains Attributes:

pipe2 merge-attributes data/acme.googleshopping.xml data/merge/attributes/secondDocument.xml --idField="g:id" --pretty=true

This example uses the input sample files data/acme.googleshopping.xml and data/merge/attributes/secondDocument.xml and creates the output sample file data/merge/attributes/output.xml

Generate Markdown Documentation from PhpUnit XML

phpdoc -d ./src/ -t ./build/ --template="xml" --cache-folder=/tmp;
pipe2 documentor build/structure.xml Api.md;

Advanced

with channel name:

pipe2 convert --channel=amazon data/acme.googleshopping.xml

Generate blank document with nicely formats output with indentation:

pipe2 generate --pretty=true

Available commands

Command Description
convert Convert Xml file to XMLPipe2 format
merge-attributes Merge XML Documents with Similar Structure Where Second Document Contains Attributes
generate Generate blank Document xmlpipe2 format
list Lists commands
help Displays help for a command

Help

Displays help for a command

pipe2 help convert;
pipe2 help generate;

Samples

This example uses the input sample file data/acme.googleshopping.xml and creates the output sample file data/acme.xmlpipe2.xml:

pipe2 convert --channel=acme data/acme.googleshopping.xml > data/acme.xmlpipe2.xml

Sphinx Search Index Example

source acmeSource
{
    type = xmlpipe
    xmlpipe_command = /usr/local/bin/pipe2 convert --channel=acme /tmp/data/acme.googleshopping.xml
}

index acmeIndex
{
  source = acmeSource
  path = /var/sphinx/acmeIndex
  charset_type = utf-8
  mlock           = 0
  morphology      = none
  enable_star     = 1
  min_prefix_len  = 2
  expand_keywords = 1
  min_word_len    = 2
}

For Sphinx Search config file example, see data/sphinx.sample.conf

Requirements

Todo

License

MIT, see LICENSE.


All versions of pipe2 with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5
ext-xml Version *
symfony/console Version ~2.3
gpupo/common Version ~1.3
gpupo/common-schema Version ~1.0
cocur/slugify Version ~1.0
twig/twig 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 gpupo/pipe2 contains the following files

Loading the files please wait ....