Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 18, 2024 via composer

doctrine/annotations 2.0.1

Docblock Annotations Parser
Package summary
Share
0
issues
1
license
3
MIT
Package created
12 Jan 2013
Version published
2 Feb 2023
Maintainers
1
Total deps
3
Direct deps
2
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
3 Packages, Including:
doctrine/annotations@2.0.1
doctrine/lexer@3.0.1
psr/cache@3.0.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

2
All Dependencies CSV
β“˜ This is a list of doctrine/annotations 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
doctrine/lexer3.0.1-MIT
prod
psr/cache3.0.06.01 kBMIT
prod

Visualizations

Frequently Asked Questions

What does doctrine/annotations do?

The "doctrine/annotations" is a PHP package that provides a Docblock Annotations Parser library. It allows you to parse structured data out of PHP doc-blocks. With the introduction of attributes in PHP 8, this library is now considered to be feature-complete and will primarily receive only bug and security fixes.

How do you use doctrine/annotations?

To use the "doctrine/annotations" package in your PHP project, first, you need to add it as a dependency via Composer. You can do this by running composer require doctrine/annotations in your project’s root directory. Once installed, you can use it in your PHP files by including the appropriate namespaces and then using the provided classes and functions. Remember, due to the introduction of attributes in PHP 8, the use of this library should be limited to maintaining and updating existing projects.

Here's a basic usage example:

use Doctrine\Common\Annotations\AnnotationReader;

$class = new ReflectionClass(SomeClass::class);
$reader = new AnnotationReader();

// Get class annotations
$classAnnotations = $reader->getClassAnnotations($class);

// Get method annotations
$method = $class->getMethod('someMethod');
$methodAnnotations = $reader->getMethodAnnotations($method);

// Get property annotations
$property = $class->getProperty('someProperty');
$propertyAnnotations = $reader->getPropertyAnnotations($property);

Where are the doctrine/annotations docs?

For a comprehensive explanation of how to use "doctrine/annotations", you can refer to its official documentation available at the Doctrine Project website. You can find it here. The documentation covers everything from installation to use-cases, and adhering to the coding standards of the Doctrine project.