seffeng / php-url-helper by seffeng

PHP extension url helper
1,359
0
1
Package Data
Maintainer Username: seffeng
Maintainer Contact: save.zxf@gmail.com (seffeng)
Package Create Date: 2022-08-25
Package Last Update: 2024-07-22
Language: PHP
License: MIT
Last Refreshed: 2024-11-20 03:01:09
Package Statistics
Total Downloads: 1,359
Monthly Downloads: 20
Daily Downloads: 2
Total Stars: 0
Total Watchers: 1
Total Forks: 0
Total Open Issues: 0

PHP Helpers

安装

# 安装
$ 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 目录下测试文件。