PHPackages                             varunsridharan/wp-conditional-logic - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. varunsridharan/wp-conditional-logic

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

varunsridharan/wp-conditional-logic
===================================

Simple WordPress Library To Evaluate / Handle Conditional Logic.

1.3(5y ago)532.5k[1 issues](https://github.com/varunsridharan/wp-conditional-logic/issues)[1 PRs](https://github.com/varunsridharan/wp-conditional-logic/pulls)1GPL-3.0-or-laterPHP

Since Feb 8Pushed 5y ago2 watchersCompare

[ Source](https://github.com/varunsridharan/wp-conditional-logic)[ Packagist](https://packagist.org/packages/varunsridharan/wp-conditional-logic)[ Docs](https://github.com/varunsridharan/wp-conditional-logic/)[ Fund](https://paypal.me/varunsridharan23)[ Fund](https://www.buymeacoffee.com/varunsridharan)[ RSS](/packages/varunsridharan-wp-conditional-logic/feed)WikiDiscussions main Synced 2mo ago

READMEChangelog (4)DependenciesVersions (6)Used By (1)

WP Conditional Logic
====================

[](#wp-conditional-logic)

Simple WordPress Library To Evaluate / Handle Conditional Logic.

[![Latest Stable Version](https://camo.githubusercontent.com/cf12caa4cd5f41a183814fb25cec44399f3dc9a7ca9328ac724f4908fb6c3152/68747470733a2f2f706f7365722e707567782e6f72672f766172756e73726964686172616e2f77702d636f6e646974696f6e616c2d6c6f6769632f76657273696f6e)](https://packagist.org/packages/varunsridharan/wp-conditional-logic)[![Latest Unstable Version](https://camo.githubusercontent.com/cadc04823281af7a693eadb2b2919f1df505ce28dd40c60afa0f95d678bc100c/68747470733a2f2f706f7365722e707567782e6f72672f766172756e73726964686172616e2f77702d636f6e646974696f6e616c2d6c6f6769632f762f756e737461626c65)](https://packagist.org/packages/varunsridharan/wp-conditional-logic)[![Total Downloads](https://camo.githubusercontent.com/90077f6ec540d39ace48aaecb1afc04f0abc3975846ef4e9eecd06c334088f70/68747470733a2f2f706f7365722e707567782e6f72672f766172756e73726964686172616e2f77702d636f6e646974696f6e616c2d6c6f6769632f646f776e6c6f616473)](https://packagist.org/packages/varunsridharan/wp-conditional-logic)[![WP](https://camo.githubusercontent.com/ffba221a69a414072e7c2cb0bc46e849eddee342fbc151dd967cea940155c2b8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f576f726450726573732d5374616e6461722d3161626339632e737667)](https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/)[![License](https://camo.githubusercontent.com/aca24b9ec6db0e006a8b8e80d94fde08c251c357eb71a14ae064b6ccf3c69be8/68747470733a2f2f706f7365722e707567782e6f72672f766172756e73726964686172616e2f77702d636f6e646974696f6e616c2d6c6f6769632f6c6963656e7365)](https://packagist.org/packages/varunsridharan/wp-conditional-logic)[![composer.lock available](https://camo.githubusercontent.com/6dc5bdac42ff0913e181c6cab116eca7b13757feee60d09f0c4b073173ab8873/68747470733a2f2f706f7365722e707567782e6f72672f766172756e73726964686172616e2f77702d636f6e646974696f6e616c2d6c6f6769632f636f6d706f7365726c6f636b)](https://packagist.org/packages/varunsridharan/wp-conditional-logic)

Installation
------------

[](#installation)

The preferred way to install this extension is through [Composer](http://getcomposer.org/download/).

To install **WP Conditional Logic library**, simply:

```
$ composer require varunsridharan/wp-conditional-logic

```

The previous command will only install the necessary files, if you prefer to **download the entire source code** you can use:

```
$ composer require varunsridharan/wp-conditional-logic --prefer-source

```

You can also **clone the complete repository** with Git:

```
$ git clone https://github.com/varunsridharan/wp-conditional-logic.git

```

Or **install it manually**:

[Download wp-conditional-logic.zip](https://github.com/varunsridharan/wp-conditional-logic/archive/master.zip):

```
$ wget https://github.com/varunsridharan/wp-conditional-logic/archive/master.zip

```

---

📝 Changelog
-----------

[](#-changelog)

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

[Checkout CHANGELOG.md](https://github.com/varunsridharan/wp-conditional-logic/blob/main/CHANGELOG.md)

🤝 Contributing
--------------

[](#-contributing)

If you would like to help, please take a look at the list of [issues](https://github.com/varunsridharan/wp-conditional-logic/issues/).

📜 License &amp; Conduct
-----------------------

[](#--license--conduct)

- [**GNU General Public License v3.0**](https://github.com/varunsridharan/wp-conditional-logic/blob/main/LICENSE) © [Varun Sridharan](website)
- [Code of Conduct](https://github.com/varunsridharan/.github/blob/main/CODE_OF_CONDUCT.md)

📣 Feedback
----------

[](#-feedback)

- ⭐ This repository if this project helped you! 😉
- Create An [🔧 Issue](https://github.com/varunsridharan/wp-conditional-logic/issues/) if you need help / found a bug

💰 Sponsor
---------

[](#-sponsor)

[I](https://sva.onl/twitter/) fell in love with open-source in 2013 and there has been no looking back since! You can read more about me [here](https://sva.onl/website/). If you, or your company, use any of my projects or like what I’m doing, kindly consider backing me. I'm in this for the long run.

- ☕ How about we get to know each other over coffee? Buy me a cup for just [**$9.99**](https://sva.onl/buymeacoffee)
- ☕️☕️ How about buying me just 2 cups of coffee each month? You can do that for as little as [**$9.99**](https://sva.onl/buymeacoffee)
- 🔰 We love bettering open-source projects. Support 1-hour of open-source maintenance for [**$24.99 one-time?**](https://sva.onl/paypal)
- 🚀 Love open-source tools? Me too! How about supporting one hour of open-source development for just [**$49.99 one-time ?**](https://sva.onl/paypal)

Connect &amp; Say 👋
-------------------

[](#connect--say-)

- **Follow** me on [👨‍💻 Github](https://sva.onl/github/) and stay updated on free and open-source software
- **Follow** me on [🐦 Twitter](https://sva.onl/twitter/) to get updates on my latest open source projects
- **Message** me on [📠 Telegram](https://sva.onl/telegram/)
- **Follow** my pet on [Instagram](https://www.instagram.com/sofythelabrador/) for some *dog-tastic* updates!

---

*Built With ♥ By [Varun Sridharan](https://sva.onl/twitter) [ ![](https://camo.githubusercontent.com/ac180da7a81f72a639abce09c4827e7bacfdd3b82586b657387a7f84430c7b7f/68747470733a2f2f63646e2e73766172756e2e6465762f666c61672d696e6469612e6a7067)](https://en.wikipedia.org/wiki/India)*

 [![](https://camo.githubusercontent.com/51991d58f40dac784a0c08b9c5c16c66c59ef5bdf083e3d49e4f617ef98e03ee/68747470733a2f2f63646e2e73766172756e2e6465762f636f64656973706f657472792e706e67)](https://camo.githubusercontent.com/51991d58f40dac784a0c08b9c5c16c66c59ef5bdf083e3d49e4f617ef98e03ee/68747470733a2f2f63646e2e73766172756e2e6465762f636f64656973706f657472792e706e67)

---

###  Health Score

33

—

LowBetter than 74% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~264 days

Total

4

Last Release

1854d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/522dc9d037e4b0517ee9b76cd63d75a6331b0e578afa9b27fee84b02863ace80?d=identicon)[varunsridharan](/maintainers/varunsridharan)

---

Top Contributors

[![varunsridharan](https://avatars.githubusercontent.com/u/1884287?v=4)](https://github.com/varunsridharan "varunsridharan (36 commits)")

---

Tags

conditional-logicconditional-statementsvsp-libswordpresswordpress-frameworkwordpress-librarywordpress-pluginwordpress-plugin-addonwordpress-plugin-librarywordpress-themewordpress-theme-developmentwordpress-theme-librarywp-library

### Embed Badge

![Health badge](/badges/varunsridharan-wp-conditional-logic/health.svg)

```
[![Health](https://phpackages.com/badges/varunsridharan-wp-conditional-logic/health.svg)](https://phpackages.com/packages/varunsridharan-wp-conditional-logic)
```

###  Alternatives

[robicch/jquery-gantt

Twproject Gantt editor is a free online tool for creating and sharing Gantts

2.3k157.7k](/packages/robicch-jquery-gantt)[brickrouge/brickrouge

A toolkit to create HTML elements

301.8k6](/packages/brickrouge-brickrouge)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
