Download the PHP package taam/timeline without Composer

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

Timeline

Create a timeline history featuring different models

Introduction

This package allows you to add a timeline service to your Laravel ^5.8 application

Installation

From the command line, run:

Publish the assets:

Run the migrations:

Usage

You can specify different Models as participants. Optionally, you can specify the model as the timeline initiator by making it the owner of the timeline. For example, you can have Invoice and Companies models that are participants in the timeline

Main idea

You create a timeline history by specifying multiple models as story participants. When there is an initiating model among the participants, it must use the TimelineInitiator trait. For example, for the history of article moderation, the article will be the initiator.

After creating the timeline, you add events to the history with an indication of its author. Additionally, you can specify a detailed comment for the event.

History may have actual state. For example, the initiator model expects user action. This can be indicated in the current state of the timeline. When the story ends, you mark the timeline as complete.

Adding the ability to participate in timeline

Add the Taam\Timeline\Traits\Eventable trait to any Model you want to participate in Timeline history.

Indicate that the model is the initiator of the timeline

Add the trait Taam\Timeline\Traits\TimelineInitiator to indicate that this model is the initiator of the timeline.

This can be useful if you want to highlight different sides of the timeline. Let's say you have an invoice that started the timeline. Here he is the initiator. The rest of the actors, such as the invoiced company, will simply be a participant in the timeline.

Creating the timeline history

You can start a timeline history with an array of models as participants. You can also set the current state.

Get timeline history by id

Add a new event to history

Get event by id

Get event info

Timeline history actual state

Additional function of timeline history

License

Timeline package is open-sourced software licensed under the MIT license


All versions of timeline with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
laravel/framework Version ^8.0|^9.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 taam/timeline contains the following files

Loading the files please wait ....