PHPackages                             hejunjie/url-signer - 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. [Security](/categories/security)
4. /
5. hejunjie/url-signer

ActiveLibrary[Security](/categories/security)

hejunjie/url-signer
===================

一个用于生成和验证带签名的 URL 的工具类，支持设置有效期与参数加密。可用于接口防篡改、防盗链、下载链接保护等场景 | A PHP library for generating URLs with encryption and signature protection—useful for secure resource access and tamper-proof links.

v1.0.3(11mo ago)1454↓37.5%1MITPHPPHP &gt;=8.1

Since Apr 19Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/zxc7563598/php-url-signer)[ Packagist](https://packagist.org/packages/hejunjie/url-signer)[ RSS](/packages/hejunjie-url-signer/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)DependenciesVersions (5)Used By (1)

hejunjie/url-signer
===================

[](#hejunjieurl-signer)

 [English](./README.md)｜[简体中文](./README.zh-CN.md)---

A PHP library for generating URLs with encryption and signature protection—useful for secure resource access and tamper-proof links.

> Built with PHP 8, this library supports SHA256 signing by default and includes built-in AES-256-CBC parameter encryption.

**This project has been parsed by Zread. If you need a quick overview of the project, you can click here to view it：[Understand this project](https://zread.ai/zxc7563598/php-url-signer)**

---

✨ Features
----------

[](#-features)

- ✅ URL Signing &amp; Verification
- ✅ Signature Expiration Validation
- ✅ Support for Encrypting/Decrypting the `file` Parameter
- ✅ Auto-Generated Key Configuration (on Installation)
- ✅ No Dependency on Redis, Databases, or Other Services

---

📦 Installation
--------------

[](#-installation)

Install via Composer:

```
composer require hejunjie/url-signer
```

A key configuration file will be automatically generated after installation: `config/urlsigner.php`。

The default configuration file path is `config/urlsigner.php`, with the following structure:

```
