Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/larvatecn/think-hashids
https://github.com/larvatecn/think-hashids
php thinkphp
Last synced: 12 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/larvatecn/think-hashids
- Owner: larvatecn
- License: mit
- Created: 2021-07-22T01:19:53.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-07-24T07:52:55.000Z (over 3 years ago)
- Last Synced: 2024-11-23T09:19:05.570Z (29 days ago)
- Topics: php, thinkphp
- Language: PHP
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# think-hashids
适用于 ThinkPHP 6 的 HashID 扩展.
[![Packagist](https://img.shields.io/packagist/l/larva/think-hashids.svg?maxAge=2592000)](https://packagist.org/packages/larva/think-hashids)
[![Total Downloads](https://img.shields.io/packagist/dt/larva/think-hashids.svg?style=flat-square)](https://packagist.org/packages/larva/think-hashids)## 安装
```bash
composer require larva/think-hashids -vv
```## 配置
配置 'config/hashids.php' 即可。
## 使用
```php
\Larva\Hashids\Facades\Hashids::encode('abv');
\Larva\Hashids\Facades\Hashids::decode('abv');
```