PHPackages                             kdyby/parse-use-statements - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. kdyby/parse-use-statements

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

kdyby/parse-use-statements
==========================

Parse use statements for a reflection object

v0.2(9y ago)35.2k↓48.6%3[1 PRs](https://github.com/Kdyby/ParseUseStatements/pulls)BSD-3-ClausePHPPHP &gt;=5.4

Since Sep 4Pushed 5y ago2 watchersCompare

[ Source](https://github.com/Kdyby/ParseUseStatements)[ Packagist](https://packagist.org/packages/kdyby/parse-use-statements)[ Docs](http://kdyby.org)[ RSS](/packages/kdyby-parse-use-statements/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

Kdyby/ParseUseStatements
========================

[](#kdybyparseusestatements)

[![Build Status](https://camo.githubusercontent.com/6766c04e15a644c90c5138db9bb878ea983b5c871ce6a83bc27cdee5cc61a07b/68747470733a2f2f7472617669732d63692e6f72672f4b647962792f506172736555736553746174656d656e74732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Kdyby/ParseUseStatements)[![Downloads this Month](https://camo.githubusercontent.com/bc5724584e5ecbc064ee58a00a424e6d095636b71d39ad0c4113c6f7de1a0156/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f6b647962792f70617273652d7573652d73746174656d656e74732e737667)](https://packagist.org/packages/kdyby/parse-use-statements)[![Latest stable](https://camo.githubusercontent.com/f8a109f8cbd8a457461bb3090f4e78e2d14fabb7fa64d839c4348fc11f7a4e82/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b647962792f70617273652d7573652d73746174656d656e74732e737667)](https://packagist.org/packages/kdyby/parse-use-statements)[![Coverage Status](https://camo.githubusercontent.com/236a53333f8dd645ea3ae931736c8ecba4e1aaf6f4ee69aa3684f311a3a3bc87/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f4b647962792f506172736555736553746174656d656e74732f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/Kdyby/ParseUseStatements?branch=master)[![Join the chat at https://gitter.im/Kdyby/Help](https://camo.githubusercontent.com/abe08b740a4156153736f791393ec4da6619c4be73212e75769f52edacc0e2b5/68747470733a2f2f6261646765732e6769747465722e696d2f4a6f696e253230436861742e737667)](https://gitter.im/Kdyby/Help)

This library is extracted from [PhpReflection](https://github.com/nette/di/blob/ed1b90255688b08b87ae641f2bf1dfcba586ae5b/src/DI/PhpReflection.php) class from [nette/di](https://packagist.org/packages/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](https://davidgrudl.com/) and [contributors](https://github.com/nette/di/graphs/contributors) for me.

Installation
------------

[](#installation)

```
$ composer require kdyby/parse-use-statements
```

---

Homepage  and repository .

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 71.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~3 days

Total

2

Last Release

3540d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bd7915237f7e5a3e6bbdee4345a36d355f0fd440362b2cecd4d705edda023c92?d=identicon)[fprochazka](/maintainers/fprochazka)

---

Top Contributors

[![fprochazka](https://avatars.githubusercontent.com/u/158625?v=4)](https://github.com/fprochazka "fprochazka (5 commits)")[![dg](https://avatars.githubusercontent.com/u/194960?v=4)](https://github.com/dg "dg (1 commits)")[![jiripudil](https://avatars.githubusercontent.com/u/1042159?v=4)](https://github.com/jiripudil "jiripudil (1 commits)")

---

Tags

reflectionclassimportparsekdybyusestatementexpandusesusages

### Embed Badge

![Health badge](/badges/kdyby-parse-use-statements/health.svg)

```
[![Health](https://phpackages.com/badges/kdyby-parse-use-statements/health.svg)](https://phpackages.com/packages/kdyby-parse-use-statements)
```

###  Alternatives

[phpdocumentor/reflection-common

Common reflection classes used by phpdocumentor to reflect the code structure

9.1k706.8M26](/packages/phpdocumentor-reflection-common)[symfony/property-access

Provides functions to read and write from/to an object or array using a simple string notation

2.8k295.3M2.5k](/packages/symfony-property-access)[nette/robot-loader

🍀 Nette RobotLoader: high performance and comfortable autoloader that will search and autoload classes within your application.

89352.7M321](/packages/nette-robot-loader)[classpreloader/classpreloader

Helps class loading performance by generating a single PHP file containing all of the autoloaded files for a specific use case

37642.4M32](/packages/classpreloader-classpreloader)[enqueue/dsn

Parse DSN

12525.5M45](/packages/enqueue-dsn)[phpdocumentor/reflection

Reflection library to do Static Analysis for PHP Projects

12521.4M109](/packages/phpdocumentor-reflection)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
