PHPackages                             simpleteam/craft-toolkit - 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. simpleteam/craft-toolkit

ActiveCraft-plugin[Utility &amp; Helpers](/categories/utility)

simpleteam/craft-toolkit
========================

A comprehensive toolkit for Craft CMS - provides options, utilities, and enhanced functionality

0.9.2(9mo ago)02MITPHP

Since Sep 9Pushed 9mo agoCompare

[ Source](https://github.com/simple-integrated-marketing/craft-toolkit)[ Packagist](https://packagist.org/packages/simpleteam/craft-toolkit)[ RSS](/packages/simpleteam-craft-toolkit/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (1)Versions (4)Used By (0)

Simple Craft Toolkit
====================

[](#simple-craft-toolkit)

A comprehensive toolkit for Craft CMS that provides complementary functionality and utilities. Currently includes an options system for easy key-value storage accessible via `Craft::$app->options`.

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

[](#installation)

```
composer require simpleteam/craft-toolkit
# Activation on DDEV
ddev craft plugin/install simpleteam-craft-toolkit
```

The plugin will automatically register the `options` component when installed.

Usage
-----

[](#usage)

Once installed, you can use the options component anywhere in your Craft application:

### Store a value

[](#store-a-value)

```
Craft::$app->options->set('my_key', 'my_value');

// Store complex data (automatically will be JSON encoded)
Craft::$app->options->set('user_preferences', [
    'theme' => 'dark',
    'language' => 'en',
    'notifications' => true
]);
```

### Retrieve a value

[](#retrieve-a-value)

```
$value = Craft::$app->options->get('my_key');

// With default value
$theme = Craft::$app->options->get('my_key', 'some_default_value');
```

### Check if option exists

[](#check-if-option-exists)

```
if (Craft::$app->options->exists('my_key')) {
    // Option exists
}

// Or use the alias
if (Craft::$app->options->has('my_key')) {
    // Option exists
}
```

### Delete an option

[](#delete-an-option)

```
Craft::$app->options->delete('my_key');
```

### Get all options

[](#get-all-options)

```
$allOptions = Craft::$app->options->getAll();

// Get only autoload options
$autoloadOptions = Craft::$app->options->getAll(true);
```

### Set multiple options

[](#set-multiple-options)

```
Craft::$app->options->setMultiple([
    'option1' => 'value1',
    'option2' => 'value2',
    'option3' => ['complex' => 'data']
]);
```

Features
--------

[](#features)

### Options System

[](#options-system)

- **Automatic Installation**: No manual configuration required
- **WordPress-like API**: Familiar interface for WordPress developers
- **JSON Support**: Automatically handles complex data types
- **Database Storage**: Uses a dedicated table with proper indexing
- **Autoload Support**: Option to mark frequently used options for caching
- **Clean Syntax**: Available anywhere via `Craft::$app->options`

Database
--------

[](#database)

The plugin automatically creates a `simple_options` table with the following structure:

- `id` - Primary key
- `key` - Option key (unique index)
- `value` - Option value (longtext)
- `isJson` - Boolean flag for JSON data
- `autoload` - Boolean flag for autoloading
- `dateCreated` - Creation timestamp
- `dateUpdated` - Last update timestamp

Requirements
------------

[](#requirements)

- Craft CMS 5.0 or later
- PHP 8.0 or later

License
-------

[](#license)

MIT License

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance55

Moderate activity, may be stable

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

 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 ~0 days

Total

3

Last Release

298d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/35672585?v=4)[Simple Integrated Marketing](/maintainers/simpleim)[@simpleim](https://github.com/simpleim)

---

Top Contributors

[![majid-simple](https://avatars.githubusercontent.com/u/276157691?v=4)](https://github.com/majid-simple "majid-simple (4 commits)")

---

Tags

optionscmsutilitiesCraftcraftcmscraft-plugintoolkitwordpress-like

### Embed Badge

![Health badge](/badges/simpleteam-craft-toolkit/health.svg)

```
[![Health](https://phpackages.com/badges/simpleteam-craft-toolkit/health.svg)](https://phpackages.com/packages/simpleteam-craft-toolkit)
```

###  Alternatives

[verbb/formie

The most user-friendly forms plugin for Craft.

102393.6k69](/packages/verbb-formie)[verbb/comments

Add comments to your site.

13753.9k](/packages/verbb-comments)[verbb/navigation

Create navigation menus for your site.

92705.0k18](/packages/verbb-navigation)[verbb/vizy

A flexible visual editor field for Craft.

4250.4k](/packages/verbb-vizy)[verbb/hyper

A user-friendly links field for Craft.

24147.8k12](/packages/verbb-hyper)[verbb/workflow

Enforce multi-step review processes for creating entries.

138124.1k1](/packages/verbb-workflow)

PHPackages © 2026

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