Skip to content

Commit 1400307

Browse files
authored
Merge pull request #3 from solutionforest/feature/core
Feature/core
2 parents 67eaad5 + 9d3ab02 commit 1400307

File tree

83 files changed

+324
-8485
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+324
-8485
lines changed

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
blank_issues_enabled: false
22
contact_links:
33
- name: Ask a question
4-
url: https://github.com//workflow-mastery/discussions/new?category=q-a
4+
url: https://github.com/solutionforest/workflow-engine-laravel/discussions/new?category=q-a
55
about: Ask the community for help
66
- name: Request a feature
7-
url: https://github.com//workflow-mastery/discussions/new?category=ideas
7+
url: https://github.com/solutionforest/workflow-engine-laravel/discussions/new?category=ideas
88
about: Share ideas for new features
99
- name: Report a security issue
10-
url: https://github.com//workflow-mastery/security/policy
10+
url: https://github.com/solutionforest/workflow-engine-laravel/security/policy
1111
about: Learn how to notify us for sensitive bugs

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,4 @@ phpstan.neon
3030
testbench.yaml
3131
# /docs
3232
/coverage
33+

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Changelog
22

3-
All notable changes to `workflow-mastery` will be documented in this file.
3+
All notable changes to `workflow-engine-laravel` will be documented in this file.

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Laravel Workflow Engine
22

