Download the PHP package subcosm/hive-foundation without Composer

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

hive-foundation

Hive Foundation is Container Components Foundation the delivers feature-rich hierarchical Key-Value node-based containers with an omni-present query interface.

General Status:
Build Status codecov SensioLabsInsight Code Climate Gittip

Integrity and Usage:
Downloads Latest

Dependencies

Optionally:

What is a hive node?

A hive node implements one leaf of a hierarchy where you may set values to the node itself, child nodes or the root node with simple commands.

How do i...

The following examples explain how hive nodes in general do work.

... create a root node?

Root nodes are the top-level node of any node hierarchy, there can be only one root node but as many child nodes as you need. Root nodes are created like this:

... append child nodes?

Hive nodes are self-extending, you may create nodes by yourself by calling HiveNode::node($nodeName, true).

... append values to a node?

Like this:

... append lazy loading for values?

Hive nodes do see closures as lazy-load values, just wrap what you want to be lazy loaded into a closure.

... get a value from a node?

Like this:

... set or get values hierarchically?

Hive nodes implement a hierarchy-safe query mechanism to get and store values into the hierarchy.

In the first set instruction, the key router of the root node will receive the closure. The second set instruction will (automatically) create the node 'router' (not value-key), and the key factory at the router-node who will receive the closure.

You can also access the root node from sub nodes:

Is there any hook or event mechanism?

Yes and no. You can not manipulate values from outside the hive structure using events, but you can observe a hive node and issue events in your event dispatcher of your choice using the Observatory- Implementation of each hive node.

The available observer stages can be found at the HiveInterface and DeclarationAwareInterface represented by *_STAGE constants.

Observatory-Observers are shared across the entire hive structure and can be altered to own observer queues from each parent independently.

Can i assign nodes manually?

No. Whenever you assign items to a container they will remain items as they were set (a closure is the only exception here). You have to use HiveNode::node($name, true) to create new child-nodes, or you just let the hive node create them for you. The inability to set nodes manually was decided because of avoiding conflicts of query divider and root definition tokens across node structures. Integrity first.

Whats about value validation?

The HiveNode itself does not provided an interface to validate values. DeclarativeHiveNode provides an interface to declare a validator on a per item level or a default validator for all items and sub nodes.

The provided callback receives the value to set as the first parameter and requires to return the value to be set to the hive node, otherwise the value will default to null.

Import data to nodes with loaders

Package Stability and Maintainers

This package is considered stable. The maintainers of this package are:

License

This package is licensed under the MIT-License.


All versions of hive-foundation with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1
subcosm/observatory Version ~1.0
psr/container 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 subcosm/hive-foundation contains the following files

Loading the files please wait ....