egyg33k/domain-parser-bundle

Symfony中集成域名解析器

安装次数: 2,169

依赖者: 0

建议者: 0

安全: 0

星标: 0

关注者: 1

分支: 1

公开问题: 0

类型:symfony-bundle

1.0.1 2016-02-05 03:04 UTC

This package is not auto-updated.

Last update: 2024-09-14 18:04:22 UTC


README

Software License Build Status Total Downloads Latest Stable Version

Symfony中集成域名解析器

系统需求

需要 PHP >= 5.5.0,但建议使用PHP/HHVM的最新稳定版本。

安装

通过Composer

$ composer require egyg33k/domain-parser-bundle

使用方法

        // Add this line to your AppKernel.php new Egyg33k\DomainParserBundle\Egyg33kDomainParserBundle(),
        // Then you can use it as following
        $parser = $this->container->get('egyg33k.domainParser');
        $host = 'http://user:pass@www.pref.okinawa.jp:8080/path/to/page.html?query=string#fragment';
        $url = $parser->parseUrl($host);
        var_dump($url);

文档

原始文档 https://github.com/jeremykendall/php-domain-parser

测试

$ phpunit

安全

如果您发现任何与安全相关的问题,请通过电子邮件me@amrsamy.com联系,而不是使用问题跟踪器。

致谢

许可证

MIT许可证(MIT)。更多信息请参阅许可证文件