定制 alirezasalehizadeh/url 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

alirezasalehizadeh/url

最新稳定版本:v1.0.0

Composer 安装命令:

composer require alirezasalehizadeh/url

包简介

An PHP tool for work with urls.

README 文档

README

An PHP tool for work with urls.

Requirements

PHP >= 8.2

Installation

via Composer:

composer require alirezasalehizadeh/url

Usage

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

Contributing

Send pull request or open issue for contributing.

License

MIT.

统计信息

  • 总下载量: 3
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-05-30