PHPackages                             lordfm/raw - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. lordfm/raw

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

lordfm/raw
==========

Repository pattern boilerplate based on Annotated Models

1.1.2(6y ago)0247MITPHPCI failing

Since Dec 11Pushed 6y ago1 watchersCompare

[ Source](https://github.com/lorduriel/raw)[ Packagist](https://packagist.org/packages/lordfm/raw)[ RSS](/packages/lordfm-raw/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependencies (5)Versions (8)Used By (0)

RAW
===

[](#raw)

Raw is a quick repository pattern scaffolding package for laravel. It mixes [Doctrine Annotations](https://www.doctrine-project.org/projects/doctrine-annotations/en/latest/index.html) with [Eloquent ORM](https://laravel.com/docs/5.4/eloquent) to handle the structure of your project from the models.

Do you have something in mind? You should be able to build it from the very bottom without suffer.

Install
=======

[](#install)

```
composer require lordfm/raw

```

Add the provider to your `app.php`

```
'providers' = [
	/*
	* Lots of providers
	*
	*/
	LoRDFM\Raw\RawServiceProvider::class
]

```

Publish the `raw.php` configuiration file

```
php artisan vendor:publish --provider="LoRDFM\Raw\RawServiceProvider"

```

Annotate your model
-------------------

[](#annotate-your-model)

Declare the use of `LoRDFM\Raw\Annotations\Rawable` and add the annotation on top of your model. Be sure to not leave blank lines between the annotation and the class.

MyModel.php

```
