PHPackages                             ichynul/tp-cookie - 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. ichynul/tp-cookie

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

ichynul/tp-cookie
=================

webman extension

1.0.0(5mo ago)01MITPHPPHP &gt;=7.1

Since Dec 2Pushed 5mo agoCompare

[ Source](https://github.com/ichynul/tp-cookie)[ Packagist](https://packagist.org/packages/ichynul/tp-cookie)[ Docs](https://github.com/hi-tpext)[ RSS](/packages/ichynul-tp-cookie/feed)WikiDiscussions main Synced 1mo ago

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

Cookie for webman
=================

[](#cookie-for-webman)

使用
--

[](#使用)

用法和tp的类似

```
use tpcookie\Cookie;

Cookie::set('name', 'value', 3600);//设置cookie,3600秒后过期
Cookie::get('name');//获取cookie
Cookie::delete('name');//删除cookie
Cookie::has('name');//判断cookie是否存在

$option = ['expire'=>3600, 'path'=>'/', 'domain'=>'', 'secure'=>false, 'httponly'=>false, 'samesite'=>''];
Cookie::set('name', 'value', $option);//option为数组
```

助手函数

```
//`cookie()` 或 `tp_cookie()`

function tp_cookie(string $name, $value = '', $option = null){
    //
}
```

```
tp_cookie('name', 'value', 3600);//设置cookie,3600秒后过期
tp_cookie('name');//获取cookie
tp_cookie('name', null);//删除cookie
tp_cookie('?name');//判断cookie是否存在

tp_cookie('name', 'value', $option);//option为数组
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance70

Regular maintenance activity

Popularity1

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity30

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

Unknown

Total

1

Last Release

167d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10061650?v=4)[ichynul](/maintainers/ichynul)[@ichynul](https://github.com/ichynul)

---

Top Contributors

[![ichynul](https://avatars.githubusercontent.com/u/10061650?v=4)](https://github.com/ichynul "ichynul (1 commits)")

---

Tags

webman

### Embed Badge

![Health badge](/badges/ichynul-tp-cookie/health.svg)

```
[![Health](https://phpackages.com/badges/ichynul-tp-cookie/health.svg)](https://phpackages.com/packages/ichynul-tp-cookie)
```

###  Alternatives

[yzh52521/webman-task

 dynamic crontab task plugin for webman.

171.9k2](/packages/yzh52521-webman-task)[tinywan/exception-handler

webman exception handler plugin

1610.1k2](/packages/tinywan-exception-handler)

PHPackages © 2026

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