Skip to content

Commit e035b9a

Browse files
authored
Add license, authors, changelog (#7)
1 parent 7e0ffcb commit e035b9a

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## [0.1.0](https://github.com/cspray/annotated-target/tree/v0.1.0) - 2022-06-08
9+
10+
### Added
11+
12+
- `AnnotatedTarget` interface, an object that represents a distinct use of an Attribute within a codebase. Provides access to the `Reflector` the Attribute was targeting, the `ReflectionAttribute` found, and an instance of the Attribute.
13+
- `AnnotatedTargetOptions` and `AnnotatedTargetParser` interfaces, implementations are reponsible for converting source code into `AnnotatedTarget` implementations.
14+
- `AnnotatedTargetOptionsBuilder` for building an implementation of `AnnotatedTargetOptions`.
15+
- `PhpParserAnnotatedTargetParser` for statically analyzing multiple source directories and gather all uses of Attributes with the PHP-Parser library.
16+
- A functional API, through `parseAttributes`, that allows for straight-forward use of the aforementioned objects.

composer.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
{
22
"name": "cspray/annotated-target",
33
"description": "A PHP 8 library for statically parsing Attributes using PHP-Parser.",
4+
"license": "MIT",
5+
"authors": [
6+
{
7+
"name": "Charles Sprayberry",
8+
"email": "[email protected]",
9+
"homepage": "https://cspray.io",
10+
"role": "Project Maintainer"
11+
}
12+
],
413
"require": {
514
"php": "^8.1",
615
"nikic/php-parser": "^v4.14",

0 commit comments

Comments
 (0)