Download the PHP package litepie/flow without Composer

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

Litepie Flow

Latest Version on Packagist Total Downloads License Laravel

A powerful Laravel package for workflow management with states and transitions. Litepie Flow provides a comprehensive solution for building complex business workflows with state management and event-driven transitions, seamlessly integrated with the Litepie Actions package.

Features

Installation

Install the package via Composer:

Note: This will automatically install the required litepie/actions dependency.

Publish and Run Migrations

Publish and run the migrations:

Configuration (Optional)

Optionally, publish the configuration file:

Quick Start

Option 1: Simple State Machine (Recommended for basic state tracking)

For simple state tracking on model attributes, use state machines:

Option 2: Complex Workflows (For business processes)

For complex business processes, use workflows:

1. Create an Action

First, create an action that will be executed during workflow transitions:

2. Define a Workflow

Create a workflow class that defines your business process:

3. Make Your Model Workflowable

Implement the workflow interface in your Eloquent model:

4. Register Your Workflow

Register the workflow in a service provider:

Don't forget to register your service provider in config/app.php:

Usage Examples

Basic Workflow Operations

Advanced Usage

Configuration

After publishing the config file, you can customize various aspects of the workflow system:

Architecture

Core Components

  1. Workflows: Define complex business processes with multiple participants
  2. State Machines: Handle simple state transitions for individual model attributes
  3. States: Represent different stages in workflows and state machines
  4. Transitions: Define how to move between states
  5. Actions: Execute business logic during transitions
  6. Events: Handle workflow and state machine lifecycle events

When to Use What

Use Workflows for:

Use State Machines for:

State Management

States can be:

Action Integration

Actions are powered by the Litepie Actions package and provide:

Events

The package dispatches several events during workflow execution:

Event Listeners

Testing

Run the tests with:

Dependencies

This package depends on:

Documentation

For more detailed documentation, please refer to:

Contributing

Please see CONTRIBUTING.md for details on how to contribute to this project.

Development Setup

  1. Clone the repository
  2. Install dependencies: composer install
  3. Run tests: composer test
  4. Check code style: composer cs-check
  5. Fix code style: composer cs-fix

Security

If you discover any security-related issues, please email the maintainers instead of using the issue tracker.

Changelog

Please see CHANGELOG.md for more information about what has changed recently.

License

The MIT License (MIT). Please see LICENSE.md for more information.

Credits

Support

If you find this package useful, please consider:


🏢 About

This package is part of the Litepie ecosystem, developed by Renfos Technologies.

Organization Structure

Links & Resources


Built with ❤️ by Renfos Technologies

Empowering developers with robust Laravel solutions


All versions of flow with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2|^8.3
illuminate/support Version ^12.0
illuminate/validation Version ^12.0
illuminate/cache Version ^12.0
illuminate/events Version ^12.0
litepie/actions 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 litepie/flow contains the following files

Loading the files please wait ...