Download the PHP package linkorb/extractor without Composer

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

Extractor

Extractor is a library that allows you to extract data from connections (databases, files, API's, etc) into a simple JSON array for further processing.

No programming is required, all you need to do is write extractor definitions.

Use-cases

Extractor + Context = <3

Extractor works particularly well in tandem with github.com/linkorb/context

You can use the output of Extractor to load the data into a Context for further processing. This gives you the ability to specify advanced multi-directional relationships for flexible in-memory navigation.

Example: wordpress-post-extractor.yaml

Check the examples/wordpress-post-extractor.yaml definition file for a simple example.

This example requires one Input called postName.

Based on the input, it runs a set of commands.

Each command has a method. Different connections support different methods. The PdoConnection supports the query method, while an XyzApiConnection would support methods like request.

You can specify an SQL query that contains a set of placeholders.

The placeholders are passed as arguments into the command before it's executed. This allows you to pass arguments from the "inputs" table, or from a table that has been queried before.

In the wordpress example you'll see that the first command passes the postName from the initial inputs.

The second command passes in the postId that was retrieved during the first command.

This allows you to stack queries on top of each-other.

Output format

Extractor collects a set of tables, with rows per table. You can think of it as snapshot of a database.

The output is a simple array (which you can json_encode) that looks like this:

You'll see the "inputs" have is provided as a table containing a single row. The "posts" table contains one row, the one selected based on the input argument. And the comments table contains all rows matched by the postId.

Note that rows don't have a key, it's up to the code that uses these extracts to assign row ids or build indexes if needed.

A simple way would add useful IDs to the comment table based on the comment_ID of each row would be:

License

MIT (see LICENSE.md)

Brought to you by the LinkORB Engineering team


Check out our other projects at linkorb.com/engineering.

Btw, we're hiring!


All versions of extractor with dependencies

PHP Build Version
Package Version
Requires linkorb/boost Version ^1.0
symfony/expression-language Version ^4.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 linkorb/extractor contains the following files

Loading the files please wait ....