Download the PHP package explosivebit/yii2-arangodb without Composer

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

Описание на Русском

ArangoDb Extension for Yii 2

This extension provides the ArangoDB integration for the Yii2 framework.

Installation

This extension requires ArangoDB PHP Extension

The preferred way to install this extension is through composer.

Either run

or add

to the require section of your composer.json.

General Usage

To use this extension, simply add the following code in your application configuration:

Using the connection instance you may access databases, collections and documents.

To perform "find" queries, you should use [[\explosivebit\arangodb\Query]]:

Using the ArangoDB ActiveRecord

This extension provides ActiveRecord solution similar ot the [[\yii\db\ActiveRecord]]. To declare an ActiveRecord class you need to extend [[\explosivebit\arangodb\ActiveRecord]] and implement the collectionName and 'attributes' methods:

Note: collection primary key name ('_key') should be always explicitly setup as an attribute.

You can use [[\yii\data\ActiveDataProvider]] with [[\explosivebit\arangodb\Query]] and [[\explosivebit\arangodb\ActiveQuery]]:

Using Migrations

ArangoDB migrations are managed via [[explosivebit\arangodb\console\controllers\MigrateController]], which is an analog of regular [[\yii\console\controllers\MigrateController]].

In order to enable this command you should adjust the configuration of your console application:

Below are some common usages of this command:

Once migration created, you can configure the migration:

When you start the migration as in the example below, you create a normal document collection with the migration name, you need to add an additional parameter Type => 3 to create the edge collection. Example of such a query: $this-> createCollection ('services', ['Type' => 3] ); If you want to create a document collection, then delete the 'Type' => 3 or replace the number 3 with 2.

Using Debug Panel

Add ArangoDb panel to your yii\debug\Module configuration

Bitdeli Badge


All versions of yii2-arangodb with dependencies

PHP Build Version
Package Version
Requires yiisoft/yii2 Version *
triagens/arangodb 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 explosivebit/yii2-arangodb contains the following files

Loading the files please wait ....