PHPackages                             aedart/laravel-helpers - 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. aedart/laravel-helpers

Abandoned → [aedart/athenaeum](/?search=aedart%2Fathenaeum)ArchivedLibrary[Utility &amp; Helpers](/categories/utility)

aedart/laravel-helpers
======================

Getters and Setters utility package for some of Laravel's core packages. This package make use of Laravel's native Facades, as a fallback, when no custom instances are provided.

5.1.0(7y ago)01.0k1BSD-3-ClausePHPPHP &gt;=7.1.0

Since Sep 24Pushed 7y ago1 watchersCompare

[ Source](https://github.com/aedart/laravel-helpers)[ Packagist](https://packagist.org/packages/aedart/laravel-helpers)[ Docs](https://github.com/aedart/laravel-helpers)[ RSS](/packages/aedart-laravel-helpers/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (6)Versions (15)Used By (1)

[![Build Status](https://camo.githubusercontent.com/2bdd64abeab08dae1cfda3155a02598c897397f71caaf3b0904528e9b13aa9d9/68747470733a2f2f7472617669732d63692e6f72672f6165646172742f6c61726176656c2d68656c706572732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/aedart/laravel-helpers)[![Latest Stable Version](https://camo.githubusercontent.com/5af4f1508f3d81824d6c014812ccf69c07600f0650448bc28eee251febf624f2/68747470733a2f2f706f7365722e707567782e6f72672f6165646172742f6c61726176656c2d68656c706572732f762f737461626c65)](https://packagist.org/packages/aedart/laravel-helpers)[![Total Downloads](https://camo.githubusercontent.com/3888b72025ab25755eb7619b39aba5713abf1d1bdd1b53c156f5d3c46b9f9d2b/68747470733a2f2f706f7365722e707567782e6f72672f6165646172742f6c61726176656c2d68656c706572732f646f776e6c6f616473)](https://packagist.org/packages/aedart/laravel-helpers)[![Latest Unstable Version](https://camo.githubusercontent.com/04be3ada938f79d35d37e3a1d7b49eab9da220093d3928493037b58f457652dc/68747470733a2f2f706f7365722e707567782e6f72672f6165646172742f6c61726176656c2d68656c706572732f762f756e737461626c65)](https://packagist.org/packages/aedart/laravel-helpers)[![License](https://camo.githubusercontent.com/7cc4161616349062c93b2cdae85e6a695e2606a595eba81984f77845d398ebd2/68747470733a2f2f706f7365722e707567782e6f72672f6165646172742f6c61726176656c2d68656c706572732f6c6963656e7365)](https://packagist.org/packages/aedart/laravel-helpers)

Deprecated - Laravel Helpers
============================

[](#deprecated---laravel-helpers)

Package has been replaced by [aedart/athenaeum](https://github.com/aedart/athenaeum)

[Getters and Setters](https://en.wikipedia.org/wiki/Mutator_method) utility package for some of [Laravel's](http://laravel.com/) core packages.

This package make use of Laravel's native [Facades](http://laravel.com/docs/5.5/facades), as a fallback, when no custom instances are provided.

Contents
--------

[](#contents)

- [When to use this](#when-to-use-this)
- [When not to use this](#when-not-to-use-this)
- [How to install](#how-to-install)
- [Quick start](#quick-start)
- [Contribution](#contribution)
- [Acknowledgement](#acknowledgement)
- [Versioning](#versioning)
- [License](#license)

When to use this
----------------

[](#when-to-use-this)

- When your component depends on one or several of Laravel's native components
- When there is a strong need to interface such dependencies
- When you need to be able to set a different instance of a given native Laravel component, e.g. your implemented version of a Configuration Repository

When not to use this
--------------------

[](#when-not-to-use-this)

If you are using a modern [IDE](https://en.wikipedia.org/wiki/Integrated_development_environment), then the added [PHPDoc](http://www.phpdoc.org/) will ensure code-hinting of the various methods' return type. However, you shouldn't blindly use these helpers, just for the sake of gaining code-hinting, for Laravel's Facades. If you are just seeking that, then perhaps Barry vd. Heuvel's [Laravel IDE Helper Generator](https://github.com/barryvdh/laravel-ide-helper) package, is a far better solution for you.

How to install
--------------

[](#how-to-install)

```
composer require aedart/laravel-helpers
```

This package uses [composer](https://getcomposer.org/). If you do not know what that is or how it works, I recommend that you read a little about, before attempting to use this package.

Quick start
-----------

[](#quick-start)

### Component-aware interface, and component-trait

[](#component-aware-interface-and-component-trait)

Lets imagine that you have some kind of component, that needs to be aware of a configuration repository. You can ensure such, by implementing the `ConfigAware` interface. Furthermore, a default implementation is available, via the `ConfigTrait` trait.

```
