egyg33k / domain-parser-bundle
Symfony中集成域名解析器
1.0.1
2016-02-05 03:04 UTC
Requires
- php: >=5.5.9
- jeremykendall/php-domain-parser: ~2.0
- symfony/expression-language: >=2.0.0-stable
- symfony/framework-bundle: >=2.0.0-stable
Requires (Dev)
- phpunit/phpunit: ~4.5
This package is not auto-updated.
Last update: 2024-09-14 18:04:22 UTC
README
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联系,而不是使用问题跟踪器。
致谢
- Amr Samy me@amrsamy.com
许可证
MIT许可证(MIT)。更多信息请参阅许可证文件。