SerafimArts / Laravel-Annotations by Serafim

Laravel annotations bridge
983
2
3
Package Data
Maintainer Username: Serafim
Maintainer Contact: nesk@xakep.ru (Nesmeyanov Kirill)
Package Create Date: 2016-05-09
Package Last Update: 2017-12-09
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2024-04-19 15:06:42
Package Statistics
Total Downloads: 983
Monthly Downloads: 1
Daily Downloads: 0
Total Stars: 2
Total Watchers: 3
Total Forks: 0
Total Open Issues: 0

Laravel-Annotations

This is a Doctrine Annotations bridge for Laravel 5+

Installation

composer require serafim/laravel-annotations

In app.php add:

'providers' => [
    ...
    \Serafim\Annotations\LaravelServiceProvider::class,
]

Run php artisan vendor:publish if you want configure default behaviuor

Usage

use octrine\Common\Annotations\Reader;

app(Reader::class)->getClassAnnotations($reflection); 
// or app('annotations')->..

NOTE: For more information about annotations read: http://docs.doctrine-project.org/projects/doctrine-common/en/latest/reference/annotations.html