Download the PHP package heydon/redback without Composer

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

U2 Web Development Environment (RedBack) for PHP Build Status

Allows native communitcation with RocketSoftware's U2 database Enviroments using the U2 Web Development Environment, and also providing methods which allow PHP to make greater use of the native U2 dynamic arrays.

Compatibility

U2 Web Development Environment (RedBack) 4

Full support for Web DE 4.2.16+ in native PHP.

U2 Web Development Environment (RedBack) 5

Currently not supported. This is being currently worked on, and any support will be much appreciated.

The major problem with version 5 is that it is no longer running on the old Redback Scheduler, but instead running over UniObjects, so to talk to the the U2 Web DE we need to be able to talk UniObjects. I have started decoding the protocole, and starting an implementation a functioning PHP version, but this will take time.

However because I needed to build the uarray libraries to work with U2 Dynamic Arrays the actual handling of the raw data is almost done. There are areas which will need to be improved, such needing to be able to handle the internal data formats like dates and numbers which will mean that I will need to implement OCONV and ICONV methods to the uArray object.

Installation

Installation via composer is the only method supported at this stage. Edit your composer.json to add the following.

Usage

Initilising the RedBack object

To create a new uObject (RedBack connection object) which will allow access to the u2 Web Development Enviroment.

Connecting to the Web DE Server

To connect to the U2 Web DE server you will require the connection object for RedBack 4. Once this is install you will be able to use the following to create the connection.

Opening a Web DE Object

To open an object use the following.

Authentication

To authenticate your object against the server, a user and password can be passed while opening.

Quick Open

All of the above can be put together for connecting quickly.

Setting a property

You can set properties used which have been configured in the RBO.

where name is the property "Name". If the property contains a '.' then to access the property using the uObject::set() method.

Getting the value of a property

The same as setting a property you can also do the following:-

As with settings properties with a '.' in the property name you can use the uObject::get() method.

Calling a method

Calling methods the same as the calling methods on the standard PHP object.

However there are also special methods, "Select" and "DispPage" which are on uQuery objects. in this case the uObject will return a uQuery object.

Using the uQuery object

The uQuery object is a standard PHP iterator and can be used with foreach() and other methods to use iterators.

uQuery doesn't really work like a normal recordset where each record is retreived 1 at a time, but instead works by downloading an entire page in at a time. The page size is determinded by the 'items_per_page' which is set in the RBO and can also be set at runtime, before the initial select is called.

Given this to allow paging via the object you can use the ::getPage() to get the page of data that you want.

As you can see from the example above you can chain the getPage() command to get the additional information.

Symfony

To use Redback in symfony you can create the RedBack object as a service, which can then be access.

To get the RedBack object in a controler do the following.


All versions of redback with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
heydon/uarray Version 1.0.*@beta
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 heydon/redback contains the following files

Loading the files please wait ....