Download the PHP package specialweb/gremlin-dsl without Composer

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

PHP Gremlin DSL implementation

PHPCS PHPUnit Downloads Latest version codecov

Information

As the original repository was discontinued this is the continuing package to work with.

Introduction

Gremlin is a graph traversal language developed by Apache TinkerPop.

Many graph vendors like Neo4j, Azure Cosmos, AWS Neptune and many more supports Gremlin.

This package provides a basic integration of gremlin for php applications.

This version is built from TinkerPop v3.6.1.

Installation

Configuration

This packages provides a static Configuration Class with some configuration options.

Option Scope Type Default Description
GREMLIN_DSL_REGISTER_GLOBAL_FUNCTIONS Constant boolean false Globally register short-functions for gremlin.
E.g. the global g-function will be available to start the traversal.
enableShortFunctions Configuration boolean false Globally register short-functions for gremlin.
E.g. the global g-function will be available to start the traversal.
sendClosure Configuration Closure null Register a global callback for the pseudo send step

You can either configure it from array:

or set the desired settings directly:

Usage

Just install the package and begin traversing.

Sending the graph traversal string

There is a pseudo send step provided with this package.

You can either globally configure a closure for the send step or provide it with every call.

Instead of a closure you can also provide an instance of SendClosureInterface.

Short functions

Short functions are simplifying the graph traversal generation and usage of predicates.

You've to enable GREMLIN_DSL_REGISTER_GLOBAL_FUNCTIONS, manually load e.g. resources/predicates.php or call Configuration::enableShortFunctions() to make short functions available.

With GREMLIN_DSL_REGISTER_GLOBAL_FUNCTIONS constant:

Development

DSL generation

The DSL generation is based on the java base-classes.

To (re)generate the DSL just call make generate that will first generate the JSON methods structure and afterwards the php file generation.

Generate JSON only

Just call make generate-json or mvn -f generator -P glv-json compile

Generate PHP only

To e.g. adjust the php file generation you can either call php generate.php [dsl:generate [<in-file>]] or make generate-php


All versions of gremlin-dsl with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
ext-json Version *
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 specialweb/gremlin-dsl contains the following files

Loading the files please wait ....