承接 enrise/urihelper 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

enrise/urihelper

最新稳定版本:1.0.2

Composer 安装命令:

composer require enrise/urihelper

包简介

A general URI helper class for PHP

README 文档

README

This is an old repository that is no longer used or maintained. We advice to no longer use this repository.

Original README can be found below:

UriHelper

Build Status

A simple URI helper class with implementations of the following RFC's / STD's:

Usage

$uri = new \Enrise\Uri('http://usr:pss@example.com:81/mypath/myfile.html?a=b&b[]=2&b[]=3#myfragment');
echo $uri->getScheme(); // http
echo $uri->getUser(); // usr
echo $uri->getPass(); // pss
echo $uri->getHost(); // example.com
echo $uri->getPort(); // 81
echo $uri->getPath(); // /mypath/myfile.html
echo $uri->getQuery(); // a=b&b[]=2&b[]=3
echo $uri->getFragment(); // myfragment
echo $uri->isSchemeless(); // false
echo $uri->isRelative(); // false

$uri->setScheme('scheme:child:scheme.VALIDscheme123:');
$uri->setPort(null);

echo $uri->getUri(); // scheme:child:scheme.VALIDscheme123:usr:pss@example.com/mypath/myfile.html?a=b&b[]=2&b[]=3#myfragment
use \Enrise\Uri;

$uri = new Uri('/relative/url.html');
echo $uri->getScheme(); // null
echo $uri->getHost(); // null
echo $uri->getPath(); // /relative/url.html
echo $uri->isSchemeless(); // true
echo $uri->isRelative(); // true

统计信息

  • 总下载量: 110.93k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 15
  • 点击次数: 5
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 15
  • Watchers: 9
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: Apache
  • 更新时间: 未知