PHPackages                             krike/wp-elements - 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. krike/wp-elements

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

krike/wp-elements
=================

An easy to use Library Class to speed the process of writting wordpress plugin and the structure layout of your plugin

1.0(10y ago)521GPLPHPPHP &gt;=5.3.0

Since Oct 5Pushed 10y agoCompare

[ Source](https://github.com/krike/WPelements)[ Packagist](https://packagist.org/packages/krike/wp-elements)[ RSS](/packages/krike-wp-elements/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

WPelements
==========

[](#wpelements)

An easy to use Library Class to speed the process of writting wordpress plugin and the structure layout of your plugin.

Install
-------

[](#install)

```
composer require krike/wp-elements

```

Usage
-----

[](#usage)

You can can create a new instance of the class WP\_elements or make a static function call.

```
$wpelements = new WP_elements();
$wpelements->set_featured_image($file, $post_id)

```

OR

```
WP_elements::set_featured_image($file, $post_id)

```

#### Available functions:

[](#available-functions)

FunctionDescriptionopenWrapper(title,`(optional)`iconName)Opens a wrapper box for the admin page. (requires closeWrapper() at the end of your code) `WP_elements::openWrapper('Page title', 'themes');`closeWrapper()Closes the wrapper box for the admin page `WP_elements::closeWrapper()`openForm()`openForm($action = '', $method = 'post', $enctype = false, $id = '')`closeForm()`closeForm()`openTableWrapper()`openTableWrapper($title, $icon = false, $class = 'options', $columns = 3)`closeTableWrapper()`closeTableWrapper($columns = 3, $submit = array('btn_name' => 'submit', 'btn_title' => 'Update Options'))`loadView()`loadView($paths, $data = null)`set\_value()`set_value($value, $default_value)`set\_form\_value()`set_form_value($name, $default_value)`if\_checked()`if_checked($value)`if\_selected()`if_selected($value)`createSlug()`createSlug($slug)`getFileContent()`getFileContent($path)`jsonResponseOutput()`jsonResponseOutput($response)`input\_field()`input_field($type = 'text', $name, $label, $params = null)`textarea\_field()`textarea_field($name, $label, $params = null)`select\_field()`select_field($options, $name, $label, $params = null)`minifyCode()`minifyCode($code)`uploadDownloadFiles()`uploadDownloadFiles($fieldName, $supported_types, $optional = false)`set\_featured\_image()`set_featured_image($file, $post_id)`check\_upload\_folder()`check_upload_folder($folderName)`filter\_options()`filter_options()`Coming in next update
=====================

[](#coming-in-next-update)

- Twig ready functions

License
=======

[](#license)

This Library Class is licensed under GPL and can be used in both personal and commercial applications.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

3925d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7575eb53e9d051ef05839eb1387f8963376025f37bcc6ed20bacc721f306058a?d=identicon)[krike](/maintainers/krike)

---

Top Contributors

[![krikke26](https://avatars.githubusercontent.com/u/524875?v=4)](https://github.com/krikke26 "krikke26 (18 commits)")

### Embed Badge

![Health badge](/badges/krike-wp-elements/health.svg)

```
[![Health](https://phpackages.com/badges/krike-wp-elements/health.svg)](https://phpackages.com/packages/krike-wp-elements)
```

###  Alternatives

[yourls/yourls

Your Own URL Shortener

12.1k27.9k2](/packages/yourls-yourls)

PHPackages © 2026

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