{"id":36940164,"url":"https://github.com/millipress/millirules","last_synced_at":"2026-05-28T22:00:48.959Z","repository":{"id":326585459,"uuid":"1094270192","full_name":"MilliPress/MilliRules","owner":"MilliPress","description":"A declarative rule engine for PHP that turns complex conditional logic into readable \"when-then\" rules. Features a fluent builder API, lazy-loaded context for performance, smart operator inference, and works seamlessly in pure PHP or WordPress.","archived":false,"fork":false,"pushed_at":"2026-04-29T09:57:51.000Z","size":809,"stargazers_count":15,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-29T11:27:42.610Z","etag":null,"topics":["actions","conditions","fluent-api","php","rules","wordpress"],"latest_commit_sha":null,"homepage":"https://millipress.com/millirules","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MilliPress.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"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}},"created_at":"2025-11-11T13:41:33.000Z","updated_at":"2026-04-29T09:57:40.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/MilliPress/MilliRules","commit_stats":null,"previous_names":["millipress/millirules"],"tags_count":22,"template":false,"template_full_name":null,"purl":"pkg:github/MilliPress/MilliRules","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MilliPress%2FMilliRules","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MilliPress%2FMilliRules/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MilliPress%2FMilliRules/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MilliPress%2FMilliRules/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MilliPress","download_url":"https://codeload.github.com/MilliPress/MilliRules/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MilliPress%2FMilliRules/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33627938,"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-05-28T02:00:06.440Z","response_time":99,"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":["actions","conditions","fluent-api","php","rules","wordpress"],"created_at":"2026-01-13T10:38:11.938Z","updated_at":"2026-05-28T22:00:48.947Z","avatar_url":"https://github.com/MilliPress.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MilliRules\n\nA flexible, framework-agnostic rule evaluation engine for PHP 7.4+.\n\n## Overview\n\nMilliRules is a powerful rule engine that allows you to define complex conditional logic using a fluent API. It's designed to be framework-agnostic while providing specialized support for HTTP and WordPress environments.\n\n## Features\n\n- **Fluent API**: Build complex rules with an intuitive, chainable syntax\n- **Framework Agnostic**: Core engine works with any PHP application\n- **Lazy-Loaded Context**: On-demand loading of context data for optimal performance\n- **HTTP Support**: Built-in conditions for request handling\n- **WordPress Integration**: Native support for WordPress queries and context\n- **Extensible**: Easy to add custom conditions and actions\n- **Flexible Naming**: Use snake_case or camelCase — `when_all()` and `whenAll()` both work\n- **PHP 7.4+ Compatible**: Works with PHP 7.4+, PHP 8.0+ recommended\n\n## Installation\n\n```bash\ncomposer require millipress/millirules\n```\n\n## Quick Start\n\n```php\nuse MilliRules\\Rules;\n\n// Simple HTTP rule\nRules::create('api_check')\n    -\u003ewhen()\n        -\u003erequest_url('/api/*')\n    -\u003ethen()\n        -\u003ecustom( 'auth-check', function($context) {\n            // Your action here\n        })\n    -\u003eregister();\n```\n\n## Documentation\n\nSee the [full documentation](https://millipress.com/docs/millirules/) for detailed guides and API reference.\n\n## License\n\nGPL-2.0-or-later\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmillipress%2Fmillirules","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmillipress%2Fmillirules","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmillipress%2Fmillirules/lists"}