The specification on types in DocBlocks (PSR-5) describes various keywords and special constructs but also how to statically resolve the partial name of a Class into a Fully Qualified Class Name (FQCN). PSR-5 also introduces an additional way to describe deeper elements than Classes, Interfaces and Traits called the Fully Qualified Structural Element Name (FQSEN). Using this it is possible to refer to methods, properties and class constants but also functions and global constants. This package provides two Resolvers that are capable of returning a series of Value Object for given expression while resolving any partial class names, and returning an FQSEN object after resolving any partial Structural Element Names into Fully Qualified Structural Element names. Consult the examples folder and check which type of action that your want to accomplish.

Features

  • Resolve a Type
  • Resolve a Fully Qualified Structural Element Name
  • Resolve Constant expressions
  • Resolve nullable types
  • Resolve an FQSEN
  • Resolve Class constant expressions

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

MIT License

Follow TypeResolver

TypeResolver Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of TypeResolver!

Additional Project Details

Programming Language

PHP

Related Categories

PHP Libraries

Registered

2021-07-06