Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zhuchunshu/php-csrf
php-csrf
https://github.com/zhuchunshu/php-csrf
Last synced: about 2 months ago
JSON representation
php-csrf
- Host: GitHub
- URL: https://github.com/zhuchunshu/php-csrf
- Owner: zhuchunshu
- License: mit
- Created: 2021-07-07T13:30:15.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-07-09T06:37:58.000Z (over 3 years ago)
- Last Synced: 2024-04-18T05:55:28.083Z (9 months ago)
- Language: PHP
- Size: 897 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## php-csrf
### 获取取当前 CSRF Token的值
```php
// $time为token有效期
return csrf_token($time=120);
// or
return \Csrf\Csrf::get($time);
```
### 验证Csrf-token
```php
return \Csrf\Csrf::check($token);
```