PHPackages                             yakeing/php\_saekv - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. yakeing/php\_saekv

AbandonedArchivedSymfony-bundle[HTTP &amp; Networking](/categories/http)

yakeing/php\_saekv
==================

Timitate sina cloud SaeKV class

v6.1.0(5y ago)152MPL-2.0PHPPHP &gt;=5.6

Since Sep 21Pushed 4y agoCompare

[ Source](https://github.com/yakeing/php_saekv)[ Packagist](https://packagist.org/packages/yakeing/php_saekv)[ Docs](https://github.com/yakeing/php_saekv)[ Fund](https://github.com/yakeing/Documentation/blob/master/Sponsor/README.md)[ RSS](/packages/yakeing-php-saekv/feed)WikiDiscussions main Synced 3d ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

SaeKV
=====

[](#saekv)

imitate sina cloud SaeKV class.

### Travis CI

[](#travis-ci)

[![Travis-ci](https://camo.githubusercontent.com/284616ea3546bad5aade8e3c65c83c07f89f75cd0810bb3161a44f2893b013f7/68747470733a2f2f6170692e7472617669732d63692e636f6d2f79616b65696e672f7068705f7361656b762e7376673f6272616e63683d6d61696e)](https://travis-ci.com/yakeing/php_saekv)

### codecov

[](#codecov)

[![codecov](https://camo.githubusercontent.com/cf1eab2903bab245f416bae36707f11ac8fdc3e5b4a6b35f02fd8e2e3f63a8cc/68747470733a2f2f636f6465636f762e696f2f67682f79616b65696e672f7068705f7361656b762f6272616e63682f6d61696e2f67726170682f62616467652e737667)](https://codecov.io/gh/yakeing/php_saekv)

### Github badge

[](#github-badge)

[![Downloads](https://camo.githubusercontent.com/db931289da57fda1739aa5da62f240e5ea57347c1bce62fe9d9f8b5adc6c0c78/68747470733a2f2f342e76657263656c2e6170702f6769746875622f646f776e6c6f6164732f79616b65696e672f7068705f7361656b763f69636f6e3d676974687562)](../../)[![Size](https://camo.githubusercontent.com/e9dfde80b8c999943e4744e94b8f2768364e4cd2377e1038fc3a525b92a9383c/68747470733a2f2f342e76657263656c2e6170702f6769746875622f73697a652f79616b65696e672f7068705f7361656b763f69636f6e3d676974687562)](src)[![tag](https://camo.githubusercontent.com/4b12923ba183b90e882199d68230053bb9f430eb8efc07996f6468ef7b763352/68747470733a2f2f342e76657263656c2e6170702f6769746875622f7461672f79616b65696e672f7068705f7361656b763f69636f6e3d676974687562)](../../releases)[![license](https://camo.githubusercontent.com/904c4bcc21898764c7b6b7edfba26ea0d5427757cfaee2837ee7bed32124b40b/68747470733a2f2f342e76657263656c2e6170702f7374617469632f6c6963656e73652f3535352f4d504c2d322e302f6665376433373f69636f6e3d676974687562)](LICENSE)[![languages](https://camo.githubusercontent.com/5275888fd9cd7a7b85d47b803d247819aa953b27342dfa420173152309ab1a18/68747470733a2f2f342e76657263656c2e6170702f7374617469632f6c616e67756167652f3535352f5048502f3334616265663f69636f6e3d676974687562)](../../search?l=php)

### Installation

[](#installation)

Use [Composer](https://getcomposer.org) to install the library. Of course, You can go to [Packagist](https://packagist.org/packages/yakeing/php_saekv) to view.

```
    $ composer require yakeing/php_saekv

```

### KV init

[](#kv-init)

```
    $kv = new SaeKV(3000);
    $ret = $kv->init("accesskey");
```

### KV set data

[](#kv-set-data)

```
      $kv->set('kev','value');
```

### KV add data

[](#kv-add-data)

```
    $kv->add('kev','value');
```

### KV get data

[](#kv-get-data)

```
    $kv->get('kev');
```

KV delete data
--------------

[](#kv-delete-data)

```
    $kv->delete('kev');
```

### replace data

[](#replace-data)

```
    $ret = $kv->replace('abc', 'cccccc');
```

### Get multiple groups of data

[](#get-multiple-groups-of-data)

```
    $keys = array();
    array_push($keys, 'abc1');
    array_push($keys, 'abc2');
    array_push($keys, 'abc3');
    $ret = $kv->mget($keys);
```

### Get prefix range data

[](#get-prefix-range-data)

```
    $ret = $kv->pkrget('abc', 3);
```

### Get all data

[](#get-all-data)

```
    $ret = $kv->pkrget('');
```

Invalid

$ret = $kv-&gt;pkrget('', 100);

while(true){

var\_dump($ret);

end($ret);

$start\_key = key($ret);

$i = count($ret);

if ($i &lt; 100) break;

$ret = $kv-&gt;pkrget('', 100, $start\_key);

}

### get options list

[](#get-options-list)

```
    $opts = $kv->get_options();
```

### set options

[](#set-options)

```
    $opts = array('encodekey' => 0);
    $ret = $kv->set_options($opts);
```

### Local file

[](#local-file)

```
    kvdb.txt (json)
    {
        kev1:value1,
        kev2:[
            kev2:value2,
            kev3:value3
        ],.....
    }

```

Original document
-----------------

[](#original-document)

Documents: [SaeKV-code](http://apidoc.sinaapp.com/class-SaeKV.html)

[Sponsor](https://github.com/yakeing/Documentation/blob/master/Sponsor/README.md)
---------------------------------------------------------------------------------

[](#sponsor)

If you've got value from any of the content which I have created, then I would very much appreciate your support by payment donate.

[![Sponsor](https://camo.githubusercontent.com/8bf9004e5f53d2223ce47ceeed603c32154d9e6afa76039dd117bf91c5c1a685/68747470733a2f2f342e76657263656c2e6170702f7374617469632f53706f6e736f722f4541344141413f69636f6e3d6865617274)](https://github.com/yakeing/Documentation/blob/master/Sponsor/README.md)

Author
------

[](#author)

weibo: [yakeing](https://weibo.com/yakeing)

twitter: [yakeing](https://twitter.com/yakeing)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

2061d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/95aaf19e492f95c5180360b25e7197ff554625372973f3555b9792a07d5cb9f2?d=identicon)[yakeing](/maintainers/yakeing)

---

Top Contributors

[![yakeing](https://avatars.githubusercontent.com/u/6356091?v=4)](https://github.com/yakeing "yakeing (12 commits)")

---

Tags

httpcurlsaekv

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/yakeing-php-saekv/health.svg)

```
[![Health](https://phpackages.com/badges/yakeing-php-saekv/health.svg)](https://phpackages.com/packages/yakeing-php-saekv)
```

###  Alternatives

[rmccue/requests

A HTTP library written in PHP, for human beings.

3.6k34.5M258](/packages/rmccue-requests)[nategood/httpful

A Readable, Chainable, REST friendly, PHP HTTP Client

1.8k17.2M267](/packages/nategood-httpful)[mashape/unirest-php

Unirest PHP

1.3k9.7M161](/packages/mashape-unirest-php)[php-http/curl-client

PSR-18 and HTTPlug Async client with cURL

48247.0M384](/packages/php-http-curl-client)[smi2/phpclickhouse

PHP ClickHouse Client

83510.1M71](/packages/smi2-phpclickhouse)[pear/http_request2

Provides an easy way to perform HTTP requests.

764.2M48](/packages/pear-http-request2)

PHPackages © 2026

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