承接 horlarme/uriman 相关项目开发

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

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

horlarme/uriman

Composer 安装命令:

composer require horlarme/uriman

包简介

This library takes good care of URI or URL of a page.

README 文档

README

Github: https://github.com/horlarme/uriman

Description

uriman is a PHP library which is meant to manipulate the Uniform Resource Identifier (URI) of a particular web site or page. uriman is developed to work with all PHP versions.

Directory

File folder structure of uriman.

  • uriman (folder)
    • src (folder)
      • uriman.php (file) The main class or program.
    • Vendor (folder) Composer Folder and File
  • index.php (file) A test file to test the program, please delete before final production.

Usage

To start the library, include the main class using the code below

include_once "uriman/src/uriman.php";

Or you could just add the library directly to your app using composer

composer require horlarme/uriman

Example:

use uriman\uriman; //uriman namespace

$uri = new uriman; //Using the class file

Use the below code to start or instantiate uriman to get what it needs to function

$uri->start(); //Starting uriman

To get the full address of the current page

echo "My Address: " . $uri->address . "<br />\n"; //Get the complete URL address of the current page

To get the value of a url/uri query

echo "The value for name: " . $uri->show("name") . "<br />\n"; //Getting the value of a URI query

To edit a value of a uri query

$uri->edit("name", "Lawal Oladipupo");

The below code output the uri queries as an array

echo "<pre>";
print_r($uri->uri_array);
echo "</pre><br />";

The below code output the uri values as JSON format

echo "JSON Format:" . $uri->uri_json;

Note: Please this is the first production file, so there might be some issues and also, the script doesn't produce/provide any error notice, if it doesn't work, you'll have to debug manually.

Contact the developer: lawboi4love@gmail.com

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2017-03-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固