2017 © Pedro Peláez
 

craft-plugin craft3-valuestore

Easily store some loose values into files

image

superbig/craft3-valuestore

Easily store some loose values into files

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 3 Versions
  • 17 % Grown

The README.md

Valuestore plugin for Craft CMS 3.x

Easily store some loose values into files, (*1)

Screenshot, (*2)

Requirements

This plugin requires Craft CMS 3.0.0-beta.23 or later., (*3)

Installation

To install the plugin, follow these instructions., (*4)

  1. Open your terminal and go to your Craft project:, (*5)

    cd /path/to/project
  2. Then tell Composer to load the plugin:, (*6)

    composer require superbig/craft3-valuestore
  3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Valuestore., (*7)

Using Valuestore

{% set store = craft.valuestore.create('storeName.json') %}

{% do store.put('key', 'value') %}

{# Returns "value" #}
{{ store.get('key') }}

{# Returns true #}
{{ store.has('key') }}

{# Iterate over values #}
{% for key,value in store.all() %}{% endfor %}

{# Increment number - returns 1 #}
{{ store.increment('number') }}

See full overview of methods in the Valuestore readme, (*8)

Credits

Add calendar icon by Ben Davis, (*9)

Brought to you by Superbig, (*10)

The Versions

26/04 2018

dev-master

9999999-dev

Easily store some loose values into files

  Sources   Download

MIT

The Requires

 

cms craftcms craft-plugin craft valuestore

13/02 2018

1.0.1

1.0.1.0

Easily store some loose values into files

  Sources   Download

MIT

The Requires

 

cms craftcms craft-plugin craft valuestore

05/11 2017

1.0.0

1.0.0.0

Easily store some loose values into files

  Sources   Download

MIT

The Requires

 

cms craftcms craft-plugin craft valuestore