Download the PHP package apurba-labs/laravel-approval-engine without Composer
On this page you can find all versions of the php package apurba-labs/laravel-approval-engine. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download apurba-labs/laravel-approval-engine
More information about apurba-labs/laravel-approval-engine
Files in apurba-labs/laravel-approval-engine
Package laravel-approval-engine
Short Description Batch-based approval workflow engine for Laravel
License MIT
Informations about the package laravel-approval-engine
Laravel Approval Engine
Stop Email Spam. Start Smart Approvals.
A modular, batch-based, multi-stage approval workflow engine for Laravel. Designed for real-world enterprise workflows -- it handles high-volume enterprise requests into actionable notification batches with email-based approvals and fully configurable stages..
Demo (Real Workflow)
π Create Request β Batch β Approval β Timeline β Done
π§ Demo GIF coming soon (actively working on UI)
Meanwhile, you can test locally:
ποΈ Active Development (UI Layer)
We are currently building the frontend components to provide a full "Plug & Play" experience.
| Component | Status | Description |
|---|---|---|
| π§Ύ Workflow List | π· In Progress | A management dashboard for all active batches. |
| π§ Approval Timeline | π¨ Designing | A visual history of who approved/rejected and when. |
| π IAM Dashboard | βοΈ Backend Ready | Powered by laravel-iam for scoped RBAC management. |
π Note: Screenshots and a full Demo GIF will be added in upcoming releases as the UI components are finalized.
Why This Package? Solving "Approval Fatigue"
In most enterprise systems:
- Email Spam: 100 purchase requests = 100 separate emails to the Manager. π
- Hardcoded Logic: Approval steps are buried inside Controllers or Models.
- No Escalation: No built-in way to remind pending approvers or escalate.
Laravel Approval Engine solves this by separating the Workflow Logic from your Business Models and grouping requests into smart batches.
Key Features
- π¦ Smart Batching: Group 50 records into 1 single email/notification.
- βοΈ Multi-Stage Workflows: Define paths like
Requisition -> HOS -> COO -> Finance. - π Secure Token-Based Approval: Approve or Reject directly from email or Slack via expiring secure links.
- π§© Zero-Coupling: Works with any Eloquent model without altering your schema.
- β³ Escalation Engine: (v2.0) Automatic reminders and "Escalate to Higher Role" logic.
- π IAM Ready: Integrates with Laravel IAM for scoped authority.
Engineering Philosophy
This package is built on a simple belief:
Workflow logic should not live inside controllers or models.
Modern systems require:
- Separation of concerns
- Scalable architecture
- Configurable business logic
Instead of hardcoding approval flows, this engine provides:
- β Modular workflow design (plug & play modules)
- β Headless architecture (UI-agnostic, API-first)
- β Database-driven configuration (no redeploy needed)
- β IAM-based authorization (not role hardcoding)
This allows teams to evolve workflows without rewriting core logic.
Architectural Maturity
The PHP ecosystem is evolving beyond framework defaults toward clean, scalable architecture.
Recent industry trends emphasize:
- Moving from fat controllers β Action & DTO-based architecture
- Designing configurable, database-driven systems
- Building enterprise-grade workflow engines and scoring systems
- Reducing dependency on external SaaS by building in-house solutions
- Improving observability, auditability, and system transparency
At Apurba Labs, this is not a trend β itβs the foundation.
Our systems are designed to:
- Be modular and extensible
- Support complex business logic (workflows, approvals, IAM)
- Operate in high-scale, event-driven environments
- Remain framework-agnostic and future-proof
How This Project Aligns
Laravel Approval Engine is built following modern architectural principles:
- β Action-driven workflow execution (no fat controllers)
- β IAM-based authorization (permission-first, not role-only)
- β Modular workflow modules (plug & play architecture)
- β Database-driven workflow configuration
- β Full auditability of approval lifecycle
- β Batch-based processing for high-volume systems
This makes the engine suitable for enterprise-grade applications and SaaS platforms.
Example Use Cases
- π§Ύ Requisition Approval (HOS β COO)
- π° Invoice Approval (Manager β Finance β CFO)
- π Purchase Workflow
- π§βπΌ Leave Approval System
How It Works
β± Escalation & Reminder Flow
Quick Start (2 Minutes)
π Output:
Demo Screenshot
Installation
Setup
Create Workflow Module
Example: Define Module
π Token-Based Approval API
RBAC Integration (laravel-iam)
Architecture (Clean & Headless)
Applications own the business data.
The Approval Engine only orchestrates workflow state, approval progression, events, notifications, and audit history.
Commands
Why This Engine is Different
Roadmap
v1.7 (Current β )
- β Headless workflow engine
- β Multi-stage approval lifecycle
- β Event-driven architecture
- β Token-based approvals
- β Smart notification batching
- β Plugin system
- β Module registry
- β IAM integration support
- β Clean architecture boundaries
v1.8
- π SLA and escalation policies
- π Approval delegation
- π Enhanced notification channels (Slack, Teams, Webhooks)
- π Workflow analytics and metrics
- π Reminder and follow-up automation
v2.0
- π Visual workflow designer
- π Dynamic rule builder
- π Workflow versioning
- π Advanced audit and compliance tools
- π Enterprise reporting and analytics
Future Exploration
- π Plugin marketplace
- π BPMN import/export
- π Workflow simulation and testing tools
- π AI-assisted workflow recommendations
Out of Scope
The following are intentionally outside the scope of Laravel Approval Engine:
- Multi-tenant SaaS platforms
- Billing and subscriptions
- User onboarding systems
- CRM / ERP functionality
- Dashboard applications
These concerns belong to the consuming application.
β Support the Project
If this package has helped you streamline your enterprise workflows, please consider supporting it:
- Star the Repo β It helps other developers find this tool.
- Share with your Team β Spread the word to your fellow Laravel developers.
- Contribute β Submit a PR or open an issue to help make it even better.
πΌ Consulting & Implementation
This engine is actively used as the foundation for scalable approval systems.
If you need help designing or integrating:
- Workflow engines
- Approval pipelines
- Event-driven architectures
- Enterprise workflow automation
- Laravel IAM / RBAC systems
- Workflow analytics and notification strategies
Feel free to reach out.
π© Connect on LinkedIn
π§ [email protected]
π€ Contributing
PRs are welcome.
License
MIT License
All versions of laravel-approval-engine with dependencies
apurba-labs/laravel-iam Version ^1.0.2
illuminate/support Version ^10.0|^11.0|^12.0|^13.0