This library is extracted from PhpReflection class from nette/di. The original class is marked as internal and therefore BC can be broken at any time. Also installing whole nette/di package means installing a lot of unnecessary boilerplate for just this feature - hence this package.
Go say thank you to the original author and contributors for me.
$ composer require kdyby/parse-use-statements
Homepage http://www.kdyby.org and repository http://github.com/Kdyby/ParseUseStatements.