一个用于处理URL的PHP工具。
v1.0.0
2023-05-30 13:46 UTC
Requires
- php: ^8.2
This package is not auto-updated.
Last update: 2024-10-02 19:04:40 UTC
README
一个用于处理URL的PHP工具。
要求
PHP >= 8.2
安装
通过Composer
composer require alirezasalehizadeh/url
使用方法
use Alirezasalehizadeh\URL\URL; // URL-encodes string URL::encode(string $string): string // Decodes URL-encoded string URL::decode(string $string): string // Encodes data with MIME base64 URL::encodeBase64(string $string): string // Decodes data encoded with MIME base64 URL::decodeBase64(string $string, bool $strict = false): string|false // Parse a URL and return its components URL::parse(string $string): array|string|int|false|null // Fetches all the headers sent by the server in response to an HTTP request URL::getHeaders(string $string, bool $associative = false, $context = null): array|false // Extracts all meta tag content attributes from a file and returns an array URL::getMetaTags(string $filename, bool $useIncludePath = false): array|false
贡献
发送拉取请求或打开问题以进行贡献。
许可证
MIT.