seffeng/url-helper

PHP extension url helper

v0.1.1 2024-07-22 03:37 UTC

This package is auto-updated.

Last update: 2024-12-22 04:37:48 UTC


README

安装

# 安装
$ composer require seffeng/url-helper

目录说明

|---src
|   |   Url.php
|   |---Traits
|           UrlTrait.php
|---tests
|       UrlTest.php

示例

/**
 * TestController.php
 * 示例
 */
namespace App\Http\Controllers;

use Seffeng\UrlHelper\Url;

class TestController extends Controller
{
    public function index()
    {
        $url = 'https://www.1kmi.com/view/2.php';
        print_r(Url::parseUrl($url));
    }
}

备注

1、更多示例请参考 tests 目录下测试文件。