Download the PHP package tmonier/sylius-timeline-plugin without Composer

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

Sylius Timeline Plugin

Français : README.fr.md

Build

An order and customer timeline with internal staff notes for the Sylius 2 back office.

The Sylius 2 order page has no history: the History page only lists address changes, the customer's checkout note is read-only, and staff cannot leave a note on an order or a customer. The Sylius 1 plugins that did it were never ported.

This plugin records what happens to an order (placed, paid, shipped, cancelled, refunded, e-mails sent) and lets the team write internal notes, free and open source.

Features

Need What the plugin does
Know what happened to an order, and who did it Timeline card on the admin order page, newest first: order placed, order / payment / shipping state changes, each payment (method + amount) and shipment (method + tracking code), e-mails sent (with recipients). Each entry shows an icon, a label, the author (administrator name, Customer or System) and the date.
See the customer's checkout note in context The checkout note becomes a Customer note entry at the time the order was placed.
Share information inside the team Internal notes on orders and on customers: plain text up to 5,000 characters, line breaks kept, HTML escaped. Never shown in the shop.
Keep important information in sight Pin a note: pinned notes are shown at the top of the order or customer page in a highlighted card.
Know the customer Customer timeline on the admin customer page: customer notes and the key events of their orders (placed with number and total, cancelled, payments completed or refunded), last 50 entries with a link to the full paginated page.
Spot orders that need attention Notes badge with the number of internal notes in the admin orders grid.
Install on a running shop tmonier:timeline:backfill rebuilds a timeline for existing orders.

Also included: translations in English, French, German, Spanish, Italian, Dutch and Polish; Twig Hooks everywhere; MySQL, MariaDB and PostgreSQL support.

Screenshots

Requirements

Version
PHP 8.2+
Sylius 2.2, 2.3
Symfony 6.4, 7.4, 8.0

The state machine abstraction must use the Symfony Workflow adapter (the Sylius 2 default, sylius_state_machine_abstraction.default_adapter: symfony_workflow). Graphs mapped to the Winzou adapter do not dispatch Symfony Workflow events and are not recorded.

Installation

  1. Require the package:

  2. Register the bundle in config/bundles.php (Symfony Flex does it automatically once a recipe exists):

  3. Import the configuration in config/packages/tmonier_sylius_timeline.yaml:

  4. Import the admin routes in config/routes/tmonier_sylius_timeline.yaml:

  5. Run the migrations:

  6. Optionally, give the orders placed before the installation a timeline:

Configuration

enabled_workflows accepts any Symfony workflow whose subject is an order, a payment or a shipment, so your own workflows can be recorded too (they get a generic label, or your own tmonier_timeline.event.<workflow>.<transition> translation). The bookkeeping transitions applied while an order is placed (request_payment, request_shipping, payment create and process, shipment create) are never recorded, and neither is anything happening to a cart.

The TimelineEntry resource can be extended like any Sylius resource (tmonier_sylius_timeline.resources.timeline_entry.classes.model).

To hide the notes column of the orders grid:

Customisation

The admin parts are built with Twig Hooks:

Hook Content
sylius_admin.order.show.content.sections#left → tmonier_timeline_pinned_notes Pinned notes (top of the order page)
sylius_admin.order.show.content.sections#left → tmonier_timeline Timeline card (bottom of the order page)
sylius_admin.order.show.content.sections.tmonier_timeline → note_form, entries Note form and entries of the order timeline
sylius_admin.customer.show.content.sections → tmonier_timeline_pinned_notes Pinned notes (top of the customer page)
sylius_admin.customer.show.content.sections → tmonier_timeline Timeline card (bottom of the customer page)
sylius_admin.customer.show.content.sections.tmonier_timeline → note_form, entries Note form and entries (configuration.limit, default 50)
tmonier_timeline.admin.customer.timeline Full customer timeline page

Templates can be overridden in templates/bundles/TmonierSyliusTimelinePlugin/. To record your own events, use the services:

How events are recorded

Notes rules

GDPR — Personal data and customer erasure

Data stored

The plugin stores the following personal data in tmonier_timeline_entry:

Field Where What
context.recipients TYPE_EMAIL entries E-mail addresses of the recipients of each order-related e-mail
author_name TYPE_ORDER_PLACED, TYPE_CUSTOMER_NOTE Snapshot of the customer's full name at the time of the event
content TYPE_CUSTOMER_NOTE Checkout note left by the customer (verbatim from Order::$notes)

Staff notes (TYPE_NOTE) are authored by administrators and are not considered personal data of the customer. Their content is not erased.

When a customer is deleted, all their entries are removed by ON DELETE CASCADE on customer_id. When a customer is anonymised (entity kept, personal data replaced), the entries must be erased separately — see below.

Right to erasure

Use CustomerTimelineEraserInterface to erase the customer's personal data from the timeline. The eraser clears in a single query + single flush, without touching business records (entry type, transition, date, order number, amounts, e-mail code, etc.):

Sylius core — anonymisation hook

Sylius 2.2 / 2.3 does not provide a built-in anonymisation event or service (CustomerAnonymizer, sylius.customer.anonymise, etc.). There is no automatic hook to attach the eraser to. You must call CustomerTimelineEraserInterface::eraseForCustomer() explicitly from your own anonymisation process (command, message handler, controller…).

Console command

The command accepts either a numeric customer ID or an e-mail address.

Limitations

Development

B2B demo

This plugin is used in the Sylius B2B demo: a Sylius 2.3 shop with fictitious sample data where the B2B plugins work together. The source code, setup and fixtures of the demo are in that repository.

The demo is an example, not a production setup.

License

MIT. See LICENSE.


All versions of sylius-timeline-plugin with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
sylius/sylius Version ^2.2
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 tmonier/sylius-timeline-plugin contains the following files

Loading the files please wait ...