egyg33k / domain-parser-bundle
Integration of Domain Parser into Symfony
Installs: 2 170
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
Type:symfony-bundle
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-11-09 18:43:37 UTC
README
Integration of Domain Parser into Symfony
System Requirements
You need PHP >= 5.5.0 but the latest stable version of PHP/HHVM is recommended.
Install
Via Composer
$ composer require egyg33k/domain-parser-bundle
Usage
// 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);
Documentation
Original docs https://github.com/jeremykendall/php-domain-parser
Testing
$ phpunit
Security
If you discover any security related issues, please email me@amrsamy.com instead of using the issue tracker.
Credits
- Amr Samy me@amrsamy.com
License
The MIT License (MIT). Please see License File for more information.