PHPackages                             esensi/loaders - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. esensi/loaders

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

esensi/loaders
==============

The missing package loaders for Esensi

v4.1.0(10mo ago)72.3k11MITPHPPHP ^8.2

Since Feb 20Pushed 10mo ago14 watchersCompare

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

READMEChangelog (10)Dependencies (9)Versions (23)Used By (1)

Esensi Loaders Traits Package
-----------------------------

[](#esensi-loaders-traits-package)

> Version 1

An \[Esensi\\Loaders\] package, coded by [SiteRocket Labs®](https://www.siterocket.com).

Esensi/Loaders uses [PHP traits](http://culttt.com/2014/06/25/php-traits) to supplement Laravel's missing namespaced config and alias loaders. Using traits allows for a high-degree of code reusability and extensibility. While this package provides a reasonable base service provider, developers are free to mix and match traits into any class that needs to make use of namespaced loaders. Using contracts, developers can be confident that the code complies to a reliable interface. (For more details on the inner workings of these traits please review the generously commented source code!)

Note
----

[](#note)

This `Esensi/Activity` is specifically designed to be compatible with the [Laravel Framework](https://laravel.com) and may not be compatible as a stand-alone dependency or as part of another framework.

Quick Start
-----------

[](#quick-start)

Install the package with Composer:

```
composer require esensi/loaders
```

Getting started with these new traits is a simple matter of extending the abstract `ServiceProvider` class that comes with the `Esensi/Loaders` package. This class already implements the two loader traits and is ready for quick customization. While the following example will get the job done, please consult the package's code for more customization options:

```
