Download the PHP package sjaakp/yii2-timeline without Composer

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

Yii2 Timeline

Widget integrating Simile Timeline in Yii 2.0 PHP Framework.

Timeline widget renders a Javascript Simile Timeline, version 2.3.1. The Event data for the timeline are provided by a Yii DataProvider (any object implementing yii\data\DataProviderInterface).

A demonstration of Timeline widget is here.

A little more about the Simile Timeline plus some demo's can be found here: http://www.simile-widgets.org/timeline/. Caution: the information is very sketchy, and often contradictory or plainly wrong. Simile Timeline's code is more than twelve years old and seems to be abandoned for a long time. It isn't even completed: lots and lots of more or less documented features simply are unimplemented. Nevertheless, the Simile Timeline is a great concept and the core code appears to be running quite well. Timeline widget only uses the well proven parts of Simile Timeline and doesn't touch the many loose ends.

Installation

The preferred way to install Timeline is through Composer. Either add the following to the require section of your composer.json file:

"sjaakp/yii2-timeline": "*"

Or run:

composer require sjaakp/yii2-timeline "*"

You can manually install Timeline by downloading the source in ZIP-format.

Using Timeline

The code to use Timeline in a View is something like this:

... other View code ...

... more View code ...

The method band() is chainable, so this can also be written like:

options

Timeline has the following options:

Bands

Timeline consists of one or more Bands. They each display the Events in a different time resolution.

A Band is defined by the Timeline method band().

public function band( $options, $zones = null )

options

$options is an array with the following keys:

zones

Optionally, each Timeline Band can have one or more Zones, parts where the horizontal resolution differs from the rest of the Band.

$zones is null, or an array with the following keys:

Events

Timeline displays Events: Models or ActiveRecords characterized by a moment in time.

The Timeline::attributes property holds the translation from Model attribute names to Timeline attribute names.

A few attributes are essential for Timeline. The Timeline names are:

Events come in two types:

Instant Events

These are the basic Events, having just one point in time. Timeline displays them as little pin icons. Only the above attributes are required.

Duration Events

These have a certain duration. Timeline displays them as a piece of blue 'tape'. Apart from the above, also required is:

Duration Events also have some optional attributes, making the Event Imprecise:

The imprecise part of a Duration Event is displayed as faded blue tape.

Optional Event attributes

Some of the other Event attributes are:

For the daring, there are even more Event attributes.

Dates

Timeline understands a lot of date formats (in the options and in the Event data). Every date can be provided in one of the following formats:


All versions of yii2-timeline with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.0
yiisoft/yii2 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 sjaakp/yii2-timeline contains the following files

Loading the files please wait ....