{"id":50757993,"url":"https://github.com/arunrajiah/flowpress","last_synced_at":"2026-06-11T07:02:26.371Z","repository":{"id":353725328,"uuid":"1220652391","full_name":"arunrajiah/flowpress","owner":"arunrajiah","description":"Free, open-source automation plugin for WordPress. Build powerful 'when X → do Y' recipes without leaving your site.","archived":false,"fork":false,"pushed_at":"2026-04-25T07:07:05.000Z","size":103,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-25T09:13:14.579Z","etag":null,"topics":["automation","php","wordpress","wordpress-plugin"],"latest_commit_sha":null,"homepage":"https://github.com/arunrajiah/flowpress","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arunrajiah.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["arunrajiah"]}},"created_at":"2026-04-25T06:38:32.000Z","updated_at":"2026-04-25T07:07:08.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/arunrajiah/flowpress","commit_stats":null,"previous_names":["arunrajiah/flowpress"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/arunrajiah/flowpress","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arunrajiah%2Fflowpress","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arunrajiah%2Fflowpress/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arunrajiah%2Fflowpress/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arunrajiah%2Fflowpress/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arunrajiah","download_url":"https://codeload.github.com/arunrajiah/flowpress/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arunrajiah%2Fflowpress/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34186385,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-11T02:00:06.485Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","php","wordpress","wordpress-plugin"],"created_at":"2026-06-11T07:02:25.419Z","updated_at":"2026-06-11T07:02:26.362Z","avatar_url":"https://github.com/arunrajiah.png","language":"PHP","funding_links":["https://github.com/sponsors/arunrajiah"],"categories":[],"sub_categories":[],"readme":"# FlowPress — Automation for WordPress\n\n[![CI](https://github.com/arunrajiah/flowpress/actions/workflows/ci.yml/badge.svg)](https://github.com/arunrajiah/flowpress/actions/workflows/ci.yml)\n[![Version](https://img.shields.io/badge/version-0.1.0-blue.svg)](https://github.com/arunrajiah/flowpress/releases/tag/v0.1.0)\n[![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)\n[![PHP](https://img.shields.io/badge/PHP-7.4%2B-8892BF.svg)](https://www.php.net/)\n[![WordPress](https://img.shields.io/badge/WordPress-5.9%2B-21759B.svg)](https://wordpress.org/)\n[![Sponsor](https://img.shields.io/badge/sponsor-%E2%99%A5-f43f5e.svg)](https://github.com/sponsors/arunrajiah)\n\nFree, open-source, on-site automation for WordPress. Build **\"when X happens, do Y\"** workflows — no cloud service, no monthly fee, no data ever leaving your server.\n\n---\n\n## Why FlowPress?\n\nMost WordPress automation tools phone home to a third-party service, charge a monthly fee, or both. FlowPress runs entirely inside WordPress:\n\n| | FlowPress | Cloud automation tools |\n|---|---|---|\n| Monthly cost | **Free** | $20–$100 / month |\n| Data leaves your server | **Never** | Always |\n| Works without internet | **Yes** | No |\n| Open source | **MIT** | Usually not |\n| Extends via code | **Yes** | Sometimes |\n\n---\n\n## Features\n\n- **Visual recipe builder** — pick a trigger, add optional conditions, then chain one or more actions\n- **Token placeholders** — insert `{{post_title}}`, `{{user_email}}`, `{{order_total}}` into any action field\n- **AND / OR conditions** — 10 operators: `equals`, `not_equals`, `contains`, `not_contains`, `starts_with`, `ends_with`, `greater_than`, `less_than`, `is_set`, `is_empty`\n- **Retry queue** — failed actions are retried up to 4 times with exponential back-off (60 s → 5 min → 30 min → 2 hr)\n- **Full run log** — every execution records its payload, per-action result, and final status\n- **Dry-run test** — fire any recipe from the builder UI without publishing a real post or placing a real order\n- **Duplicate recipes** — clone a recipe in one click to build variants quickly\n- **Extensible** — register custom triggers and actions from any plugin with two action hooks\n\n---\n\n## Bundled Triggers\n\n| Trigger | WordPress Hook | Tokens |\n|---|---|---|\n| Post Published | `transition_post_status` | `post_id`, `post_title`, `post_url`, `post_type`, `post_author_id`, `post_author_name`, `post_author_email`, `post_status`, `post_date`, `post_excerpt` |\n| Comment Posted | `comment_post` | `comment_id`, `comment_author`, `comment_author_email`, `comment_content`, `comment_post_id`, `comment_post_title` |\n| User Registered | `user_register` | `user_id`, `user_login`, `user_email`, `user_display_name`, `user_registered` |\n| User Role Changed | `set_user_role` | `user_id`, `user_email`, `user_display_name`, `old_role`, `new_role` |\n| WooCommerce Order Placed *(requires WC)* | `woocommerce_checkout_order_processed` | `order_id`, `order_total`, `order_status`, `billing_email`, `billing_first_name`, `billing_last_name`, `billing_address`, `payment_method`, `customer_id` |\n| Incoming Webhook | REST `POST /wp-json/flowpress/v1/webhook/{slug}` | Any key from the JSON body |\n\n---\n\n## Bundled Actions\n\n| Action | Description |\n|---|---|\n| **Send Email** | `wp_mail()` with token-resolved `To`, `Subject`, and `Body`; supports HTML |\n| **Outbound Webhook** | HTTP POST / GET / PUT to any URL; optional HMAC-SHA256 signature header |\n| **WooCommerce Create Coupon** *(requires WC)* | Generates a `WC_Coupon` with configurable discount type, amount, and expiry |\n| **WooCommerce Add Order Note** *(requires WC)* | Appends an internal or customer-facing note to any order |\n\n---\n\n## Requirements\n\n| Requirement | Minimum |\n|---|---|\n| WordPress | 5.9 |\n| PHP | 7.4 |\n| MySQL / MariaDB | 5.6 / 10.0 |\n| WooCommerce *(optional)* | 7.0 |\n\n---\n\n## Installation\n\n**Option 1 — GitHub Release ZIP** *(recommended)*\n\n1. Download the latest ZIP from the [Releases page](https://github.com/arunrajiah/flowpress/releases).\n2. In WordPress go to **Plugins → Add New → Upload Plugin**.\n3. Upload the ZIP and click **Activate**.\n\n**Option 2 — Git clone**\n\n```bash\ncd wp-content/plugins\ngit clone https://github.com/arunrajiah/flowpress.git\n```\n\nThen activate the plugin in **Plugins → Installed Plugins**.\n\n**Option 3 — Composer** *(coming soon)*\n\n```bash\ncomposer require arunrajiah/flowpress\n```\n\n---\n\n## Quick Start\n\n1. Navigate to **FlowPress → Recipes** and click **Add New Recipe**.\n2. Give the recipe a name and choose a **Trigger** (e.g. *Post Published*).\n3. Optionally add **Conditions** (e.g. *post_type equals product*).\n4. Click **+ Add Action** and configure it (e.g. *Send Email* with `{{post_author_email}}` in the To field).\n5. Click **Save Recipe** then **Enable** it from the list.\n\nThe next time the trigger fires, FlowPress will execute the recipe and record the result in **FlowPress → Runs**.\n\n---\n\n## Token Reference\n\nTokens are written as `{{token_key}}` inside any action field. Each trigger exposes its own set of tokens:\n\n```\n{{post_id}}           →  123\n{{post_title}}        →  \"Hello World\"\n{{post_url}}          →  \"https://example.com/hello-world/\"\n{{user_email}}        →  \"jane@example.com\"\n{{order_total}}       →  \"49.99\"\n```\n\nTokens that are not present in the current trigger payload are left as-is (not replaced), making it easy to spot configuration errors in the run log.\n\n---\n\n## Architecture\n\n```\nWordPress hook fires\n        │\n        ▼\n  FlowPress_Runner\n  ├── Finds all enabled recipes for this trigger\n  ├── Evaluates conditions (FlowPress_Condition_Evaluator)\n  │       └── AND / OR across 10 operators\n  ├── Resolves {{tokens}} (FlowPress_Placeholder)\n  └── Executes actions in order\n          ├── Success → logs result\n          └── Failure → FlowPress_Retry_Queue (WP-Cron, exponential back-off)\n\nAdmin layer\n  ├── Recipe builder (JS + PHP AJAX)\n  ├── Recipes list table (WP_List_Table)\n  └── Runs dashboard (per-recipe log viewer)\n```\n\nAll data lives in standard WordPress tables (`wp_posts`, `wp_postmeta`) plus two custom tables (`flowpress_run_log`, `flowpress_audit_log`). No external database, no proprietary storage format.\n\n---\n\n## Extending FlowPress\n\nRegister custom triggers and actions from any plugin:\n\n```php\n// Register a custom trigger\nadd_action( 'flowpress_register_triggers', function ( string $registry ): void {\n    $registry::register( new My_Plugin_Trigger_Form_Submitted() );\n} );\n\n// Register a custom action\nadd_action( 'flowpress_register_actions', function ( string $registry ): void {\n    $registry::register( new My_Plugin_Action_Send_Slack() );\n} );\n```\n\nA trigger must extend `FlowPress_Abstract_Trigger` and implement `get_type()`, `get_label()`, `get_tokens()`, and `register_hook()`. An action must extend `FlowPress_Abstract_Action` and implement `get_type()`, `get_label()`, `get_fields()`, and `execute()`.\n\nSee [`docs/DEVELOPERS.md`](docs/DEVELOPERS.md) for the full API reference and [`example-integration/`](example-integration/) for a working starter plugin.\n\n---\n\n## Project Structure\n\n```\nflowpress/\n├── flowpress.php                    # Plugin entry point \u0026 constants\n├── flowpress-hooks.php              # Public hook reference (never loaded at runtime)\n├── readme.txt                       # WordPress.org plugin directory readme\n├── uninstall.php                    # Cleanup on plugin deletion\n├── composer.json\n├── phpcs.xml\n├── docs/\n│   └── DEVELOPERS.md               # Extension API guide\n├── example-integration/            # Copy-and-rename starter integration plugin\n│   ├── flowpress-example-integration.php\n│   └── includes/\n│       ├── class-fp-example-trigger-cf7.php\n│       └── class-fp-example-action-slack.php\n├── includes/\n│   ├── class-flowpress.php          # Singleton orchestrator\n│   ├── class-flowpress-activator.php\n│   ├── class-flowpress-deactivator.php\n│   ├── class-flowpress-runner.php\n│   ├── class-flowpress-recipe.php\n│   ├── class-flowpress-placeholder.php\n│   ├── class-flowpress-condition-evaluator.php\n│   ├── class-flowpress-retry-queue.php\n│   ├── class-flowpress-incoming-webhook.php\n│   ├── class-flowpress-abstract-trigger.php\n│   ├── class-flowpress-abstract-action.php\n│   ├── triggers/\n│   │   ├── class-flowpress-trigger-post-published.php\n│   │   ├── class-flowpress-trigger-comment-posted.php\n│   │   ├── class-flowpress-trigger-user-registered.php\n│   │   ├── class-flowpress-trigger-user-role-changed.php\n│   │   ├── class-flowpress-trigger-woo-order-placed.php\n│   │   └── class-flowpress-trigger-incoming-webhook.php\n│   ├── actions/\n│   │   ├── class-flowpress-action-send-email.php\n│   │   ├── class-flowpress-action-outbound-webhook.php\n│   │   ├── class-flowpress-action-woo-create-coupon.php\n│   │   └── class-flowpress-action-woo-order-note.php\n│   └── admin/\n│       ├── class-flowpress-admin.php\n│       ├── class-flowpress-recipes-list-table.php\n│       ├── class-flowpress-runs-admin.php\n│       └── views/\n│           ├── builder.php\n│           ├── promo-banner.php\n│           └── runs-page.php\n├── assets/\n│   ├── js/admin.js\n│   └── css/admin.css\n└── tests/\n    ├── test-plugin-activation.php\n    ├── test-runner.php\n    └── test-conditions.php\n```\n\n---\n\n## Development\n\n### Running Tests\n\n```bash\n# Install WordPress test suite (one-time, requires a local MySQL instance)\nbash bin/install-wp-tests.sh wordpress_test root '' localhost latest\n\n# Run PHPUnit\ncomposer test\n\n# Run a single test file\n./vendor/bin/phpunit tests/test-runner.php\n\n# Run with coverage (requires Xdebug or PCOV)\n./vendor/bin/phpunit --coverage-text\n```\n\n### Code Style\n\n```bash\n# Check (zero errors expected)\ncomposer cs\n\n# Auto-fix\ncomposer cs-fix\n```\n\n### CI\n\nGitHub Actions runs PHPCS and PHPUnit across PHP 7.4, 8.1, and 8.2 against the latest WordPress on every push and pull request.\n\n---\n\n## Contributing\n\nContributions are welcome — bug reports, feature requests, code, docs, or tests.\n\nPlease read [CONTRIBUTING.md](CONTRIBUTING.md) before opening a pull request. Key points:\n\n- Branch: `feat/\u003cdescription\u003e`, `fix/\u003cdescription\u003e`, `docs/\u003cdescription\u003e`\n- Commit style: [Conventional Commits](https://www.conventionalcommits.org/)\n- All CI checks must pass before merge\n\n---\n\n## Changelog\n\nSee [CHANGELOG.md](CHANGELOG.md) for a full history of changes.\n\n---\n\n## License\n\nMIT © [FlowPress Contributors](https://github.com/arunrajiah/flowpress/graphs/contributors)\n\nBuilt with ♥ by [arunrajiah](https://github.com/arunrajiah).\n[Become a sponsor](https://github.com/sponsors/arunrajiah) to support continued development.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farunrajiah%2Fflowpress","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farunrajiah%2Fflowpress","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farunrajiah%2Fflowpress/lists"}