承接 elcweb/keyvaluestore-bundle 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

elcweb/keyvaluestore-bundle

Composer 安装命令:

composer require elcweb/keyvaluestore-bundle

包简介

Allows you to easily access and set key-value

README 文档

README

Latest Stable Version Total Downloads Travis

Installation

Step 1: Download using composer

{
    "require": {
        "elcweb/keyvaluestore-bundle": "~2.0"
    }
}

Now tell composer to download the bundle by running the command:

$ php composer.phar update elcweb/keyvaluestore-bundle

Step 2: Enable the bundle

Enable the bundle in the kernel:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Elcweb\KeyValueStoreBundle\ElcwebKeyValueStoreBundle(),
    );
}

Step 3: Doctrine Migration (optional)

If you are upgrading from version 1.x you will need to do a migration. We recommend using DoctrineMigration

An migration example exist in

DoctrineMigrations/Version20150715164320.php

Make sure that your parameter %secret% is 32 characters long.

Usage

Get a value

$ks = $this->get('elcweb.keyvaluestore');
$value = $ks->get('KeyName');

Get all values starting with a pattern

$ks = $this->get('elcweb.keyvaluestore');
$values = $ks->getAll('KeyName');

// If you have a keys called foo.bar and foo.foo this will return an array with key bar and foo

Set a value

$ks = $this->get('elcweb.keyvaluestore');
$ks->set('key', 'value', 'optional description');

License

This bundle is under the MIT license. See the complete license in the bundle:

Resources/meta/LICENSE

Reporting an issue or a feature request

Issues and feature requests are tracked in the Github issue tracker.

When reporting a bug, it may be a good idea to reproduce it in a basic project built using the Symfony Standard Edition to allow developers of the bundle to reproduce the issue by simply cloning it and following some steps.

统计信息

  • 总下载量: 1.31k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 1

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-06-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固