The sebastian/object-enumerator is a PHP package designed to traverse through array structures and object graphs in order to enumerate all referenced objects. This proves helpful in listing all the objects used in an application, exceptional for development and testing purposes as it provides a comprehensive insight of all the objects linked.
To use the sebastian/object-enumerator PHP package, you need to first install it through Composer, a well-known dependency manager for PHP. You can add this library to your project using the following command in your terminal:
composer require sebastian/object-enumerator
Alternatively, if you only need this library for development purposes like running your project's test suite, then you should add it as a development-time dependency using:
composer require --dev sebastian/object-enumerator
Once the package is installed, you can import and utilize it in your PHP files as per requirement.
As for sebastian/object-enumerator documentation, it appears the author has not provided a separate, detailed docs indicating the usage and features. However, interested developers may visit the official GitHub repository at https://github.com/sebastianbergmann/object-enumerator.git for the readme file and to explore the package's structure for implementation and usage ideas.