3-
[![Latest Version on Packagist](https://img.shields.io/packagist/v/solution-forest/laravel-workflow-engine.svg?style=flat-square)](https://packagist.org/packages/solution-forest/laravel-workflow-engine)
4-
[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/solution-forest/laravel-workflow-engine/run-tests.yml?branch=main&label=tests&style=flat-square)](https://github.com/solution-forest/laravel-workflow-engine/actions?query=workflow%3Arun-tests+branch%3Amain)
5-
[![Total Downloads](https://img.shields.io/packagist/dt/solution-forest/laravel-workflow-engine.svg?style=flat-square)](https://packagist.org/packages/solution-forest/laravel-workflow-engine)
3+
[![Latest Version on Packagist](https://img.shields.io/packagist/v/solution-forest/workflow-engine-laravel.svg?style=flat-square)](https://packagist.org/packages/solution-forest/workflow-engine-laravel)
4+
[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/solutionforest/workflow-engine-laravel/run-tests.yml?branch=main&label=tests&style=flat-square)](https://github.com/solutionforest/workflow-engine-laravel/actions?query=workflow%3Arun-tests+branch%3Amain)
5+
[![Total Downloads](https://img.shields.io/packagist/dt/solution-forest/workflow-engine-laravel.svg?style=flat-square)](https://packagist.org/packages/solution-forest/workflow-engine-laravel)
66

77
**A modern, type-safe workflow engine for Laravel built with PHP 8.3+ features**
88

@@ -23,7 +23,7 @@ Create powerful business workflows with a beautiful, fluent API. Turn complex pr
2323
### Installation
2424

2525
```bash
26-
composer require solution-forest/laravel-workflow-engine
26+
composer require solution-forest/workflow-engine-laravel
2727
php artisan vendor:publish --tag="workflow-engine-config"
2828
php artisan migrate
2929
```

composer.json

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
{
2-
"name": "solution-forest/workflow-mastery",
3-
"description": "A powerful, framework-agnostic workflow engine for PHP with Laravel integration - enabling complex business process automation with state management, parallel execution, and extensible action system.",
2+
"name": "solution-forest/workflow-engine-laravel",
3+
"description": "Laravel integration for the Workflow Engine - providing Eloquent models, service providers, and artisan commands for seamless workflow management",
44
"keywords": [
55
"solutionforest",
66
"laravel",
7-
"workflow-mastery",
87
"workflow-engine",
8+
"workflow-laravel",
99
"business-process",
1010
"automation",
1111
"orchestration",
12-
"state-machine"
12+
"state-machine",
13+
"laravel-package"
1314
],
14-
"homepage": "https://github.com/solution-forest/workflow-mastery",
15+
"homepage": "https://github.com/solutionforest/workflow-engine-laravel",
1516
"license": "MIT",
1617
"authors": [
1718
{
@@ -22,11 +23,12 @@
2223
],
2324
"require": {
2425
"php": "^8.3",
25-
"spatie/laravel-package-tools": "^1.16",
2626
"illuminate/contracts": "^10.0||^11.0||^12.0",
27-
"illuminate/support": "^10.0||^11.0||^12.0",
2827
"illuminate/database": "^10.0||^11.0||^12.0",
29-
"illuminate/events": "^10.0||^11.0||^12.0"
28+
"illuminate/events": "^10.0||^11.0||^12.0",
29+
"illuminate/support": "^10.0||^11.0||^12.0",
30+
"solution-forest/workflow-engine-core": "^0.0.1-alpha",
31+
"spatie/laravel-package-tools": "^1.16"
3032
},
3133
"conflict": {
3234
"laravel/framework": "<11.0.0"
@@ -46,16 +48,15 @@
4648
},
4749
"autoload": {
4850
"psr-4": {
49-
"SolutionForest\\WorkflowMastery\\": "src/",
50-
"SolutionForest\\WorkflowMastery\\Database\\Factories\\": "database/factories/"
51+
"SolutionForest\\WorkflowEngine\\Laravel\\": "src/"
5152
},
5253
"files": [
5354
"src/helpers.php"
5455
]
5556
},
5657
"autoload-dev": {
5758
"psr-4": {
58-
"SolutionForest\\WorkflowMastery\\Tests\\": "tests/",
59+
"SolutionForest\\WorkflowEngine\\Laravel\\Tests\\": "tests/",
5960
"Workbench\\App\\": "workbench/app/"
6061
}
6162
},
@@ -77,10 +78,10 @@
7778
"extra": {
7879
"laravel": {
7980
"providers": [
80-
"SolutionForest\\WorkflowMastery\\LaravelWorkflowEngineServiceProvider"
81+
"SolutionForest\\WorkflowEngine\\Laravel\\Providers\\WorkflowEngineServiceProvider"
8182
],
8283
"aliases": {
83-
"WorkflowMastery": "SolutionForest\\WorkflowMastery\\Facades\\WorkflowMastery"
84+
"WorkflowEngine": "SolutionForest\\WorkflowEngine\\Laravel\\Facades\\WorkflowEngine"
8485
}
8586
}
8687
},

config/workflow-mastery.php

Lines changed: 0 additions & 67 deletions
This file was deleted.

docs/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ For contributors and those interested in the internals:
2525

2626
## Quick Links
2727

28-
- [GitHub Repository](https://github.com/solution-forest/laravel-workflow-engine)
29-
- [Packagist Package](https://packagist.org/packages/solution-forest/laravel-workflow-engine)
30-
- [Issue Tracker](https://github.com/solution-forest/laravel-workflow-engine/issues)
28+
- [GitHub Repository](https://github.com/solutionforest/workflow-engine-laravel)
29+
- [Packagist Package](https://packagist.org/packages/solution-forest/workflow-engine-laravel)
30+
- [Issue Tracker](https://github.com/solutionforest/workflow-engine-laravel/issues)
3131
- [Contributing Guidelines](../CONTRIBUTING.md)

docs/advanced-features.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -265,19 +265,19 @@ Listen to workflow events:
265265

266266
```php
267267
use SolutionForest\WorkflowEngine\Events\WorkflowStarted;
268-
use SolutionForest\WorkflowEngine\Events\WorkflowCompleted;
269-
use SolutionForest\WorkflowEngine\Events\WorkflowFailed;
268+
use SolutionForest\WorkflowEngine\Events\WorkflowCompletedEvent;
269+
use SolutionForest\WorkflowEngine\Events\WorkflowFailedEvent;
270270

271271
// In your EventServiceProvider
272272
protected $listen = [
273273
WorkflowStarted::class => [
274274
LogWorkflowStarted::class,
275275
],
276-
WorkflowCompleted::class => [
276+
WorkflowCompletedEvent::class => [
277277
LogWorkflowCompleted::class,
278278
SendCompletionNotification::class,
279279
],
280-
WorkflowFailed::class => [
280+
WorkflowFailedEvent::class => [
281281
LogWorkflowFailure::class,
282282
AlertAdministrators::class,
283283
],

docs/best-practices.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -345,11 +345,11 @@ Alert on workflow failures and performance issues:
345345

346346
```php
347347
// In your EventServiceProvider
348-
use SolutionForest\WorkflowEngine\Events\WorkflowFailed;
348+
use SolutionForest\WorkflowEngine\Events\WorkflowFailedEvent;
349349

350350
protected $listen = [
351-
WorkflowFailed::class => [
352-
function (WorkflowFailed $event) {
351+
WorkflowFailedEvent::class => [
352+
function (WorkflowFailedEvent $event) {
353353
// Alert if critical workflow fails
354354
if (in_array($event->workflowName, ['payment-processing', 'order-fulfillment'])) {
355355
Alert::critical("Critical workflow failed: {$event->workflowName}", [

docs/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
### Install the Package
1212

1313
```bash
14-
composer require solution-forest/laravel-workflow-engine
14+
composer require solution-forest/workflow-engine-laravel
1515
```
1616

1717
### Publish Configuration

0 commit comments

Comments
 (0)