serafim/laravel-annotations

Laravel annotations bridge

1.0.6 2017-12-09 17:00 UTC

This package is auto-updated.

Last update: 2024-11-07 15:39:48 UTC


README

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