wok/uri 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

wok/uri

Composer 安装命令:

composer require wok/uri

包简介

WOK URI handler

README 文档

README

This library is a URI manager interface.

SensioLabsInsight

Diclaimer : This component is part of the WOK (Web Operational Kit) framework. It however can be used as a standalone library.

Install

It is recommanded to install that component as a dependency using Composer :

composer require wok/uri

You're also free to get it with git or by direct download while this package has no dependencies.

git clone https://github.com/web-operational-kit/uri.git

Usage

use \WOK\Uri\Uri

// First instanciate a URI object
$uri = Uri::createFromString('http://domain.tld/path/to/resource?param=abc');

// Then you can either retrieve informations ...
$uri->getScheme();


// ... or update them

Checkout the full methods and components list as API.

Methods and components

Tip:

  • Methods prefixed with getX return the value or associated object
  • Methods prefixed with setX override the current value or associated object
  • Methods prefixed with withX clone the current Uri object with the new value.

String values

  • getScheme()

  • setScheme($scheme)

  • withScheme(scheme)

  • getFragment()

  • setFragment($fragment)

  • withFragment(fragment)

Host component

  • getHost()
  • setHost($host)
  • withHost($host)

Path component

  • getPath()
  • setPath($path)
  • withPath($path)

Query component

  • getQuery()
  • setQuery($query)
  • withQuery($query)

User component

  • getUser()
  • setUser($user)
  • withUser($user)

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-09-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固